dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
OpenPilot Revolution Mini

Modules

 CMSIS
 
 USB_OTG_DRIVER
 

Files

file  pios_board.c
 Board specific initialization for the bootloader.
 
file  pios_config.h
 This file contains the DFU commands handling code.
 
file  board_hw_defs.c
 Defines board specific static initializers for hardware for the Revolution board.
 
file  cmsis_system.c
 CMSIS Cortex-M4 Device Peripheral Access Layer System Source File. This file contains the system clock configuration for STM32F4xx devices, and is generated by the clock configuration tool stm32f4xx_Clock_Configuration_V1.0.0.xls.
 
file  pios_board.h
 Board specific defines for RevoMini.
 
file  usb_conf.h
 General low level driver configuration.
 
file  pios_board.c
 The board specific initialization routines.
 
file  pios_config.h
 Board specific options that modify PiOS capabilities.
 

Macros

#define STM32F4xx_MCUCONF
 
#define STM32_NO_INIT   FALSE
 
#define STM32_HSI_ENABLED   TRUE
 
#define STM32_LSI_ENABLED   TRUE
 
#define STM32_HSE_ENABLED   TRUE
 
#define STM32_LSE_ENABLED   FALSE
 
#define STM32_CLOCK48_REQUIRED   TRUE
 
#define STM32_SW   STM32_SW_PLL
 
#define STM32_PLLSRC   STM32_PLLSRC_HSE
 
#define STM32_HPRE   STM32_HPRE_DIV1
 
#define STM32_PPRE1   STM32_PPRE1_DIV4
 
#define STM32_PPRE2   STM32_PPRE2_DIV2
 
#define STM32_RTCSEL   STM32_RTCSEL_LSI
 
#define STM32_RTCPRE_VALUE   8
 
#define STM32_MCO1SEL   STM32_MCO1SEL_HSI
 
#define STM32_MCO1PRE   STM32_MCO1PRE_DIV1
 
#define STM32_MCO2SEL   STM32_MCO2SEL_SYSCLK
 
#define STM32_MCO2PRE   STM32_MCO2PRE_DIV5
 
#define STM32_I2SSRC   STM32_I2SSRC_CKIN
 
#define STM32_PLLI2SN_VALUE   192
 
#define STM32_PLLI2SR_VALUE   5
 
#define STM32_PVD_ENABLE   FALSE
 
#define STM32_PLS   STM32_PLS_LEV0
 
#define STM32_BKPRAM_ENABLE   FALSE
 
#define STM32_ADC_ADCPRE   ADC_CCR_ADCPRE_DIV4
 
#define STM32_ADC_USE_ADC1   FALSE
 
#define STM32_ADC_USE_ADC2   FALSE
 
#define STM32_ADC_USE_ADC3   FALSE
 
#define STM32_ADC_ADC1_DMA_STREAM   STM32_DMA_STREAM_ID(2, 4)
 
#define STM32_ADC_ADC2_DMA_STREAM   STM32_DMA_STREAM_ID(2, 2)
 
#define STM32_ADC_ADC3_DMA_STREAM   STM32_DMA_STREAM_ID(2, 1)
 
#define STM32_ADC_ADC1_DMA_PRIORITY   2
 
#define STM32_ADC_ADC2_DMA_PRIORITY   2
 
#define STM32_ADC_ADC3_DMA_PRIORITY   2
 
#define STM32_ADC_IRQ_PRIORITY   6
 
#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY   6
 
#define STM32_ADC_ADC2_DMA_IRQ_PRIORITY   6
 
#define STM32_ADC_ADC3_DMA_IRQ_PRIORITY   6
 
#define STM32_CAN_USE_CAN1   FALSE
 
#define STM32_CAN_USE_CAN2   FALSE
 
#define STM32_CAN_CAN1_IRQ_PRIORITY   11
 
#define STM32_CAN_CAN2_IRQ_PRIORITY   11
 
#define STM32_EXT_EXTI0_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI1_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI2_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI3_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI4_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI5_9_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI10_15_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI16_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI17_IRQ_PRIORITY   15
 
#define STM32_EXT_EXTI18_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI19_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI20_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI21_IRQ_PRIORITY   15
 
#define STM32_EXT_EXTI22_IRQ_PRIORITY   15
 
#define STM32_GPT_USE_TIM1   FALSE
 
#define STM32_GPT_USE_TIM2   FALSE
 
#define STM32_GPT_USE_TIM3   FALSE
 
#define STM32_GPT_USE_TIM4   FALSE
 
#define STM32_GPT_USE_TIM5   FALSE
 
#define STM32_GPT_USE_TIM6   FALSE
 
#define STM32_GPT_USE_TIM7   FALSE
 
#define STM32_GPT_USE_TIM8   FALSE
 
#define STM32_GPT_USE_TIM9   FALSE
 
#define STM32_GPT_USE_TIM11   FALSE
 
#define STM32_GPT_USE_TIM12   FALSE
 
#define STM32_GPT_USE_TIM14   FALSE
 
#define STM32_GPT_TIM1_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM2_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM3_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM4_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM5_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM6_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM7_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM8_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM9_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM11_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM12_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM14_IRQ_PRIORITY   7
 
#define STM32_I2C_USE_I2C1   FALSE
 
#define STM32_I2C_USE_I2C2   FALSE
 
#define STM32_I2C_USE_I2C3   FALSE
 
#define STM32_I2C_I2C1_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 0)
 
#define STM32_I2C_I2C1_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 6)
 
#define STM32_I2C_I2C2_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 2)
 
#define STM32_I2C_I2C2_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 7)
 
#define STM32_I2C_I2C3_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 2)
 
#define STM32_I2C_I2C3_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 4)
 
#define STM32_I2C_I2C1_IRQ_PRIORITY   5
 
#define STM32_I2C_I2C2_IRQ_PRIORITY   5
 
#define STM32_I2C_I2C3_IRQ_PRIORITY   5
 
#define STM32_I2C_I2C1_DMA_PRIORITY   3
 
#define STM32_I2C_I2C2_DMA_PRIORITY   3
 
#define STM32_I2C_I2C3_DMA_PRIORITY   3
 
#define STM32_I2C_I2C1_DMA_ERROR_HOOK()   chSysHalt()
 
#define STM32_I2C_I2C2_DMA_ERROR_HOOK()   chSysHalt()
 
#define STM32_I2C_I2C3_DMA_ERROR_HOOK()   chSysHalt()
 
#define STM32_ICU_USE_TIM1   FALSE
 
#define STM32_ICU_USE_TIM2   FALSE
 
#define STM32_ICU_USE_TIM3   FALSE
 
#define STM32_ICU_USE_TIM4   FALSE
 
#define STM32_ICU_USE_TIM5   FALSE
 
#define STM32_ICU_USE_TIM8   FALSE
 
#define STM32_ICU_USE_TIM9   FALSE
 
#define STM32_ICU_TIM1_IRQ_PRIORITY   7
 
#define STM32_ICU_TIM2_IRQ_PRIORITY   7
 
#define STM32_ICU_TIM3_IRQ_PRIORITY   7
 
#define STM32_ICU_TIM4_IRQ_PRIORITY   7
 
#define STM32_ICU_TIM5_IRQ_PRIORITY   7
 
#define STM32_ICU_TIM8_IRQ_PRIORITY   7
 
#define STM32_ICU_TIM9_IRQ_PRIORITY   7
 
#define STM32_MAC_TRANSMIT_BUFFERS   2
 
#define STM32_MAC_RECEIVE_BUFFERS   4
 
#define STM32_MAC_BUFFERS_SIZE   1522
 
#define STM32_MAC_PHY_TIMEOUT   100
 
#define STM32_MAC_ETH1_CHANGE_PHY_STATE   TRUE
 
#define STM32_MAC_ETH1_IRQ_PRIORITY   13
 
#define STM32_MAC_IP_CHECKSUM_OFFLOAD   0
 
#define STM32_PWM_USE_ADVANCED   FALSE
 
#define STM32_PWM_USE_TIM1   FALSE
 
#define STM32_PWM_USE_TIM2   FALSE
 
#define STM32_PWM_USE_TIM3   FALSE
 
#define STM32_PWM_USE_TIM4   FALSE
 
#define STM32_PWM_USE_TIM5   FALSE
 
#define STM32_PWM_USE_TIM8   FALSE
 
#define STM32_PWM_USE_TIM9   FALSE
 
#define STM32_PWM_TIM1_IRQ_PRIORITY   7
 
#define STM32_PWM_TIM2_IRQ_PRIORITY   7
 
#define STM32_PWM_TIM3_IRQ_PRIORITY   7
 
#define STM32_PWM_TIM4_IRQ_PRIORITY   7
 
#define STM32_PWM_TIM5_IRQ_PRIORITY   7
 
#define STM32_PWM_TIM8_IRQ_PRIORITY   7
 
#define STM32_PWM_TIM9_IRQ_PRIORITY   7
 
#define STM32_SERIAL_USE_USART1   FALSE
 
#define STM32_SERIAL_USE_USART2   FALSE
 
#define STM32_SERIAL_USE_USART3   FALSE
 
#define STM32_SERIAL_USE_UART4   FALSE
 
#define STM32_SERIAL_USE_UART5   FALSE
 
#define STM32_SERIAL_USE_USART6   FALSE
 
#define STM32_SERIAL_USART1_PRIORITY   12
 
#define STM32_SERIAL_USART2_PRIORITY   12
 
#define STM32_SERIAL_USART3_PRIORITY   12
 
#define STM32_SERIAL_UART4_PRIORITY   12
 
#define STM32_SERIAL_UART5_PRIORITY   12
 
#define STM32_SERIAL_USART6_PRIORITY   12
 
#define STM32_SPI_USE_SPI1   FALSE
 
#define STM32_SPI_USE_SPI2   FALSE
 
#define STM32_SPI_USE_SPI3   FALSE
 
#define STM32_SPI_SPI1_RX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 0)
 
#define STM32_SPI_SPI1_TX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 3)
 
#define STM32_SPI_SPI2_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 3)
 
#define STM32_SPI_SPI2_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 4)
 
#define STM32_SPI_SPI3_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 0)
 
#define STM32_SPI_SPI3_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 7)
 
#define STM32_SPI_SPI1_DMA_PRIORITY   1
 
#define STM32_SPI_SPI2_DMA_PRIORITY   1
 
#define STM32_SPI_SPI3_DMA_PRIORITY   1
 
#define STM32_SPI_SPI1_IRQ_PRIORITY   10
 
#define STM32_SPI_SPI2_IRQ_PRIORITY   10
 
#define STM32_SPI_SPI3_IRQ_PRIORITY   10
 
#define STM32_SPI_DMA_ERROR_HOOK(spip)   chSysHalt()
 
#define STM32_UART_USE_USART1   FALSE
 
#define STM32_UART_USE_USART2   FALSE
 
#define STM32_UART_USE_USART3   FALSE
 
#define STM32_UART_USE_UART4   FALSE
 
#define STM32_UART_USE_UART5   FALSE
 
#define STM32_UART_USE_USART6   FALSE
 
#define STM32_UART_USART1_RX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 5)
 
#define STM32_UART_USART1_TX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 7)
 
#define STM32_UART_USART2_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 5)
 
#define STM32_UART_USART2_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 6)
 
#define STM32_UART_USART3_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 1)
 
#define STM32_UART_USART3_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 3)
 
#define STM32_UART_UART4_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 2)
 
#define STM32_UART_UART4_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 4)
 
#define STM32_UART_UART5_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 0)
 
#define STM32_UART_UART5_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 7)
 
#define STM32_UART_USART6_RX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 2)
 
#define STM32_UART_USART6_TX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 7)
 
#define STM32_UART_USART1_IRQ_PRIORITY   12
 
#define STM32_UART_USART2_IRQ_PRIORITY   12
 
#define STM32_UART_USART3_IRQ_PRIORITY   12
 
#define STM32_UART_UART4_IRQ_PRIORITY   12
 
#define STM32_UART_UART5_IRQ_PRIORITY   12
 
#define STM32_UART_USART6_IRQ_PRIORITY   12
 
#define STM32_UART_USART1_DMA_PRIORITY   0
 
#define STM32_UART_USART2_DMA_PRIORITY   0
 
#define STM32_UART_USART3_DMA_PRIORITY   0
 
#define STM32_UART_UART4_DMA_PRIORITY   0
 
#define STM32_UART_UART5_DMA_PRIORITY   0
 
#define STM32_UART_USART6_DMA_PRIORITY   0
 
#define STM32_UART_DMA_ERROR_HOOK(uartp)   chSysHalt()
 
#define STM32_USB_USE_OTG1   FALSE
 
#define STM32_USB_USE_OTG2   FALSE
 
#define STM32_USB_OTG1_IRQ_PRIORITY   14
 
#define STM32_USB_OTG2_IRQ_PRIORITY   14
 
#define STM32_USB_OTG1_RX_FIFO_SIZE   512
 
#define STM32_USB_OTG2_RX_FIFO_SIZE   1024
 
#define STM32_USB_OTG_THREAD_PRIO   LOWPRIO
 
#define STM32_USB_OTG_THREAD_STACK_SIZE   128
 
#define STM32_USB_OTGFIFO_FILL_BASEPRI   0
 
#define PIOS_INCLUDE_ANNUNC
 
#define PIOS_INCLUDE_SPI
 
#define PIOS_INCLUDE_SYS
 
#define PIOS_INCLUDE_IAP
 
#define PIOS_INCLUDE_USB
 
#define PIOS_INCLUDE_USB_HID
 
#define PIOS_INCLUDE_COM_MSG
 
#define PIOS_INCLUDE_FLASH
 
#define PIOS_INCLUDE_FLASH_INTERNAL
 
#define PIOS_INCLUDE_FLASH_JEDEC
 
#define DEBUG_PRINTF(level,...)
 
#define BOARD_READABLE   true
 
#define BOARD_WRITABLE   true
 
#define MAX_DEL_RETRYS   3
 
#define PIOS_LED_HEARTBEAT   0
 
#define PIOS_LED_ALARM   1
 
#define PIOS_ANNUNCIATOR_BUZZER   2
 
#define PIOS_WATCHDOG_TIMEOUT   250
 
#define PIOS_WDG_REGISTER   RTC_BKP_DR4
 
#define PIOS_COM_GPS   (pios_com_gps_id)
 
#define PIOS_COM_TELEM_USB   (pios_com_telem_usb_id)
 
#define PIOS_COM_BRIDGE   (pios_com_bridge_id)
 
#define PIOS_COM_VCP   (pios_com_vcp_id)
 
#define PIOS_COM_MAVLINK   (pios_com_mavlink_id)
 
#define PIOS_COM_HOTT   (pios_com_hott_id)
 
#define PIOS_COM_FRSKY_SENSOR_HUB   (pios_com_frsky_sensor_hub_id)
 
#define PIOS_COM_LIGHTTELEMETRY   (pios_com_lighttelemetry_id)
 
#define PIOS_COM_FRSKY_SPORT   (pios_com_frsky_sport_id)
 
#define PIOS_COM_OPENLOG   (pios_com_openlog_logging_id)
 
#define PIOS_COM_STORM32BGC   (pios_com_storm32bgc_id)
 
#define RS_ECC_NPARITY   4
 
#define PIOS_SYSCLK   168000000
 
#define PIOS_PERIPHERAL_APB1_CLOCK   (PIOS_SYSCLK / 4)
 
#define PIOS_PERIPHERAL_APB2_CLOCK   (PIOS_SYSCLK / 2)
 
#define PIOS_IRQ_PRIO_LOW   12
 
#define PIOS_IRQ_PRIO_MID   8
 
#define PIOS_IRQ_PRIO_HIGH   5
 
#define PIOS_IRQ_PRIO_HIGHEST   4
 
#define PIOS_RCVR_MAX_CHANNELS   12
 
#define PIOS_PPM_NUM_INPUTS   12
 
#define PIOS_PWM_NUM_INPUTS   8
 
#define PIOS_SPEKTRUM_NUM_INPUTS   12
 
#define PIOS_SBUS_NUM_INPUTS   (16+2)
 
#define PIOS_DSM_NUM_INPUTS   12
 
#define PIOS_HSUM_MAX_DEVS   2
 
#define PIOS_HSUM_NUM_INPUTS   32
 
#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_TIM_MAX_DEVS   6
 
#define PIOS_ADC_MAX_OVERSAMPLING   2
 
#define VREF_PLUS   3.3
 
#define PIOS_USB_ENABLED   1 /* Should remove all references to this */
 
#define STABILIZATION_LQG
 
#define PIOS_INCLUDE_FLASH_JEDEC
 
#define PIOS_INCLUDE_I2C
 
#define PIOS_INCLUDE_SPI
 
#define PIOS_INCLUDE_FASTHEAP
 
#define PIOS_INCLUDE_WS2811
 
#define PIOS_INCLUDE_OPENLRS
 
#define PIOS_INCLUDE_OPENLRS_RCVR
 
#define PIOS_INCLUDE_MAX7456
 
#define PIOS_INCLUDE_BMP280
 
#define PIOS_INCLUDE_BMP280_SPI
 
#define PIOS_INCLUDE_HMC5883
 
#define PIOS_INCLUDE_HMC5983_I2C
 
#define PIOS_INCLUDE_MPU
 
#define PIOS_INCLUDE_MS5611
 
#define PIOS_INCLUDE_MPXV5004
 
#define PIOS_INCLUDE_MPXV7002
 
#define PIOS_TOLERATE_MISSING_SENSORS
 
#define PIOS_INCLUDE_MAVLINK
 
#define PIOS_INCLUDE_LIGHTTELEMETRY
 
#define PIOS_INCLUDE_PWM
 
#define SYSTEMMOD_RGBLED_SUPPORT
 
#define CAMERASTAB_POI_MODE
 
#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD   (9870518)
 
#define PIOS_INCLUDE_LOG_TO_FLASH
 
#define PIOS_LOGFLASH_SECT_SIZE   0x10000 /* 64kb */
 

Functions

void PIOS_Board_Init ()
 

Variables

uintptr_t pios_com_telem_usb_id
 
static const
TIM_TimeBaseInitTypeDef 
tim_3_5_time_base
 
static const
TIM_TimeBaseInitTypeDef 
tim_9_10_11_time_base
 
static const struct
pios_tim_clock_cfg 
tim_3_cfg
 
static const struct
pios_tim_clock_cfg 
tim_5_cfg
 
static const struct
pios_tim_clock_cfg 
tim_9_cfg
 
static const struct
pios_tim_clock_cfg 
tim_10_cfg
 
static const struct
pios_tim_clock_cfg 
tim_11_cfg
 
static const
TIM_TimeBaseInitTypeDef 
tim_apb1_time_base
 
static const
TIM_TimeBaseInitTypeDef 
tim_apb2_time_base
 
static const struct
pios_tim_clock_cfg 
tim_1_cfg
 
static const struct
pios_tim_clock_cfg 
tim_4_cfg
 
static const struct
pios_tim_clock_cfg 
tim_8_cfg
 
static const struct
pios_tim_clock_cfg 
tim_12_cfg
 
static const struct
pios_tim_channel 
pios_tim_servoport_all_pins []
 
static const struct
pios_tim_channel 
pios_tim_servoport_rcvrport_pins []
 
uintptr_t pios_com_telem_serial_id
 
uintptr_t pios_com_gps_id
 
uintptr_t pios_com_telem_usb_id
 
uintptr_t pios_com_bridge_id
 
uintptr_t pios_com_vcp_id
 
uintptr_t pios_com_mavlink_id
 
uintptr_t pios_com_hott_id
 
uintptr_t pios_com_frsky_sensor_hub_id
 
uintptr_t pios_com_lighttelemetry_id
 
uintptr_t pios_com_frsky_sport_id
 
uintptr_t pios_com_openlog_logging_id
 
uintptr_t pios_com_storm32bgc_id
 
uintptr_t pios_internal_adc_id = 0
 
uintptr_t pios_uavo_settings_fs_id
 
uintptr_t pios_com_openlog_logging_id
 

Detailed Description

Macro Definition Documentation

#define BOARD_READABLE   true

Definition at line 83 of file pios_board.h.

#define BOARD_WRITABLE   true

Definition at line 84 of file pios_board.h.

#define CAMERASTAB_POI_MODE

Definition at line 85 of file pios_config.h.

#define DEBUG_PRINTF (   level,
  ... 
)

Definition at line 44 of file pios_board.h.

#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD   (9870518)

Definition at line 100 of file pios_config.h.

#define MAX_DEL_RETRYS   3

Definition at line 85 of file pios_board.h.

#define PIOS_ADC_MAX_OVERSAMPLING   2

Definition at line 236 of file pios_board.h.

#define PIOS_ANNUNCIATOR_BUZZER   2

Definition at line 93 of file pios_board.h.

#define PIOS_COM_BRIDGE   (pios_com_bridge_id)

Definition at line 121 of file pios_board.h.

#define PIOS_COM_FRSKY_SENSOR_HUB   (pios_com_frsky_sensor_hub_id)

Definition at line 125 of file pios_board.h.

#define PIOS_COM_FRSKY_SPORT   (pios_com_frsky_sport_id)

Definition at line 127 of file pios_board.h.

#define PIOS_COM_GPS   (pios_com_gps_id)

Definition at line 119 of file pios_board.h.

#define PIOS_COM_HOTT   (pios_com_hott_id)

Definition at line 124 of file pios_board.h.

#define PIOS_COM_LIGHTTELEMETRY   (pios_com_lighttelemetry_id)

Definition at line 126 of file pios_board.h.

#define PIOS_COM_MAVLINK   (pios_com_mavlink_id)

Definition at line 123 of file pios_board.h.

#define PIOS_COM_OPENLOG   (pios_com_openlog_logging_id)

Definition at line 128 of file pios_board.h.

#define PIOS_COM_STORM32BGC   (pios_com_storm32bgc_id)

Definition at line 129 of file pios_board.h.

#define PIOS_COM_TELEM_USB   (pios_com_telem_usb_id)

Definition at line 120 of file pios_board.h.

#define PIOS_COM_VCP   (pios_com_vcp_id)

Definition at line 122 of file pios_board.h.

#define PIOS_DSM_NUM_INPUTS   12

Definition at line 215 of file pios_board.h.

#define PIOS_HSUM_MAX_DEVS   2

Definition at line 220 of file pios_board.h.

#define PIOS_HSUM_NUM_INPUTS   32

Definition at line 221 of file pios_board.h.

#define PIOS_INCLUDE_ANNUNC

Definition at line 34 of file pios_config.h.

#define PIOS_INCLUDE_BMP280

Definition at line 60 of file pios_config.h.

#define PIOS_INCLUDE_BMP280_SPI

Definition at line 61 of file pios_config.h.

#define PIOS_INCLUDE_COM_MSG

Definition at line 40 of file pios_config.h.

#define PIOS_INCLUDE_FASTHEAP

Definition at line 49 of file pios_config.h.

#define PIOS_INCLUDE_FLASH

Definition at line 41 of file pios_config.h.

#define PIOS_INCLUDE_FLASH_INTERNAL

Definition at line 42 of file pios_config.h.

#define PIOS_INCLUDE_FLASH_JEDEC

Definition at line 43 of file pios_config.h.

#define PIOS_INCLUDE_FLASH_JEDEC

Definition at line 46 of file pios_config.h.

#define PIOS_INCLUDE_HMC5883

Definition at line 62 of file pios_config.h.

#define PIOS_INCLUDE_HMC5983_I2C

Definition at line 63 of file pios_config.h.

#define PIOS_INCLUDE_I2C

Definition at line 47 of file pios_config.h.

#define PIOS_INCLUDE_IAP

Definition at line 37 of file pios_config.h.

#define PIOS_INCLUDE_LIGHTTELEMETRY

Definition at line 74 of file pios_config.h.

#define PIOS_INCLUDE_LOG_TO_FLASH

Definition at line 102 of file pios_config.h.

#define PIOS_INCLUDE_MAVLINK

Definition at line 73 of file pios_config.h.

#define PIOS_INCLUDE_MAX7456

Definition at line 57 of file pios_config.h.

#define PIOS_INCLUDE_MPU

Definition at line 64 of file pios_config.h.

#define PIOS_INCLUDE_MPXV5004

Definition at line 67 of file pios_config.h.

#define PIOS_INCLUDE_MPXV7002

Definition at line 68 of file pios_config.h.

#define PIOS_INCLUDE_MS5611

Definition at line 65 of file pios_config.h.

#define PIOS_INCLUDE_OPENLRS

Definition at line 53 of file pios_config.h.

#define PIOS_INCLUDE_OPENLRS_RCVR

Definition at line 54 of file pios_config.h.

#define PIOS_INCLUDE_PWM

Definition at line 77 of file pios_config.h.

#define PIOS_INCLUDE_SPI

Definition at line 35 of file pios_config.h.

#define PIOS_INCLUDE_SPI

Definition at line 48 of file pios_config.h.

#define PIOS_INCLUDE_SYS

Definition at line 36 of file pios_config.h.

#define PIOS_INCLUDE_USB

Definition at line 38 of file pios_config.h.

#define PIOS_INCLUDE_USB_HID

Definition at line 39 of file pios_config.h.

#define PIOS_INCLUDE_WS2811

Definition at line 50 of file pios_config.h.

#define PIOS_IRQ_PRIO_HIGH   5

Definition at line 183 of file pios_board.h.

#define PIOS_IRQ_PRIO_HIGHEST   4

Definition at line 184 of file pios_board.h.

#define PIOS_IRQ_PRIO_LOW   12

Definition at line 181 of file pios_board.h.

#define PIOS_IRQ_PRIO_MID   8

Definition at line 182 of file pios_board.h.

#define PIOS_LED_ALARM   1

Definition at line 92 of file pios_board.h.

#define PIOS_LED_HEARTBEAT   0

Definition at line 91 of file pios_board.h.

#define PIOS_LOGFLASH_SECT_SIZE   0x10000 /* 64kb */

Definition at line 103 of file pios_config.h.

#define PIOS_PERIPHERAL_APB1_CLOCK   (PIOS_SYSCLK / 4)

Definition at line 165 of file pios_board.h.

#define PIOS_PERIPHERAL_APB2_CLOCK   (PIOS_SYSCLK / 2)

Definition at line 175 of file pios_board.h.

#define PIOS_PPM_NUM_INPUTS   12

Definition at line 195 of file pios_board.h.

#define PIOS_PWM_NUM_INPUTS   8

Definition at line 200 of file pios_board.h.

#define PIOS_RCVR_MAX_CHANNELS   12

Definition at line 190 of file pios_board.h.

#define PIOS_SBUS_NUM_INPUTS   (16+2)

Definition at line 210 of file pios_board.h.

#define PIOS_SERVO_UPDATE_HZ   50

Definition at line 226 of file pios_board.h.

#define PIOS_SERVOS_INITIAL_POSITION   0 /* dont want to start motors, have no pulse till settings loaded */

Definition at line 227 of file pios_board.h.

#define PIOS_SPEKTRUM_NUM_INPUTS   12

Definition at line 205 of file pios_board.h.

#define PIOS_SYSCLK   168000000

Definition at line 154 of file pios_board.h.

#define PIOS_TIM_MAX_DEVS   6

Definition at line 232 of file pios_board.h.

#define PIOS_TOLERATE_MISSING_SENSORS

Definition at line 70 of file pios_config.h.

#define PIOS_USB_ENABLED   1 /* Should remove all references to this */

Definition at line 242 of file pios_board.h.

#define PIOS_WATCHDOG_TIMEOUT   250

Definition at line 98 of file pios_board.h.

#define PIOS_WDG_REGISTER   RTC_BKP_DR4

Definition at line 99 of file pios_board.h.

#define RS_ECC_NPARITY   4

Definition at line 152 of file pios_board.h.

#define STABILIZATION_LQG

Definition at line 43 of file pios_config.h.

#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY   6

Definition at line 110 of file mcuconf.h.

#define STM32_ADC_ADC1_DMA_PRIORITY   2

Definition at line 106 of file mcuconf.h.

#define STM32_ADC_ADC1_DMA_STREAM   STM32_DMA_STREAM_ID(2, 4)

Definition at line 103 of file mcuconf.h.

#define STM32_ADC_ADC2_DMA_IRQ_PRIORITY   6

Definition at line 111 of file mcuconf.h.

#define STM32_ADC_ADC2_DMA_PRIORITY   2

Definition at line 107 of file mcuconf.h.

#define STM32_ADC_ADC2_DMA_STREAM   STM32_DMA_STREAM_ID(2, 2)

Definition at line 104 of file mcuconf.h.

#define STM32_ADC_ADC3_DMA_IRQ_PRIORITY   6

Definition at line 112 of file mcuconf.h.

#define STM32_ADC_ADC3_DMA_PRIORITY   2

Definition at line 108 of file mcuconf.h.

#define STM32_ADC_ADC3_DMA_STREAM   STM32_DMA_STREAM_ID(2, 1)

Definition at line 105 of file mcuconf.h.

#define STM32_ADC_ADCPRE   ADC_CCR_ADCPRE_DIV4

Definition at line 99 of file mcuconf.h.

#define STM32_ADC_IRQ_PRIORITY   6

Definition at line 109 of file mcuconf.h.

#define STM32_ADC_USE_ADC1   FALSE

Definition at line 100 of file mcuconf.h.

#define STM32_ADC_USE_ADC2   FALSE

Definition at line 101 of file mcuconf.h.

#define STM32_ADC_USE_ADC3   FALSE

Definition at line 102 of file mcuconf.h.

#define STM32_BKPRAM_ENABLE   FALSE

Definition at line 94 of file mcuconf.h.

#define STM32_CAN_CAN1_IRQ_PRIORITY   11

Definition at line 119 of file mcuconf.h.

#define STM32_CAN_CAN2_IRQ_PRIORITY   11

Definition at line 120 of file mcuconf.h.

#define STM32_CAN_USE_CAN1   FALSE

Definition at line 117 of file mcuconf.h.

#define STM32_CAN_USE_CAN2   FALSE

Definition at line 118 of file mcuconf.h.

#define STM32_CLOCK48_REQUIRED   TRUE

Definition at line 50 of file mcuconf.h.

#define STM32_EXT_EXTI0_IRQ_PRIORITY   6

Definition at line 125 of file mcuconf.h.

#define STM32_EXT_EXTI10_15_IRQ_PRIORITY   6

Definition at line 131 of file mcuconf.h.

#define STM32_EXT_EXTI16_IRQ_PRIORITY   6

Definition at line 132 of file mcuconf.h.

#define STM32_EXT_EXTI17_IRQ_PRIORITY   15

Definition at line 133 of file mcuconf.h.

#define STM32_EXT_EXTI18_IRQ_PRIORITY   6

Definition at line 134 of file mcuconf.h.

#define STM32_EXT_EXTI19_IRQ_PRIORITY   6

Definition at line 135 of file mcuconf.h.

#define STM32_EXT_EXTI1_IRQ_PRIORITY   6

Definition at line 126 of file mcuconf.h.

#define STM32_EXT_EXTI20_IRQ_PRIORITY   6

Definition at line 136 of file mcuconf.h.

#define STM32_EXT_EXTI21_IRQ_PRIORITY   15

Definition at line 137 of file mcuconf.h.

#define STM32_EXT_EXTI22_IRQ_PRIORITY   15

Definition at line 138 of file mcuconf.h.

#define STM32_EXT_EXTI2_IRQ_PRIORITY   6

Definition at line 127 of file mcuconf.h.

#define STM32_EXT_EXTI3_IRQ_PRIORITY   6

Definition at line 128 of file mcuconf.h.

#define STM32_EXT_EXTI4_IRQ_PRIORITY   6

Definition at line 129 of file mcuconf.h.

#define STM32_EXT_EXTI5_9_IRQ_PRIORITY   6

Definition at line 130 of file mcuconf.h.

#define STM32_GPT_TIM11_IRQ_PRIORITY   7

Definition at line 164 of file mcuconf.h.

#define STM32_GPT_TIM12_IRQ_PRIORITY   7

Definition at line 165 of file mcuconf.h.

#define STM32_GPT_TIM14_IRQ_PRIORITY   7

Definition at line 166 of file mcuconf.h.

#define STM32_GPT_TIM1_IRQ_PRIORITY   7

Definition at line 155 of file mcuconf.h.

#define STM32_GPT_TIM2_IRQ_PRIORITY   7

Definition at line 156 of file mcuconf.h.

#define STM32_GPT_TIM3_IRQ_PRIORITY   7

Definition at line 157 of file mcuconf.h.

#define STM32_GPT_TIM4_IRQ_PRIORITY   7

Definition at line 158 of file mcuconf.h.

#define STM32_GPT_TIM5_IRQ_PRIORITY   7

Definition at line 159 of file mcuconf.h.

#define STM32_GPT_TIM6_IRQ_PRIORITY   7

Definition at line 160 of file mcuconf.h.

#define STM32_GPT_TIM7_IRQ_PRIORITY   7

Definition at line 161 of file mcuconf.h.

#define STM32_GPT_TIM8_IRQ_PRIORITY   7

Definition at line 162 of file mcuconf.h.

#define STM32_GPT_TIM9_IRQ_PRIORITY   7

Definition at line 163 of file mcuconf.h.

#define STM32_GPT_USE_TIM1   FALSE

Definition at line 143 of file mcuconf.h.

#define STM32_GPT_USE_TIM11   FALSE

Definition at line 152 of file mcuconf.h.

#define STM32_GPT_USE_TIM12   FALSE

Definition at line 153 of file mcuconf.h.

#define STM32_GPT_USE_TIM14   FALSE

Definition at line 154 of file mcuconf.h.

#define STM32_GPT_USE_TIM2   FALSE

Definition at line 144 of file mcuconf.h.

#define STM32_GPT_USE_TIM3   FALSE

Definition at line 145 of file mcuconf.h.

#define STM32_GPT_USE_TIM4   FALSE

Definition at line 146 of file mcuconf.h.

#define STM32_GPT_USE_TIM5   FALSE

Definition at line 147 of file mcuconf.h.

#define STM32_GPT_USE_TIM6   FALSE

Definition at line 148 of file mcuconf.h.

#define STM32_GPT_USE_TIM7   FALSE

Definition at line 149 of file mcuconf.h.

#define STM32_GPT_USE_TIM8   FALSE

Definition at line 150 of file mcuconf.h.

#define STM32_GPT_USE_TIM9   FALSE

Definition at line 151 of file mcuconf.h.

#define STM32_HPRE   STM32_HPRE_DIV1

Definition at line 80 of file mcuconf.h.

#define STM32_HSE_ENABLED   TRUE

Definition at line 48 of file mcuconf.h.

#define STM32_HSI_ENABLED   TRUE

Definition at line 46 of file mcuconf.h.

#define STM32_I2C_I2C1_DMA_ERROR_HOOK ( )    chSysHalt()

Definition at line 186 of file mcuconf.h.

#define STM32_I2C_I2C1_DMA_PRIORITY   3

Definition at line 183 of file mcuconf.h.

#define STM32_I2C_I2C1_IRQ_PRIORITY   5

Definition at line 180 of file mcuconf.h.

#define STM32_I2C_I2C1_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 0)

Definition at line 174 of file mcuconf.h.

#define STM32_I2C_I2C1_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 6)

Definition at line 175 of file mcuconf.h.

#define STM32_I2C_I2C2_DMA_ERROR_HOOK ( )    chSysHalt()

Definition at line 187 of file mcuconf.h.

#define STM32_I2C_I2C2_DMA_PRIORITY   3

Definition at line 184 of file mcuconf.h.

#define STM32_I2C_I2C2_IRQ_PRIORITY   5

Definition at line 181 of file mcuconf.h.

#define STM32_I2C_I2C2_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 2)

Definition at line 176 of file mcuconf.h.

#define STM32_I2C_I2C2_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 7)

Definition at line 177 of file mcuconf.h.

#define STM32_I2C_I2C3_DMA_ERROR_HOOK ( )    chSysHalt()

Definition at line 188 of file mcuconf.h.

#define STM32_I2C_I2C3_DMA_PRIORITY   3

Definition at line 185 of file mcuconf.h.

#define STM32_I2C_I2C3_IRQ_PRIORITY   5

Definition at line 182 of file mcuconf.h.

#define STM32_I2C_I2C3_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 2)

Definition at line 178 of file mcuconf.h.

#define STM32_I2C_I2C3_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 4)

Definition at line 179 of file mcuconf.h.

#define STM32_I2C_USE_I2C1   FALSE

Definition at line 171 of file mcuconf.h.

#define STM32_I2C_USE_I2C2   FALSE

Definition at line 172 of file mcuconf.h.

#define STM32_I2C_USE_I2C3   FALSE

Definition at line 173 of file mcuconf.h.

#define STM32_I2SSRC   STM32_I2SSRC_CKIN

Definition at line 89 of file mcuconf.h.

#define STM32_ICU_TIM1_IRQ_PRIORITY   7

Definition at line 200 of file mcuconf.h.

#define STM32_ICU_TIM2_IRQ_PRIORITY   7

Definition at line 201 of file mcuconf.h.

#define STM32_ICU_TIM3_IRQ_PRIORITY   7

Definition at line 202 of file mcuconf.h.

#define STM32_ICU_TIM4_IRQ_PRIORITY   7

Definition at line 203 of file mcuconf.h.

#define STM32_ICU_TIM5_IRQ_PRIORITY   7

Definition at line 204 of file mcuconf.h.

#define STM32_ICU_TIM8_IRQ_PRIORITY   7

Definition at line 205 of file mcuconf.h.

#define STM32_ICU_TIM9_IRQ_PRIORITY   7

Definition at line 206 of file mcuconf.h.

#define STM32_ICU_USE_TIM1   FALSE

Definition at line 193 of file mcuconf.h.

#define STM32_ICU_USE_TIM2   FALSE

Definition at line 194 of file mcuconf.h.

#define STM32_ICU_USE_TIM3   FALSE

Definition at line 195 of file mcuconf.h.

#define STM32_ICU_USE_TIM4   FALSE

Definition at line 196 of file mcuconf.h.

#define STM32_ICU_USE_TIM5   FALSE

Definition at line 197 of file mcuconf.h.

#define STM32_ICU_USE_TIM8   FALSE

Definition at line 198 of file mcuconf.h.

#define STM32_ICU_USE_TIM9   FALSE

Definition at line 199 of file mcuconf.h.

#define STM32_LSE_ENABLED   FALSE

Definition at line 49 of file mcuconf.h.

#define STM32_LSI_ENABLED   TRUE

Definition at line 47 of file mcuconf.h.

#define STM32_MAC_BUFFERS_SIZE   1522

Definition at line 213 of file mcuconf.h.

#define STM32_MAC_ETH1_CHANGE_PHY_STATE   TRUE

Definition at line 215 of file mcuconf.h.

#define STM32_MAC_ETH1_IRQ_PRIORITY   13

Definition at line 216 of file mcuconf.h.

#define STM32_MAC_IP_CHECKSUM_OFFLOAD   0

Definition at line 217 of file mcuconf.h.

#define STM32_MAC_PHY_TIMEOUT   100

Definition at line 214 of file mcuconf.h.

#define STM32_MAC_RECEIVE_BUFFERS   4

Definition at line 212 of file mcuconf.h.

#define STM32_MAC_TRANSMIT_BUFFERS   2

Definition at line 211 of file mcuconf.h.

#define STM32_MCO1PRE   STM32_MCO1PRE_DIV1

Definition at line 86 of file mcuconf.h.

#define STM32_MCO1SEL   STM32_MCO1SEL_HSI

Definition at line 85 of file mcuconf.h.

#define STM32_MCO2PRE   STM32_MCO2PRE_DIV5

Definition at line 88 of file mcuconf.h.

#define STM32_MCO2SEL   STM32_MCO2SEL_SYSCLK

Definition at line 87 of file mcuconf.h.

#define STM32_NO_INIT   FALSE

Definition at line 45 of file mcuconf.h.

#define STM32_PLLI2SN_VALUE   192

Definition at line 90 of file mcuconf.h.

#define STM32_PLLI2SR_VALUE   5

Definition at line 91 of file mcuconf.h.

#define STM32_PLLSRC   STM32_PLLSRC_HSE

Definition at line 52 of file mcuconf.h.

#define STM32_PLS   STM32_PLS_LEV0

Definition at line 93 of file mcuconf.h.

#define STM32_PPRE1   STM32_PPRE1_DIV4

Definition at line 81 of file mcuconf.h.

#define STM32_PPRE2   STM32_PPRE2_DIV2

Definition at line 82 of file mcuconf.h.

#define STM32_PVD_ENABLE   FALSE

Definition at line 92 of file mcuconf.h.

#define STM32_PWM_TIM1_IRQ_PRIORITY   7

Definition at line 230 of file mcuconf.h.

#define STM32_PWM_TIM2_IRQ_PRIORITY   7

Definition at line 231 of file mcuconf.h.

#define STM32_PWM_TIM3_IRQ_PRIORITY   7

Definition at line 232 of file mcuconf.h.

#define STM32_PWM_TIM4_IRQ_PRIORITY   7

Definition at line 233 of file mcuconf.h.

#define STM32_PWM_TIM5_IRQ_PRIORITY   7

Definition at line 234 of file mcuconf.h.

#define STM32_PWM_TIM8_IRQ_PRIORITY   7

Definition at line 235 of file mcuconf.h.

#define STM32_PWM_TIM9_IRQ_PRIORITY   7

Definition at line 236 of file mcuconf.h.

#define STM32_PWM_USE_ADVANCED   FALSE

Definition at line 222 of file mcuconf.h.

#define STM32_PWM_USE_TIM1   FALSE

Definition at line 223 of file mcuconf.h.

#define STM32_PWM_USE_TIM2   FALSE

Definition at line 224 of file mcuconf.h.

#define STM32_PWM_USE_TIM3   FALSE

Definition at line 225 of file mcuconf.h.

#define STM32_PWM_USE_TIM4   FALSE

Definition at line 226 of file mcuconf.h.

#define STM32_PWM_USE_TIM5   FALSE

Definition at line 227 of file mcuconf.h.

#define STM32_PWM_USE_TIM8   FALSE

Definition at line 228 of file mcuconf.h.

#define STM32_PWM_USE_TIM9   FALSE

Definition at line 229 of file mcuconf.h.

#define STM32_RTCPRE_VALUE   8

Definition at line 84 of file mcuconf.h.

#define STM32_RTCSEL   STM32_RTCSEL_LSI

Definition at line 83 of file mcuconf.h.

#define STM32_SERIAL_UART4_PRIORITY   12

Definition at line 250 of file mcuconf.h.

#define STM32_SERIAL_UART5_PRIORITY   12

Definition at line 251 of file mcuconf.h.

#define STM32_SERIAL_USART1_PRIORITY   12

Definition at line 247 of file mcuconf.h.

#define STM32_SERIAL_USART2_PRIORITY   12

Definition at line 248 of file mcuconf.h.

#define STM32_SERIAL_USART3_PRIORITY   12

Definition at line 249 of file mcuconf.h.

#define STM32_SERIAL_USART6_PRIORITY   12

Definition at line 252 of file mcuconf.h.

#define STM32_SERIAL_USE_UART4   FALSE

Definition at line 244 of file mcuconf.h.

#define STM32_SERIAL_USE_UART5   FALSE

Definition at line 245 of file mcuconf.h.

#define STM32_SERIAL_USE_USART1   FALSE

Definition at line 241 of file mcuconf.h.

#define STM32_SERIAL_USE_USART2   FALSE

Definition at line 242 of file mcuconf.h.

#define STM32_SERIAL_USE_USART3   FALSE

Definition at line 243 of file mcuconf.h.

#define STM32_SERIAL_USE_USART6   FALSE

Definition at line 246 of file mcuconf.h.

#define STM32_SPI_DMA_ERROR_HOOK (   spip)    chSysHalt()

Definition at line 272 of file mcuconf.h.

#define STM32_SPI_SPI1_DMA_PRIORITY   1

Definition at line 266 of file mcuconf.h.

#define STM32_SPI_SPI1_IRQ_PRIORITY   10

Definition at line 269 of file mcuconf.h.

#define STM32_SPI_SPI1_RX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 0)

Definition at line 260 of file mcuconf.h.

#define STM32_SPI_SPI1_TX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 3)

Definition at line 261 of file mcuconf.h.

#define STM32_SPI_SPI2_DMA_PRIORITY   1

Definition at line 267 of file mcuconf.h.

#define STM32_SPI_SPI2_IRQ_PRIORITY   10

Definition at line 270 of file mcuconf.h.

#define STM32_SPI_SPI2_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 3)

Definition at line 262 of file mcuconf.h.

#define STM32_SPI_SPI2_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 4)

Definition at line 263 of file mcuconf.h.

#define STM32_SPI_SPI3_DMA_PRIORITY   1

Definition at line 268 of file mcuconf.h.

#define STM32_SPI_SPI3_IRQ_PRIORITY   10

Definition at line 271 of file mcuconf.h.

#define STM32_SPI_SPI3_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 0)

Definition at line 264 of file mcuconf.h.

#define STM32_SPI_SPI3_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 7)

Definition at line 265 of file mcuconf.h.

#define STM32_SPI_USE_SPI1   FALSE

Definition at line 257 of file mcuconf.h.

#define STM32_SPI_USE_SPI2   FALSE

Definition at line 258 of file mcuconf.h.

#define STM32_SPI_USE_SPI3   FALSE

Definition at line 259 of file mcuconf.h.

#define STM32_SW   STM32_SW_PLL

Definition at line 51 of file mcuconf.h.

#define STM32_UART_DMA_ERROR_HOOK (   uartp)    chSysHalt()

Definition at line 307 of file mcuconf.h.

#define STM32_UART_UART4_DMA_PRIORITY   0

Definition at line 304 of file mcuconf.h.

#define STM32_UART_UART4_IRQ_PRIORITY   12

Definition at line 298 of file mcuconf.h.

#define STM32_UART_UART4_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 2)

Definition at line 289 of file mcuconf.h.

#define STM32_UART_UART4_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 4)

Definition at line 290 of file mcuconf.h.

#define STM32_UART_UART5_DMA_PRIORITY   0

Definition at line 305 of file mcuconf.h.

#define STM32_UART_UART5_IRQ_PRIORITY   12

Definition at line 299 of file mcuconf.h.

#define STM32_UART_UART5_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 0)

Definition at line 291 of file mcuconf.h.

#define STM32_UART_UART5_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 7)

Definition at line 292 of file mcuconf.h.

#define STM32_UART_USART1_DMA_PRIORITY   0

Definition at line 301 of file mcuconf.h.

#define STM32_UART_USART1_IRQ_PRIORITY   12

Definition at line 295 of file mcuconf.h.

#define STM32_UART_USART1_RX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 5)

Definition at line 283 of file mcuconf.h.

#define STM32_UART_USART1_TX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 7)

Definition at line 284 of file mcuconf.h.

#define STM32_UART_USART2_DMA_PRIORITY   0

Definition at line 302 of file mcuconf.h.

#define STM32_UART_USART2_IRQ_PRIORITY   12

Definition at line 296 of file mcuconf.h.

#define STM32_UART_USART2_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 5)

Definition at line 285 of file mcuconf.h.

#define STM32_UART_USART2_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 6)

Definition at line 286 of file mcuconf.h.

#define STM32_UART_USART3_DMA_PRIORITY   0

Definition at line 303 of file mcuconf.h.

#define STM32_UART_USART3_IRQ_PRIORITY   12

Definition at line 297 of file mcuconf.h.

#define STM32_UART_USART3_RX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 1)

Definition at line 287 of file mcuconf.h.

#define STM32_UART_USART3_TX_DMA_STREAM   STM32_DMA_STREAM_ID(1, 3)

Definition at line 288 of file mcuconf.h.

#define STM32_UART_USART6_DMA_PRIORITY   0

Definition at line 306 of file mcuconf.h.

#define STM32_UART_USART6_IRQ_PRIORITY   12

Definition at line 300 of file mcuconf.h.

#define STM32_UART_USART6_RX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 2)

Definition at line 293 of file mcuconf.h.

#define STM32_UART_USART6_TX_DMA_STREAM   STM32_DMA_STREAM_ID(2, 7)

Definition at line 294 of file mcuconf.h.

#define STM32_UART_USE_UART4   FALSE

Definition at line 280 of file mcuconf.h.

#define STM32_UART_USE_UART5   FALSE

Definition at line 281 of file mcuconf.h.

#define STM32_UART_USE_USART1   FALSE

Definition at line 277 of file mcuconf.h.

#define STM32_UART_USE_USART2   FALSE

Definition at line 278 of file mcuconf.h.

#define STM32_UART_USE_USART3   FALSE

Definition at line 279 of file mcuconf.h.

#define STM32_UART_USE_USART6   FALSE

Definition at line 282 of file mcuconf.h.

#define STM32_USB_OTG1_IRQ_PRIORITY   14

Definition at line 314 of file mcuconf.h.

#define STM32_USB_OTG1_RX_FIFO_SIZE   512

Definition at line 316 of file mcuconf.h.

#define STM32_USB_OTG2_IRQ_PRIORITY   14

Definition at line 315 of file mcuconf.h.

#define STM32_USB_OTG2_RX_FIFO_SIZE   1024

Definition at line 317 of file mcuconf.h.

#define STM32_USB_OTG_THREAD_PRIO   LOWPRIO

Definition at line 318 of file mcuconf.h.

#define STM32_USB_OTG_THREAD_STACK_SIZE   128

Definition at line 319 of file mcuconf.h.

#define STM32_USB_OTGFIFO_FILL_BASEPRI   0

Definition at line 320 of file mcuconf.h.

#define STM32_USB_USE_OTG1   FALSE

Definition at line 312 of file mcuconf.h.

#define STM32_USB_USE_OTG2   FALSE

Definition at line 313 of file mcuconf.h.

#define STM32F4xx_MCUCONF

Definition at line 40 of file mcuconf.h.

#define SYSTEMMOD_RGBLED_SUPPORT

Definition at line 83 of file pios_config.h.

#define VREF_PLUS   3.3

Definition at line 237 of file pios_board.h.

Function Documentation

void PIOS_Board_Init ( void  )

PIOS_Board_Init() initializes all the core subsystems on this specific hardware called from System/openpilot.c

Definition at line 44 of file pios_board.c.

Variable Documentation

uintptr_t pios_com_bridge_id

Definition at line 81 of file pios_hal.c.

uintptr_t pios_com_frsky_sensor_hub_id
uintptr_t pios_com_frsky_sport_id
uintptr_t pios_com_gps_id

Definition at line 80 of file pios_hal.c.

uintptr_t pios_com_hott_id
uintptr_t pios_com_lighttelemetry_id
uintptr_t pios_com_mavlink_id
uintptr_t pios_com_openlog_logging_id

Definition at line 65 of file pios_board.c.

uintptr_t pios_com_openlog_logging_id

Definition at line 49 of file pios_board.c.

uintptr_t pios_com_storm32bgc_id
uintptr_t pios_com_telem_serial_id

Definition at line 127 of file pios_hal.c.

uintptr_t pios_com_telem_usb_id

Definition at line 42 of file pios_board.c.

uintptr_t pios_com_telem_usb_id

Definition at line 42 of file pios_board.c.

uintptr_t pios_com_vcp_id
uintptr_t pios_internal_adc_id = 0

Definition at line 63 of file pios_board.c.

const struct pios_tim_channel pios_tim_servoport_all_pins[]
static

Definition at line 1152 of file board_hw_defs.c.

const struct pios_tim_channel pios_tim_servoport_rcvrport_pins[]
static

Definition at line 1267 of file board_hw_defs.c.

uintptr_t pios_uavo_settings_fs_id

Simulation of the flash filesystem

Todo:
something nicer about these

Definition at line 64 of file pios_board.c.

const struct pios_tim_clock_cfg tim_10_cfg
static
Initial value:
= {
.timer = TIM10,
.time_base_init = &tim_9_10_11_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM1_UP_TIM10_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_MID,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
#define PIOS_IRQ_PRIO_MID
Definition: pios_board.h:170
static const TIM_TimeBaseInitTypeDef tim_9_10_11_time_base

Definition at line 1040 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_11_cfg
static
Initial value:
= {
.timer = TIM11,
.time_base_init = &tim_9_10_11_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM1_TRG_COM_TIM11_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_MID,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
#define PIOS_IRQ_PRIO_MID
Definition: pios_board.h:170
static const TIM_TimeBaseInitTypeDef tim_9_10_11_time_base

Definition at line 1053 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_12_cfg
static
Initial value:
= {
.timer = TIM12,
.time_base_init = &tim_apb1_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM8_BRK_TIM12_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_MID,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
#define PIOS_IRQ_PRIO_MID
Definition: pios_board.h:170
static const TIM_TimeBaseInitTypeDef tim_apb1_time_base

Definition at line 1125 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_1_cfg
static
Initial value:
= {
.timer = TIM1,
.time_base_init = &tim_apb2_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM1_CC_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_MID,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
#define PIOS_IRQ_PRIO_MID
Definition: pios_board.h:170
static const TIM_TimeBaseInitTypeDef tim_apb2_time_base

Definition at line 1087 of file board_hw_defs.c.

const TIM_TimeBaseInitTypeDef tim_3_5_time_base
static
Initial value:
= {
.TIM_Prescaler = (PIOS_PERIPHERAL_APB1_COUNTER_CLOCK / 1000000) - 1,
.TIM_ClockDivision = TIM_CKD_DIV1,
.TIM_CounterMode = TIM_CounterMode_Up,
.TIM_Period = ((1000000 / PIOS_SERVO_UPDATE_HZ) - 1),
.TIM_RepetitionCounter = 0x0000,
}
#define PIOS_SERVO_UPDATE_HZ
Definition: pios_board.h:209

Definition at line 986 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_3_cfg
static
Initial value:
= {
.timer = TIM3,
.time_base_init = &tim_3_5_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM3_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_MID,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
#define PIOS_IRQ_PRIO_MID
Definition: pios_board.h:170
static const TIM_TimeBaseInitTypeDef tim_3_5_time_base

Definition at line 1001 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_4_cfg
static
Initial value:
= {
.timer = TIM4,
.time_base_init = &tim_apb1_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM4_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_MID,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
#define PIOS_IRQ_PRIO_MID
Definition: pios_board.h:170
static const TIM_TimeBaseInitTypeDef tim_apb1_time_base

Definition at line 1100 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_5_cfg
static
Initial value:
= {
.timer = TIM5,
.time_base_init = &tim_3_5_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM5_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_MID,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
#define PIOS_IRQ_PRIO_MID
Definition: pios_board.h:170
static const TIM_TimeBaseInitTypeDef tim_3_5_time_base

Definition at line 1014 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_8_cfg
static
Initial value:
= {
.timer = TIM8,
.time_base_init = &tim_apb2_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM8_CC_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_MID,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
#define PIOS_IRQ_PRIO_MID
Definition: pios_board.h:170
static const TIM_TimeBaseInitTypeDef tim_apb2_time_base

Definition at line 1112 of file board_hw_defs.c.

const TIM_TimeBaseInitTypeDef tim_9_10_11_time_base
static
Initial value:
= {
.TIM_Prescaler = (PIOS_PERIPHERAL_APB2_COUNTER_CLOCK / 1000000) - 1,
.TIM_ClockDivision = TIM_CKD_DIV1,
.TIM_CounterMode = TIM_CounterMode_Up,
.TIM_Period = ((1000000 / PIOS_SERVO_UPDATE_HZ) - 1),
.TIM_RepetitionCounter = 0x0000,
}
#define PIOS_SERVO_UPDATE_HZ
Definition: pios_board.h:209

Definition at line 993 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_9_cfg
static
Initial value:
= {
.timer = TIM9,
.time_base_init = &tim_9_10_11_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM1_BRK_TIM9_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_MID,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
}
#define PIOS_IRQ_PRIO_MID
Definition: pios_board.h:170
static const TIM_TimeBaseInitTypeDef tim_9_10_11_time_base

Definition at line 1027 of file board_hw_defs.c.

const TIM_TimeBaseInitTypeDef tim_apb1_time_base
static
Initial value:
= {
.TIM_Prescaler = (PIOS_PERIPHERAL_APB1_COUNTER_CLOCK / 1000000) - 1,
.TIM_ClockDivision = TIM_CKD_DIV1,
.TIM_CounterMode = TIM_CounterMode_Up,
.TIM_Period = 0xFFFF,
.TIM_RepetitionCounter = 0x0000,
}

Definition at line 1068 of file board_hw_defs.c.

const TIM_TimeBaseInitTypeDef tim_apb2_time_base
static
Initial value:
= {
.TIM_Prescaler = (PIOS_PERIPHERAL_APB2_COUNTER_CLOCK / 1000000) - 1,
.TIM_ClockDivision = TIM_CKD_DIV1,
.TIM_CounterMode = TIM_CounterMode_Up,
.TIM_Period = 0xFFFF,
.TIM_RepetitionCounter = 0x0000,
}

Definition at line 1079 of file board_hw_defs.c.