##// END OF EJS Templates
fsw-0-20
paul -
r58:95058e78e811 default
parent child
Show More
@@ -36,7 +36,7
36 #define DEFAULT_SY_LFR_COMMON1 0x10 // default value 0 0 0 1 0 0 0 0
36 #define DEFAULT_SY_LFR_COMMON1 0x10 // default value 0 0 0 1 0 0 0 0
37 // NORM
37 // NORM
38 #define SY_LFR_N_SWF_L 2048 // nb sample
38 #define SY_LFR_N_SWF_L 2048 // nb sample
39 #define SY_LFR_N_SWF_P 300 // sec
39 #define SY_LFR_N_SWF_P 296 // sec
40 #define SY_LFR_N_ASM_P 3600 // sec
40 #define SY_LFR_N_ASM_P 3600 // sec
41 #define SY_LFR_N_BP_P0 4 // sec
41 #define SY_LFR_N_BP_P0 4 // sec
42 #define SY_LFR_N_BP_P1 20 // sec
42 #define SY_LFR_N_BP_P1 20 // sec
@@ -387,7 +387,7 int create_all_tasks( void ) // create a
387 {
387 {
388 status = rtems_task_create(
388 status = rtems_task_create(
389 Task_name[TASKID_SEND], TASK_PRIORITY_SEND, RTEMS_MINIMUM_STACK_SIZE,
389 Task_name[TASKID_SEND], TASK_PRIORITY_SEND, RTEMS_MINIMUM_STACK_SIZE,
390 RTEMS_DEFAULT_MODES,
390 RTEMS_DEFAULT_MODES | RTEMS_NO_PREEMPT,
391 RTEMS_DEFAULT_ATTRIBUTES, &Task_id[TASKID_SEND]
391 RTEMS_DEFAULT_ATTRIBUTES, &Task_id[TASKID_SEND]
392 );
392 );
393 }
393 }
@@ -228,20 +228,9 rtems_task send_task( rtems_task_argumen
228 else // the incoming message is a spw_ioctl_pkt_send structure
228 else // the incoming message is a spw_ioctl_pkt_send structure
229 {
229 {
230 spw_ioctl_send = (spw_ioctl_pkt_send*) incomingData;
230 spw_ioctl_send = (spw_ioctl_pkt_send*) incomingData;
231 if (spw_ioctl_send->hlen == 0)
231 status = ioctl( fdSPW, SPACEWIRE_IOCTRL_SEND, spw_ioctl_send );
232 {
232 if (status == -1){
233 status = write( fdSPW, spw_ioctl_send->data, spw_ioctl_send->dlen );
233 PRINTF2("in SEND *** (2.b) ERRNO = %d, RTEMS = %d\n", errno, status)
234 if (status == -1){
235 PRINTF2("in SEND *** (2.b) ERRNO = %d, dlen = %d\n", errno, spw_ioctl_send->dlen)
236 }
237 }
238 else
239 {
240 status = ioctl( fdSPW, SPACEWIRE_IOCTRL_SEND, spw_ioctl_send );
241 if (status == -1){
242 PRINTF2("in SEND *** (2.c) ERRNO = %d, dlen = %d\n", errno, spw_ioctl_send->dlen)
243 PRINTF1(" hlen = %d\n", spw_ioctl_send->hlen)
244 }
245 }
234 }
246 }
235 }
247 }
236 }
@@ -42,9 +42,9 int action_load_normal_par(ccsdsTelecomm
42 int flag;
42 int flag;
43
43
44 flag = LFR_SUCCESSFUL;
44 flag = LFR_SUCCESSFUL;
45 result = LFR_SUCCESSFUL;
46
45
47 if ( lfrCurrentMode == LFR_MODE_NORMAL ) {
46 if ( (lfrCurrentMode == LFR_MODE_NORMAL) ||
47 (lfrCurrentMode == LFR_MODE_SBM1) || (lfrCurrentMode == LFR_MODE_SBM2) ) {
48 send_tm_lfr_tc_exe_not_executable( TC, queue_id );
48 send_tm_lfr_tc_exe_not_executable( TC, queue_id );
49 flag = LFR_DEFAULT;
49 flag = LFR_DEFAULT;
50 }
50 }
@@ -104,7 +104,7 int action_load_normal_par(ccsdsTelecomm
104 }
104 }
105 }
105 }
106
106
107 return result;
107 return flag;
108 }
108 }
109
109
110 int action_load_burst_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id)
110 int action_load_burst_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id)
@@ -1183,8 +1183,8 void increment_seq_counter_source_id( un
1183 unsigned short segmentation_grouping_flag;
1183 unsigned short segmentation_grouping_flag;
1184 unsigned short new_packet_sequence_control;
1184 unsigned short new_packet_sequence_control;
1185
1185
1186 if ( (sid ==SID_NORM_SWF_F0) || (sid ==SID_NORM_SWF_F1) || (sid ==SID_NORM_SWF_F2)
1186 if ( (sid ==SID_NORM_SWF_F0) || (sid ==SID_NORM_SWF_F1) || (sid ==SID_NORM_SWF_F2)
1187 || (sid ==SID_BURST_CWF_F2) )
1187 || (sid ==SID_NORM_CWF_F3) || (sid ==SID_BURST_CWF_F2) )
1188 {
1188 {
1189 sequence_cnt = &sequenceCounters_SCIENCE_NORMAL_BURST;
1189 sequence_cnt = &sequenceCounters_SCIENCE_NORMAL_BURST;
1190 }
1190 }
General Comments 0
You need to be logged in to leave comments. Login now