fsw_init.h
43 lines
| 1.2 KiB
| text/x-c
|
CLexer
/ header / fsw_init.h
|
r45 | #ifndef FSW_INIT_H_INCLUDED | ||
#define FSW_INIT_H_INCLUDED | ||||
|
r5 | |||
|
r40 | #include <rtems.h> | ||
#include <leon.h> | ||||
|
r21 | |||
|
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" | ||||
|
r21 | |||
|
r82 | extern rtems_name Task_name[20]; /* array of task names */ | ||
extern rtems_id Task_id[20]; /* array of task ids */ | ||||
|
r5 | // RTEMS TASKS | ||
|
r40 | rtems_task Init( rtems_task_argument argument); | ||
|
r34 | |||
// OTHER functions | ||||
|
r46 | void create_names( void ); | ||
|
r21 | int create_all_tasks( void ); | ||
int start_all_tasks( void ); | ||||
|
r56 | // | ||
rtems_status_code create_message_queues( void ); | ||||
|
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 ); | ||||
|
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 ); | ||||
|
r56 | // | ||
|
r46 | int start_recv_send_tasks( void ); | ||
|
r34 | // | ||
|
r28 | void init_local_mode_parameters( void ); | ||
|
r104 | void reset_local_time( void ); | ||
|
r21 | |||
|
r18 | extern int rtems_cpu_usage_report( void ); | ||
|
r21 | extern int rtems_cpu_usage_reset( void ); | ||
|
r34 | extern void rtems_stack_checker_report_usage( void ); | ||
|
r21 | |||
|
r35 | extern int sched_yield( void ); | ||
|
r45 | #endif // FSW_INIT_H_INCLUDED | ||