fsw_misc.h
46 lines
| 1.7 KiB
| text/x-c
|
CLexer
/ header / fsw_misc.h
|
r5 | #ifndef FSW_MISC_H_INCLUDED | ||
#define FSW_MISC_H_INCLUDED | ||||
|
r45 | #include <rtems.h> | ||
#include <stdio.h> | ||||
#include <grspw.h> | ||||
#include "fsw_params.h" | ||||
#include "fsw_spacewire.h" | ||||
|
r134 | #include "lfr_cpu_usage_report.h" | ||
|
r5 | |||
|
r46 | rtems_name name_hk_rate_monotonic; // name of the HK rate monotonic | ||
|
r18 | rtems_id HK_id; // id of the HK rate monotonic period | ||
|
r45 | |||
|
r77 | void configure_timer(gptimer_regs_t *gptimer_regs, unsigned char timer, unsigned int clock_divider, | ||
|
r5 | unsigned char interrupt_level, rtems_isr (*timer_isr)() ); | ||
|
r77 | void timer_start( gptimer_regs_t *gptimer_regs, unsigned char timer ); | ||
void timer_stop( gptimer_regs_t *gptimer_regs, unsigned char timer ); | ||||
void timer_set_clock_divider(gptimer_regs_t *gptimer_regs, unsigned char timer, unsigned int clock_divider); | ||||
|
r17 | |||
// SERIAL LINK | ||||
|
r25 | int send_console_outputs_on_apbuart_port( void ); | ||
|
r94 | int enable_apbuart_transmitter( void ); | ||
|
r40 | void set_apbuart_scaler_reload_register(unsigned int regs, unsigned int value); | ||
|
r17 | |||
// RTEMS TASKS | ||||
|
r45 | rtems_task stat_task( rtems_task_argument argument ); | ||
rtems_task hous_task( rtems_task_argument argument ); | ||||
rtems_task dumb_task( rtems_task_argument unused ); | ||||
|
r35 | |||
|
r46 | void init_housekeeping_parameters( void ); | ||
|
r149 | void increment_seq_counter(unsigned short *packetSequenceControl); | ||
|
r75 | void getTime( unsigned char *time); | ||
|
r117 | unsigned long long int getTimeAsUnsignedLongLongInt( ); | ||
|
r110 | void send_dumb_hk( void ); | ||
|
r171 | void get_v_e1_e2_f3(unsigned char *spacecraft_potential); | ||
|
r134 | void get_cpu_load( unsigned char *resource_statistics ); | ||
|
r75 | |||
|
r118 | extern int sched_yield( void ); | ||
|
r166 | extern void rtems_cpu_usage_reset(); | ||
|
r132 | extern ring_node *current_ring_node_f3; | ||
extern ring_node *ring_node_to_send_cwf_f3; | ||||
|
r171 | extern ring_node waveform_ring_f3[]; | ||
|
r149 | extern unsigned short sequenceCounterHK; | ||
|
r118 | |||
|
r5 | #endif // FSW_MISC_H_INCLUDED | ||