##// END OF EJS Templates
rev 3.0.0.2
paul -
r205:2bc5b89e7f11 R3
parent child
Show More
@@ -844,8 +844,8 void init_ring(ring_node ring[], unsigne
844 // BUFFER ADDRESS
844 // BUFFER ADDRESS
845 for(i=0; i<nbNodes; i++)
845 for(i=0; i<nbNodes; i++)
846 {
846 {
847 ring[i].coarseTime = 0x00;
847 ring[i].coarseTime = 0xffffffff;
848 ring[i].fineTime = 0x00;
848 ring[i].fineTime = 0xffffffff;
849 ring[i].sid = 0x00;
849 ring[i].sid = 0x00;
850 ring[i].status = 0x00;
850 ring[i].status = 0x00;
851 ring[i].buffer_address = (int) &buffer[ i * bufferSize ];
851 ring[i].buffer_address = (int) &buffer[ i * bufferSize ];
@@ -556,6 +556,7 rtems_task cwf3_task(rtems_task_argument
556 rtems_id queue_id;
556 rtems_id queue_id;
557 rtems_status_code status;
557 rtems_status_code status;
558 ring_node ring_node_cwf3_light;
558 ring_node ring_node_cwf3_light;
559 ring_node *ring_node_to_send_cwf;
559
560
560 status = get_message_queue_id_send( &queue_id );
561 status = get_message_queue_id_send( &queue_id );
561 if (status != RTEMS_SUCCESSFUL)
562 if (status != RTEMS_SUCCESSFUL)
@@ -583,16 +584,17 rtems_task cwf3_task(rtems_task_argument
583 if ( (lfrCurrentMode == LFR_MODE_NORMAL)
584 if ( (lfrCurrentMode == LFR_MODE_NORMAL)
584 || (lfrCurrentMode == LFR_MODE_SBM1) || (lfrCurrentMode==LFR_MODE_SBM2) )
585 || (lfrCurrentMode == LFR_MODE_SBM1) || (lfrCurrentMode==LFR_MODE_SBM2) )
585 {
586 {
587 ring_node_to_send_cwf = getRingNodeToSendCWF( 3 );
586 if ( (parameter_dump_packet.sy_lfr_n_cwf_long_f3 & 0x01) == 0x01)
588 if ( (parameter_dump_packet.sy_lfr_n_cwf_long_f3 & 0x01) == 0x01)
587 {
589 {
588 PRINTF("send CWF_LONG_F3\n")
590 PRINTF("send CWF_LONG_F3\n")
589 ring_node_to_send_cwf_f3->sid = SID_NORM_CWF_LONG_F3;
591 ring_node_to_send_cwf_f3->sid = SID_NORM_CWF_LONG_F3;
590 status = rtems_message_queue_send( queue_id, &ring_node_to_send_cwf_f3, sizeof( ring_node* ) );
592 status = rtems_message_queue_send( queue_id, &ring_node_to_send_cwf, sizeof( ring_node* ) );
591 }
593 }
592 else
594 else
593 {
595 {
594 PRINTF("send CWF_F3 (light)\n")
596 PRINTF("send CWF_F3 (light)\n")
595 send_waveform_CWF3_light( ring_node_to_send_cwf_f3, &ring_node_cwf3_light, queue_id );
597 send_waveform_CWF3_light( ring_node_to_send_cwf, &ring_node_cwf3_light, queue_id );
596 }
598 }
597
599
598 }
600 }
General Comments 0
You need to be logged in to leave comments. Login now