fsw_init.h
52 lines
| 1.4 KiB
| text/x-c
|
CLexer
/ header / fsw_init.h
paul
|
r45 | #ifndef FSW_INIT_H_INCLUDED | ||
#define FSW_INIT_H_INCLUDED | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | |||
paul
|
r40 | #include <rtems.h> | ||
#include <leon.h> | ||||
paul@pc-solar1.lab-lpp.local
|
r21 | |||
paul
|
r33 | #include "fsw_params.h" | ||
#include "fsw_misc.h" | ||||
#include "fsw_processing.h" | ||||
#include "tc_handler.h" | ||||
#include "wf_handler.h" | ||||
#include "fsw_spacewire.h" | ||||
paul@pc-solar1.lab-lpp.local
|
r21 | |||
paul
|
r35 | extern rtems_name misc_name[5]; | ||
extern rtems_id misc_id[5]; | ||||
extern rtems_name Task_name[20]; /* array of task names */ | ||||
extern rtems_id Task_id[20]; /* array of task ids */ | ||||
paul
|
r34 | extern unsigned int maxCount; | ||
paul@pc-solar1.lab-lpp.local
|
r9 | extern int fdSPW; // grspw file descriptor | ||
paul@pc-solar1.lab-lpp.local
|
r21 | extern int fdUART; // uart file descriptor | ||
paul
|
r33 | extern unsigned char lfrCurrentMode; | ||
paul@pc-solar1.lab-lpp.local
|
r21 | |||
// MODE PARAMETERS | ||||
paul@pc-solar1.lab-lpp.local
|
r23 | extern struct param_local_str param_local; | ||
paul@pc-solar1.lab-lpp.local
|
r28 | extern Packet_TM_LFR_PARAMETER_DUMP_t parameter_dump_packet; | ||
paul
|
r56 | extern unsigned short sequenceCounters_SCIENCE_NORMAL_BURST; | ||
extern unsigned short sequenceCounters_SCIENCE_SBM1_SBM2; | ||||
extern unsigned short sequenceCounters_TC_EXE[SEQ_CNT_NB_DEST_ID]; | ||||
paul@pc-solar1.lab-lpp.local
|
r21 | |||
paul@pc-solar1.lab-lpp.local
|
r5 | // RTEMS TASKS | ||
paul
|
r40 | rtems_task Init( rtems_task_argument argument); | ||
paul
|
r34 | |||
// OTHER functions | ||||
paul
|
r46 | void create_names( void ); | ||
paul@pc-solar1.lab-lpp.local
|
r21 | int create_all_tasks( void ); | ||
int start_all_tasks( void ); | ||||
paul
|
r56 | // | ||
rtems_status_code create_message_queues( void ); | ||||
// | ||||
paul
|
r46 | int start_recv_send_tasks( void ); | ||
paul
|
r34 | // | ||
paul@pc-solar1.lab-lpp.local
|
r28 | void init_local_mode_parameters( void ); | ||
paul@pc-solar1.lab-lpp.local
|
r21 | |||
paul@pc-solar1.lab-lpp.local
|
r18 | extern int rtems_cpu_usage_report( void ); | ||
paul@pc-solar1.lab-lpp.local
|
r21 | extern int rtems_cpu_usage_reset( void ); | ||
paul
|
r34 | extern void rtems_stack_checker_report_usage( void ); | ||
paul@pc-solar1.lab-lpp.local
|
r21 | |||
paul
|
r35 | extern int sched_yield( void ); | ||
extern int errno; | ||||
paul
|
r45 | #endif // FSW_INIT_H_INCLUDED | ||