##// END OF EJS Templates
commit before release
commit before release

File last commit:

r25:68625add1e50 default
r25:68625add1e50 default
Show More
67 lines | 2.3 KiB | text/x-c | CLexer
#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>
#include <ccsds_types.h>
extern int sched_yield( void );
extern int errno;
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
void timecode_irq_handler(void *pDev, void *regs, int minor, unsigned int tc);
extern struct param_local_str param_local;
extern struct param_common_str param_common;
extern struct param_norm_str param_norm;
extern struct param_burst_str param_burst;
extern struct param_sbm1_str param_sbm1;
extern struct param_sbm2_str param_sbm2;
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];
rtems_task Init( rtems_task_argument argument); /* forward declaration needed */
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);
int create_names( void );
int create_all_tasks( void );
int start_all_tasks( void );
int create_message_queue( void );
// OTHER functions
void init_default_mode_parameters( void );
void init_housekeeping_parameters( void );
int spacewire_configure_link( void );
int spacewire_wait_for_link(void);
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();
extern int rtems_cpu_usage_report( void );
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);