fsw_init.h
45 lines
| 1.3 KiB
| text/x-c
|
CLexer
/ header / fsw_init.h
paul@pc-solar1.lab-lpp.local
|
r5 | #ifndef FSW_RTEMS_H_INCLUDED | ||
#define FSW_RTEMS_H_INCLUDED | ||||
#include <errno.h> | ||||
#include <fcntl.h> | ||||
#include <stdio.h> | ||||
#include <stdlib.h> | ||||
#include <grspw.h> | ||||
#include <apbuart.h> | ||||
#include <fsw_params.h> | ||||
#include <fsw_misc.h> | ||||
#include <fsw_processing.h> | ||||
#include <tc_handler.h> | ||||
#include <wf_handler.h> | ||||
#include <grlib_regs.h> | ||||
extern int sched_yield(); | ||||
extern int errno; | ||||
paul@pc-solar1.lab-lpp.local
|
r9 | extern rtems_id Task_id[ ]; /* array of task ids */ | ||
extern rtems_name Task_name[ ]; /* array of task names */ | ||||
extern rtems_name misc_name[ ]; /* arry of miscellaneous names for rtems objects */ | ||||
extern int fdSPW; // grspw file descriptor | ||||
extern int fdUART; // uart file descriptor | ||||
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); | ||||
rtems_task stat_task(rtems_task_argument argument); | ||||
rtems_task wfrm_task(rtems_task_argument argument); | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | int create_all_tasks(); | ||
int start_all_tasks(); | ||||
admin@pc-p-leroy3.LAB-LPP.LOCAL
|
r8 | int create_message_queue(); | ||
paul@pc-solar1.lab-lpp.local
|
r5 | |||
// OTHER functions | ||||
int configure_spw_link(); | ||||
int send_console_outputs_on_serial_port(); | ||||
extern int rtems_cpu_usage_report(); | ||||
extern int rtems_cpu_usage_reset(); | ||||
void print_statistics(spw_stats *); | ||||
rtems_status_code write_spw(spw_ioctl_pkt_send* spw_ioctl_send); | ||||
#endif // FSW_RTEMS_CONFIG_H_INCLUDED | ||||