fsw_init.h
64 lines
| 2.0 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" | ||||
paul
|
r124 | |||
paul
|
r33 | #include "tc_handler.h" | ||
#include "wf_handler.h" | ||||
#include "fsw_spacewire.h" | ||||
paul@pc-solar1.lab-lpp.local
|
r21 | |||
paul
|
r126 | #include "avf0_prc0.h" | ||
#include "avf1_prc1.h" | ||||
#include "avf2_prc2.h" | ||||
paul
|
r298 | extern rtems_name Task_name[]; /* array of task names */ | ||
extern rtems_id Task_id[]; /* array of task ids */ | ||||
paul
|
r248 | extern rtems_name timecode_timer_name; | ||
extern rtems_id timecode_timer_id; | ||||
paul
|
r224 | extern unsigned char pa_bia_status_info; | ||
paul
|
r283 | extern unsigned char cp_rpw_sc_rw_f_flags; | ||
extern float cp_rpw_sc_rw1_f1; | ||||
extern float cp_rpw_sc_rw1_f2; | ||||
extern float cp_rpw_sc_rw2_f1; | ||||
extern float cp_rpw_sc_rw2_f2; | ||||
extern float cp_rpw_sc_rw3_f1; | ||||
extern float cp_rpw_sc_rw3_f2; | ||||
extern float cp_rpw_sc_rw4_f1; | ||||
extern float cp_rpw_sc_rw4_f2; | ||||
paul
|
r293 | extern filterPar_t filterPar; | ||
paul
|
r82 | |||
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
|
r248 | rtems_status_code create_timecode_timer( void ); | ||
paul
|
r82 | rtems_status_code get_message_queue_id_send( rtems_id *queue_id ); | ||
rtems_status_code get_message_queue_id_recv( rtems_id *queue_id ); | ||||
paul
|
r119 | rtems_status_code get_message_queue_id_prc0( rtems_id *queue_id ); | ||
rtems_status_code get_message_queue_id_prc1( rtems_id *queue_id ); | ||||
paul
|
r124 | rtems_status_code get_message_queue_id_prc2( rtems_id *queue_id ); | ||
paul
|
r197 | void update_queue_max_count( rtems_id queue_id, unsigned char*fifo_size_max ); | ||
void init_ring(ring_node ring[], unsigned char nbNodes, volatile int buffer[], unsigned int bufferSize ); | ||||
paul
|
r56 | // | ||
paul
|
r46 | int start_recv_send_tasks( void ); | ||
paul
|
r34 | // | ||
paul@pc-solar1.lab-lpp.local
|
r28 | void init_local_mode_parameters( void ); | ||
paul
|
r104 | void reset_local_time( void ); | ||
paul@pc-solar1.lab-lpp.local
|
r21 | |||
paul
|
r166 | extern void rtems_cpu_usage_report( void ); | ||
extern void 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 ); | ||
paul
|
r45 | #endif // FSW_INIT_H_INCLUDED | ||