34 #include "uavobjectsinit.h"
37 #include <board_hw_defs.c>
40 #include <pios_rtc_priv.h>
64 const void *_interrupt_vectors[USART2_IRQn]
__attribute((section(
".interrupt_vectors"))) = {
94 HWSHARED_DSMXMODE_AUTODETECT,
100 memcpy(&
cfg, cmd,
sizeof(
cfg));
151 bzero(resp,
sizeof(*resp));
214 #if defined(PIOS_INCLUDE_ANNUNC)
215 const struct pios_annunc_cfg *led_cfg = PIOS_BOARD_HW_DEFS_GetLedCfg(0);
220 #if defined(PIOS_INCLUDE_ADC)
260 if ((i == 0) || (i == 0x8000) || (i == 0x10000)) {
262 }
else if ((i == 0x4000) || (i == 0xc000) || (i == 0x14000)) {
uint16_t valid_messages_recvd
int32_t PIOS_SPISLAVE_Init(spislave_t *spislave_id, const struct pios_spislave_cfg *cfg, int initial_tx_size)
int32_t PIOS_SPISLAVE_PollSS(spislave_t spislave_dev)
void TIM2_IRQHandler(void)
Main PiOS header to include all the compiled in PiOS options.
void TIM15_IRQHandler(void)
int32_t PIOS_INTERNAL_ADC_Init(uintptr_t *internal_adc_id, const struct pios_internal_adc_cfg *cfg)
uintptr_t pios_rcvr_group_map[]
static void handle_cfg_fa(struct flyingpicmd_cfg_fa *cmd)
uint16_t adc_data[FPPROTO_MAX_ADCCHANS]
void PIOS_INTERNAL_ADC_DoStep(pios_internal_adc_t internal_adc_id)
void USART1_IRQHandler(void)
void TIM16_IRQHandler(void)
uint16_t values[FPPROTO_MAX_SERVOS]
struct pios_internal_adc_dev * pios_internal_adc_t
void PIOS_ANNUNC_Off(uint32_t annunc_id)
void PIOS_Board_Init(void)
void PIOS_Servo_SetFraction(uint8_t servo, uint16_t fraction, uint16_t max_val, uint16_t min_val)
#define FPPROTO_MAX_ADCCHANS
void PIOS_WDG_Clear(void)
Clear the watchdog timer.
static void generate_status_message(int *resp_len)
#define FLYINGPICMD_ACTUATOR
static struct flyingpicmd_cfg_fa cfg
const struct pios_com_driver pios_usart_com_driver
const struct pios_adc_driver pios_internal_adc_driver
int32_t PIOS_TIM_InitClock(const struct pios_tim_clock_cfg *cfg)
uint16_t receiver_protocol
void TIM1_CC_IRQHandler(void)
static void handle_actuator_fc(struct flyingpicmd_actuator_fc *cmd)
uint16_t rate[FPPROTO_MAX_BANKS]
void PIOS_heap_initialize_blocks(void)
int32_t PIOS_ANNUNC_Init(const struct pios_annunc_cfg *cfg)
void PIOS_ANNUNC_On(uint32_t annunc_id)
static const struct pios_tim_clock_cfg tim_1_cfg
#define FPPROTO_MAX_BANKS
#define FPPROTO_MAX_SERVOS
struct pios_spislave_dev * spislave_t
int PIOS_Servo_SetMode(const uint16_t *out_rate, const int banks, const uint16_t *channel_max, const uint16_t *channel_min)
PIOS_Servo_SetMode Sets the PWM output frequency and resolution. An output rate of 0 indicates Synchr...
int32_t PIOS_Servo_Init(const struct pios_servo_cfg *cfg)
void TIM1_BRK_UP_TRG_COM_IRQHandler(void)
int32_t PIOS_RCVR_Read(uintptr_t rcvr_id, uint8_t channel)
static const struct pios_tim_clock_cfg tim_14_cfg
void TIM14_IRQHandler(void)
int32_t PIOS_ADC_GetChannelRaw(uint32_t channel)
Includes PiOS and core architecture components.
uint16_t PIOS_WDG_Init()
Initialize the watchdog timer for a specified timeout.
void PIOS_Servo_Update(void)
int32_t PIOS_ADC_Init(uintptr_t *adc_id, const struct pios_adc_driver *driver, uintptr_t lower_id)
static void process_pio_message(void *ctx, int len, int *resp_len)
void TIM17_IRQHandler(void)
static const struct pios_tim_clock_cfg tim_3_cfg
static ManualControlCommandData cmd
#define PIOS_Assert(test)
#define FPPROTO_MAX_RCCHANS
uint16_t chan_data[FPPROTO_MAX_RCCHANS]
void TIM3_IRQHandler(void)
static bool flyingpi_calc_crc(struct flyingpi_msg *msg, bool fill_in, int *total_len)
struct flyingpicmd_cfg_fa::@15 actuators[FPPROTO_MAX_SERVOS]
const void *_interrupt_vectors[USART2_IRQn] __attribute((section(".interrupt_vectors")))
#define PIOS_LED_HEARTBEAT
static void process_pio_message_impl(int *resp_len)