##// END OF EJS Templates
Ignore doc files...
Ignore doc files All redmine issues taken into account SpaceWire management rewritten Init task changed to work when SpaceWire is not available at boot time

File last commit:

r46:72fea9e87fcb default
r46:72fea9e87fcb default
Show More
fsw_init.h
48 lines | 1.3 KiB | text/x-c | CLexer
#ifndef FSW_INIT_H_INCLUDED
#define FSW_INIT_H_INCLUDED
#include <rtems.h>
#include <leon.h>
#include "fsw_params.h"
#include "fsw_misc.h"
#include "fsw_processing.h"
#include "tc_handler.h"
#include "wf_handler.h"
#include "fsw_spacewire.h"
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 */
extern unsigned int maxCount;
extern int fdSPW; // grspw file descriptor
extern int fdUART; // uart file descriptor
extern unsigned char lfrCurrentMode;
// MODE PARAMETERS
extern struct param_local_str param_local;
extern Packet_TM_LFR_PARAMETER_DUMP_t parameter_dump_packet;
extern unsigned short sequenceCounters[SEQ_CNT_NB_PID][SEQ_CNT_NB_CAT][SEQ_CNT_NB_DEST_ID];
// RTEMS TASKS
rtems_task Init( rtems_task_argument argument);
// OTHER functions
void create_names( void );
rtems_status_code create_message_queues( void );
int create_all_tasks( void );
int start_all_tasks( void );
int start_recv_send_tasks( void );
//
void init_local_mode_parameters( void );
extern int rtems_cpu_usage_report( void );
extern int rtems_cpu_usage_reset( void );
extern void rtems_stack_checker_report_usage( void );
extern int sched_yield( void );
extern int errno;
#endif // FSW_INIT_H_INCLUDED