##// END OF EJS Templates
Release 0.7...
Release 0.7 Update from ICD 1.8 TC_PARAMETER_DUMP implemented

File last commit:

r28:bba8bfc08608 default
r28:bba8bfc08608 default
Show More
64 lines | 2.2 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 Packet_TM_LFR_PARAMETER_DUMP_t parameter_dump_packet;
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_parameter_dump( void );
void init_local_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);