fsw_misc.h
37 lines
| 1.3 KiB
| text/x-c
|
CLexer
/ header / fsw_misc.h
paul@pc-solar1.lab-lpp.local
|
r5 | #ifndef FSW_MISC_H_INCLUDED | ||
#define FSW_MISC_H_INCLUDED | ||||
paul
|
r45 | #include <rtems.h> | ||
#include <stdio.h> | ||||
#include <grspw.h> | ||||
#include "fsw_params.h" | ||||
#include "fsw_spacewire.h" | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | |||
paul
|
r46 | rtems_name name_hk_rate_monotonic; // name of the HK rate monotonic | ||
paul@pc-solar1.lab-lpp.local
|
r18 | rtems_id HK_id; // id of the HK rate monotonic period | ||
paul
|
r45 | |||
extern rtems_name misc_name[5]; | ||||
time_management_regs_t *time_management_regs; | ||||
paul
|
r33 | extern Packet_TM_LFR_HK_t housekeeping_packet; | ||
paul@pc-solar1.lab-lpp.local
|
r17 | |||
paul@pc-solar1.lab-lpp.local
|
r5 | int configure_timer(gptimer_regs_t *gptimer_regs, unsigned char timer, unsigned int clock_divider, | ||
unsigned char interrupt_level, rtems_isr (*timer_isr)() ); | ||||
paul
|
r31 | int timer_start( gptimer_regs_t *gptimer_regs, unsigned char timer ); | ||
int timer_stop( gptimer_regs_t *gptimer_regs, unsigned char timer ); | ||||
int timer_set_clock_divider(gptimer_regs_t *gptimer_regs, unsigned char timer, unsigned int clock_divider); | ||||
paul@pc-solar1.lab-lpp.local
|
r17 | |||
// SERIAL LINK | ||||
paul@pc-solar1.lab-lpp.local
|
r25 | int send_console_outputs_on_apbuart_port( void ); | ||
paul
|
r40 | void set_apbuart_scaler_reload_register(unsigned int regs, unsigned int value); | ||
paul@pc-solar1.lab-lpp.local
|
r17 | |||
// RTEMS TASKS | ||||
paul
|
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 ); | ||||
paul
|
r35 | |||
paul
|
r46 | void init_housekeeping_parameters( void ); | ||
paul
|
r56 | void increment_seq_counter( unsigned char *packet_sequence_control); | ||
paul@pc-solar1.lab-lpp.local
|
r5 | #endif // FSW_MISC_H_INCLUDED | ||