fsw_init.h
64 lines
| 2.2 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> | ||
#include <fsw_params.h> | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | #include <fsw_misc.h> | ||
paul@pc-solar1.lab-lpp.local
|
r21 | #include <fsw_processing.h> | ||
#include <tc_handler.h> | ||||
#include <wf_handler.h> | ||||
#include <grlib_regs.h> | ||||
#include <ccsds_types.h> | ||||
paul@pc-solar1.lab-lpp.local
|
r18 | extern int sched_yield( void ); | ||
paul@pc-solar1.lab-lpp.local
|
r21 | extern int errno; | ||
paul@pc-solar1.lab-lpp.local
|
r9 | extern rtems_id Task_id[ ]; /* array of task ids */ | ||
paul@pc-solar1.lab-lpp.local
|
r21 | extern rtems_name Task_name[ ]; /* array of task names */ | ||
extern rtems_name misc_name[ ]; /* arry of miscellaneous names for rtems objects */ | ||||
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 | ||
void timecode_irq_handler(void *pDev, void *regs, int minor, unsigned int tc); | ||||
// 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 Packet_TM_LFR_HK_t housekeeping_packet; | ||
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); | ||
rtems_task spiq_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); | ||||
int create_names( void ); | ||||
int create_all_tasks( void ); | ||||
int start_all_tasks( void ); | ||||
int create_message_queue( void ); | ||||
// OTHER functions | ||||
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
|
r23 | int spacewire_configure_link( void ); | ||
paul@pc-solar1.lab-lpp.local
|
r25 | int spacewire_wait_for_link(void); | ||
paul@pc-solar1.lab-lpp.local
|
r23 | void spacewire_set_NP(unsigned char val, unsigned int regAddr); // No Port force | ||
void spacewire_set_RE(unsigned char val, unsigned int regAddr); // RMAP Enable | ||||
void spacewire_compute_stats_offsets(); | ||||
paul@pc-solar1.lab-lpp.local
|
r15 | |||
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 ); | ||
rtems_status_code write_spw(spw_ioctl_pkt_send* spw_ioctl_send); | ||||
void (*grspw_timecode_callback) (void *pDev, void *regs, int minor, unsigned int tc); | ||||
#endif // FSW_RTEMS_CONFIG_H_INCLUDED | ||||