fsw_init.h
60 lines
| 1.8 KiB
| text/x-c
|
CLexer
/ header / fsw_init.h
paul@pc-solar1.lab-lpp.local
|
r5 | #ifndef FSW_RTEMS_H_INCLUDED | ||
paul@pc-solar1.lab-lpp.local
|
r21 | #define FSW_RTEMS_H_INCLUDED | ||
paul@pc-solar1.lab-lpp.local
|
r5 | #include <errno.h> | ||
#include <fcntl.h> | ||||
#include <stdio.h> | ||||
#include <stdlib.h> | ||||
#include <grspw.h> | ||||
paul@pc-solar1.lab-lpp.local
|
r21 | #include <apbuart.h> | ||
paul
|
r33 | #include "fsw_params.h" | ||
#include "fsw_misc.h" | ||||
paul
|
r37 | #include "tm_byte_positions.h" | ||
paul
|
r33 | #include "fsw_processing.h" | ||
#include "tc_handler.h" | ||||
#include "wf_handler.h" | ||||
#include "grlib_regs.h" | ||||
#include "ccsds_types.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@pc-solar1.lab-lpp.local
|
r21 | extern unsigned short sequenceCounters[SEQ_CNT_NB_PID][SEQ_CNT_NB_CAT][SEQ_CNT_NB_DEST_ID]; | ||
paul@pc-solar1.lab-lpp.local
|
r5 | // RTEMS TASKS | ||
rtems_task Init( rtems_task_argument argument); /* forward declaration needed */ | ||||
paul@pc-solar1.lab-lpp.local
|
r9 | rtems_task recv_task(rtems_task_argument argument); | ||
paul@pc-solar1.lab-lpp.local
|
r21 | rtems_task stat_task(rtems_task_argument argument); | ||
rtems_task wfrm_task(rtems_task_argument argument); | ||||
paul
|
r34 | |||
// OTHER functions | ||||
paul@pc-solar1.lab-lpp.local
|
r21 | int create_names( void ); | ||
int create_all_tasks( void ); | ||||
int start_all_tasks( void ); | ||||
paul
|
r35 | rtems_status_code create_message_queues( void ); | ||
paul
|
r34 | // | ||
paul@pc-solar1.lab-lpp.local
|
r28 | void init_parameter_dump( void ); | ||
void init_local_mode_parameters( void ); | ||||
paul@pc-solar1.lab-lpp.local
|
r21 | void init_housekeeping_parameters( void ); | ||
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@pc-solar1.lab-lpp.local
|
r21 | #endif // FSW_RTEMS_CONFIG_H_INCLUDED | ||