Defines board specific static initializers for hardware for the FlyingPIO IO expander.
More...
|
file | system_stm32f0xx.c |
| CMSIS Cortex-M0 Device Peripheral Access Layer System Source File. This file contains the system clock configuration for STM32F0xx devices, and is generated by the clock configuration tool STM32F0xx_Clock_Configuration_V1.0.1.xls.
|
|
Defines board specific static initializers for hardware for the FlyingPIO IO expander.
Board specific options that modify PiOS capabilities.
Start the RTOS and the Modules.
Board header file for FlyingPIO IO Expander.
- See Also
- The GNU Public License (GPL) Version 3
#define PIOS_ADC_SUB_DRIVER_MAX_INSTANCES 1 |
#define PIOS_DSM_NUM_INPUTS 12 |
#define PIOS_HSUM_MAX_DEVS 1 |
#define PIOS_HSUM_NUM_INPUTS 32 |
#define PIOS_INCLUDE_ANNUNC |
#define PIOS_INCLUDE_HSUM |
#define PIOS_INCLUDE_IBUS |
#define PIOS_INCLUDE_RCVR |
#define PIOS_INCLUDE_SBUS |
#define PIOS_INCLUDE_SERVO |
#define PIOS_INCLUDE_SPISLAVE |
#define PIOS_INCLUDE_SRXL |
#define PIOS_INCLUDE_USART |
#define PIOS_IRQ_PRIO_EXTREME 0 |
#define PIOS_IRQ_PRIO_HIGH 5 |
#define PIOS_IRQ_PRIO_HIGHEST 4 |
#define PIOS_IRQ_PRIO_LOW 12 |
#define PIOS_IRQ_PRIO_MID 8 |
#define PIOS_LED_HEARTBEAT 0 |
#define PIOS_PPM_NUM_INPUTS 12 |
#define PIOS_RCVR_MAX_CHANNELS 12 |
#define PIOS_SBUS_NUM_INPUTS (16+2) |
#define PIOS_SERVO_UPDATE_HZ 50 |
#define PIOS_SERVOS_INITIAL_POSITION 0 /* dont want to start motors, have no pulse till settings loaded */ |
#define PIOS_SYSCLK 40000000 |
#define PIOS_TIM_MAX_DEVS 3 |
#define PIOS_WATCHDOG_TIMEOUT 125 |
const void* _interrupt_vectors [USART2_IRQn] __attribute |
( |
(section(".interrupt_vectors")) |
| ) |
|
static void generate_status_message |
( |
int * |
resp_len | ) |
|
|
static |
dRonin Main function:
Initialize PiOS
Create the "System" task (SystemModInitializein Modules/System/systemmod.c)
Start the RTOS Scheduler
CortexM3 CPU vectors
CortexM3 CPU vectors
Definition at line 207 of file main.c.
void PIOS_Board_Init |
( |
void |
| ) |
|
PIOS_Board_Init() initializes all the core subsystems on this specific hardware called from System/openpilot.c
Initialise PWM Output for black/white level setting PIOS_Board_Init() initializes all the core subsystems on this specific hardware called from System/openpilot.c
PIOS_Board_Init() initializes all the core subsystems on this specific hardware
PIOS_Board_Init() initializes all the core systems on this specific hardware called from System/openpilot.c
Definition at line 44 of file pios_board.c.
static void process_pio_message |
( |
void * |
ctx, |
|
|
int |
len, |
|
|
int * |
resp_len |
|
) |
| |
|
static |
static void process_pio_message_impl |
( |
int * |
resp_len | ) |
|
|
static |
void TIM14_IRQHandler |
( |
void |
| ) |
|
void TIM15_IRQHandler |
( |
void |
| ) |
|
void TIM16_IRQHandler |
( |
void |
| ) |
|
void TIM17_IRQHandler |
( |
void |
| ) |
|
void TIM1_BRK_UP_TRG_COM_IRQHandler |
( |
void |
| ) |
|
void TIM1_CC_IRQHandler |
( |
void |
| ) |
|
void TIM2_IRQHandler |
( |
void |
| ) |
|
void TIM3_IRQHandler |
( |
void |
| ) |
|
void USART1_IRQHandler |
( |
void |
| ) |
|
Initial value:= {
.timer = TIM14,
.timer_chan = TIM_Channel_1,
.remap = GPIO_AF_0,
.pin = {
.gpio = GPIOB,
.init = {
.GPIO_Pin = GPIO_Pin_1,
.GPIO_Mode = GPIO_Mode_AF,
.GPIO_PuPd = GPIO_PuPd_UP,
.GPIO_OType = GPIO_OType_PP,
.GPIO_Speed = GPIO_Speed_2MHz,
},
.pin_source = GPIO_PinSource1,
},
}
Definition at line 251 of file board_hw_defs.c.
Initial value:= {
.timer = TIM14,
.irq = {
.init = {
.NVIC_IRQChannel = TIM14_IRQn,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
static const TIM_TimeBaseInitTypeDef tim_time_base
Definition at line 228 of file board_hw_defs.c.
Initial value:= {
.timer = TIM1,
.irq = {
.init = {
.NVIC_IRQChannel = TIM1_CC_IRQn,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
static const TIM_TimeBaseInitTypeDef tim_time_base
Definition at line 205 of file board_hw_defs.c.
Initial value:= {
.timer = TIM3,
.irq = {
.init = {
.NVIC_IRQChannel = TIM3_IRQn,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
static const TIM_TimeBaseInitTypeDef tim_time_base
Definition at line 216 of file board_hw_defs.c.
const TIM_TimeBaseInitTypeDef tim_time_base |
|
static |
Initial value:= {
.TIM_ClockDivision = TIM_CKD_DIV1,
.TIM_CounterMode = TIM_CounterMode_Up,
.TIM_RepetitionCounter = 0x0000,
}
#define PIOS_SERVO_UPDATE_HZ
Definition at line 197 of file board_hw_defs.c.