dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SP Racing F3 Evo

Modules

 CMSIS
 

Files

file  pios_board.c
 Board specific initialization for the bootloader.
 
file  pios_config.h
 Board specific bootloader configuration file for PiOS.
 
file  cmsis_system.c
 CMSIS Cortex-M4 Device Peripheral Access Layer System Source File. This file contains the system clock configuration for STM32F30x devices, and is generated by the clock configuration tool stm32f30x_Clock_Configuration_V1.0.0.xls.
 
file  pios_board.h
 Board header file for sprf3e board.
 

Macros

#define STM32F30x_MCUCONF
 
#define STM32_NO_INIT   FALSE
 
#define STM32_PVD_ENABLE   FALSE
 
#define STM32_PLS   STM32_PLS_LEV0
 
#define STM32_HSI_ENABLED   TRUE
 
#define STM32_LSI_ENABLED   TRUE
 
#define STM32_HSE_ENABLED   TRUE
 
#define STM32_LSE_ENABLED   FALSE
 
#define STM32_SW   STM32_SW_PLL
 
#define STM32_PLLSRC   STM32_PLLSRC_HSE
 
#define STM32_PREDIV_VALUE   1
 
#define STM32_PLLMUL_VALUE   9
 
#define STM32_HPRE   STM32_HPRE_DIV1
 
#define STM32_PPRE1   STM32_PPRE1_DIV2
 
#define STM32_PPRE2   STM32_PPRE2_DIV2
 
#define STM32_MCOSEL   STM32_MCOSEL_NOCLOCK
 
#define STM32_ADC12PRES   STM32_ADC12PRES_DIV1
 
#define STM32_ADC34PRES   STM32_ADC34PRES_DIV1
 
#define STM32_USART1SW   STM32_USART1SW_PCLK
 
#define STM32_USART2SW   STM32_USART2SW_PCLK
 
#define STM32_USART3SW   STM32_USART3SW_PCLK
 
#define STM32_UART4SW   STM32_UART4SW_PCLK
 
#define STM32_UART5SW   STM32_UART5SW_PCLK
 
#define STM32_I2C1SW   STM32_I2C1SW_HSI
 
#define STM32_I2C2SW   STM32_I2C2SW_HSI
 
#define STM32_TIM1SW   STM32_TIM1SW_PCLK2
 
#define STM32_TIM8SW   STM32_TIM8SW_PCLK2
 
#define STM32_RTCSEL   STM32_RTCSEL_LSI
 
#define STM32_USB_CLOCK_REQUIRED   TRUE
 
#define STM32_USBPRE   STM32_USBPRE_DIV1P5
 
#define STM32_ADC_USE_ADC1   FALSE
 
#define STM32_ADC_USE_ADC3   FALSE
 
#define STM32_ADC_ADC12_DMA_PRIORITY   2
 
#define STM32_ADC_ADC34_DMA_PRIORITY   2
 
#define STM32_ADC_ADC12_IRQ_PRIORITY   5
 
#define STM32_ADC_ADC34_IRQ_PRIORITY   5
 
#define STM32_ADC_ADC12_DMA_IRQ_PRIORITY   5
 
#define STM32_ADC_ADC34_DMA_IRQ_PRIORITY   5
 
#define STM32_ADC_ADC12_CLOCK_MODE   ADC_CCR_CKMODE_AHB_DIV1
 
#define STM32_ADC_ADC34_CLOCK_MODE   ADC_CCR_CKMODE_AHB_DIV1
 
#define STM32_ADC_DUAL_MODE   FALSE
 
#define STM32_CAN_USE_CAN1   FALSE
 
#define STM32_CAN_CAN1_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   6
 
#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_22_29_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI30_32_IRQ_PRIORITY   6
 
#define STM32_EXT_EXTI33_IRQ_PRIORITY   6
 
#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_TIM6   FALSE
 
#define STM32_GPT_USE_TIM7   FALSE
 
#define STM32_GPT_USE_TIM8   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_TIM6_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM7_IRQ_PRIORITY   7
 
#define STM32_GPT_TIM8_IRQ_PRIORITY   7
 
#define STM32_I2C_USE_I2C1   FALSE
 
#define STM32_I2C_USE_I2C2   FALSE
 
#define STM32_I2C_I2C1_IRQ_PRIORITY   10
 
#define STM32_I2C_I2C2_IRQ_PRIORITY   10
 
#define STM32_I2C_I2C1_DMA_PRIORITY   1
 
#define STM32_I2C_I2C2_DMA_PRIORITY   1
 
#define STM32_I2C_DMA_ERROR_HOOK(i2cp)   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_TIM8   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_TIM8_IRQ_PRIORITY   7
 
#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_TIM8   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_TIM8_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_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_SPI_USE_SPI1   FALSE
 
#define STM32_SPI_USE_SPI2   FALSE
 
#define STM32_SPI_USE_SPI3   FALSE
 
#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_USART1_IRQ_PRIORITY   12
 
#define STM32_UART_USART2_IRQ_PRIORITY   12
 
#define STM32_UART_USART3_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_DMA_ERROR_HOOK(uartp)   chSysHalt()
 
#define STM32_USB_USE_USB1   FALSE
 
#define STM32_USB_LOW_POWER_ON_SUSPEND   FALSE
 
#define STM32_USB_USB1_HP_IRQ_PRIORITY   13
 
#define STM32_USB_USB1_LP_IRQ_PRIORITY   14
 
#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 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   0
 
#define PIOS_ANNUNCIATOR_BUZZER   1
 
#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 PIOS_SYSCLK   72000000
 
#define PIOS_PERIPHERAL_APB1_CLOCK   (PIOS_SYSCLK / 2)
 
#define PIOS_PERIPHERAL_APB2_CLOCK   (PIOS_SYSCLK / 1)
 
#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   1
 
#define PIOS_DSM_NUM_INPUTS   12
 
#define PIOS_HSUM_MAX_DEVS   2
 
#define PIOS_HSUM_NUM_INPUTS   32
 
#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_TIM_MAX_DEVS   8
 
#define VREF_PLUS   3.3
 
#define PIOS_DMA_MAX_CHANNELS   12
 
#define PIOS_DMA_MAX_HANDLERS_PER_CHANNEL   3
 
#define PIOS_DMA_CHANNELS   {DMA1_Channel1, DMA1_Channel2, DMA1_Channel3, DMA1_Channel4, DMA1_Channel5, DMA1_Channel6, DMA1_Channel7, DMA2_Channel1, DMA2_Channel2, DMA2_Channel3, DMA2_Channel4, DMA2_Channel5}
 
#define PIOS_USB_ENABLED   1 /* Should remove all references to this */
 
#define STABILIZATION_LQG
 
#define PIOS_INCLUDE_DMA_CB_SUBSCRIBING_FUNCTION
 
#define PIOS_INCLUDE_I2C
 
#define PIOS_INCLUDE_SPI
 
#define WDG_STATS_DIAGNOSTICS
 
#define PIOS_INCLUDE_MPU
 
#define PIOS_INCLUDE_MPU_MAG
 
#define PIOS_INCLUDE_BMP280
 
#define PIOS_INCLUDE_HMC5883
 
#define PIOS_INCLUDE_HMC5983_I2C
 
#define PIOS_TOLERATE_MISSING_SENSORS
 
#define PIOS_INCLUDE_MAVLINK
 
#define PIOS_INCLUDE_LIGHTTELEMETRY
 
#define AUTOTUNE_AVERAGING_DECIMATION   2
 
#define PIOS_EVENTDISPATCHER_STACK_SIZE   1024
 
#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD   (2175780)
 
#define PIOS_INCLUDE_FASTHEAP
 
#define PIOS_INCLUDE_WS2811
 
#define SYSTEMMOD_RGBLED_SUPPORT
 

Functions

void PIOS_Board_Init ()
 

Variables

uintptr_t pios_com_telem_usb_id
 
static const
TIM_TimeBaseInitTypeDef 
tim_1_8_15_16_17_time_base
 
static const
TIM_TimeBaseInitTypeDef 
tim_2_3_time_base
 
static const struct
pios_tim_clock_cfg 
tim_2_cfg
 
static const struct
pios_tim_clock_cfg 
tim_3_cfg
 
static const struct
pios_tim_clock_cfg 
tim_8_cfg
 
static const struct
pios_tim_clock_cfg 
tim_15_cfg
 
static const struct
pios_tim_clock_cfg 
tim_16_cfg
 
static const struct
pios_tim_clock_cfg 
tim_17_cfg
 
static const struct
pios_tim_channel 
pios_tim_servoport_pins []
 
static const struct pios_servo_cfg pios_servo_cfg
 
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_com_aux_id
 
uintptr_t pios_uavo_settings_fs_id
 
uintptr_t pios_com_openlog_logging_id
 

Detailed Description

Macro Definition Documentation

#define AUTOTUNE_AVERAGING_DECIMATION   2

Definition at line 61 of file pios_config.h.

#define BOARD_READABLE   true

Definition at line 84 of file pios_board.h.

#define BOARD_WRITABLE   true

Definition at line 85 of file pios_board.h.

#define DEBUG_PRINTF (   level,
  ... 
)

Definition at line 40 of file pios_board.h.

#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD   (2175780)

Definition at line 79 of file pios_config.h.

#define MAX_DEL_RETRYS   3

Definition at line 86 of file pios_board.h.

#define PIOS_ANNUNCIATOR_BUZZER   1

Definition at line 94 of file pios_board.h.

#define PIOS_COM_BRIDGE   (pios_com_bridge_id)

Definition at line 122 of file pios_board.h.

#define PIOS_COM_FRSKY_SENSOR_HUB   (pios_com_frsky_sensor_hub_id)

Definition at line 126 of file pios_board.h.

#define PIOS_COM_FRSKY_SPORT   (pios_com_frsky_sport_id)

Definition at line 128 of file pios_board.h.

#define PIOS_COM_GPS   (pios_com_gps_id)

Definition at line 120 of file pios_board.h.

#define PIOS_COM_HOTT   (pios_com_hott_id)

Definition at line 125 of file pios_board.h.

#define PIOS_COM_LIGHTTELEMETRY   (pios_com_lighttelemetry_id)

Definition at line 127 of file pios_board.h.

#define PIOS_COM_MAVLINK   (pios_com_mavlink_id)

Definition at line 124 of file pios_board.h.

#define PIOS_COM_OPENLOG   (pios_com_openlog_logging_id)

Definition at line 129 of file pios_board.h.

#define PIOS_COM_STORM32BGC   (pios_com_storm32bgc_id)

Definition at line 130 of file pios_board.h.

#define PIOS_COM_TELEM_USB   (pios_com_telem_usb_id)

Definition at line 121 of file pios_board.h.

#define PIOS_COM_VCP   (pios_com_vcp_id)

Definition at line 123 of file pios_board.h.

#define PIOS_DMA_CHANNELS   {DMA1_Channel1, DMA1_Channel2, DMA1_Channel3, DMA1_Channel4, DMA1_Channel5, DMA1_Channel6, DMA1_Channel7, DMA2_Channel1, DMA2_Channel2, DMA2_Channel3, DMA2_Channel4, DMA2_Channel5}

Definition at line 219 of file pios_board.h.

#define PIOS_DMA_MAX_CHANNELS   12

Definition at line 217 of file pios_board.h.

#define PIOS_DMA_MAX_HANDLERS_PER_CHANNEL   3

Definition at line 218 of file pios_board.h.

#define PIOS_DSM_NUM_INPUTS   12

Definition at line 182 of file pios_board.h.

#define PIOS_EVENTDISPATCHER_STACK_SIZE   1024

Definition at line 66 of file pios_config.h.

#define PIOS_HSUM_MAX_DEVS   2

Definition at line 187 of file pios_board.h.

#define PIOS_HSUM_NUM_INPUTS   32

Definition at line 188 of file pios_board.h.

#define PIOS_INCLUDE_ANNUNC

Definition at line 35 of file pios_config.h.

#define PIOS_INCLUDE_BMP280

Definition at line 47 of file pios_config.h.

#define PIOS_INCLUDE_COM_MSG

Definition at line 41 of file pios_config.h.

#define PIOS_INCLUDE_DMA_CB_SUBSCRIBING_FUNCTION

Definition at line 39 of file pios_config.h.

#define PIOS_INCLUDE_FASTHEAP

Definition at line 83 of file pios_config.h.

#define PIOS_INCLUDE_FLASH

Definition at line 42 of file pios_config.h.

#define PIOS_INCLUDE_FLASH_INTERNAL

Definition at line 43 of file pios_config.h.

#define PIOS_INCLUDE_HMC5883

Definition at line 48 of file pios_config.h.

#define PIOS_INCLUDE_HMC5983_I2C

Definition at line 49 of file pios_config.h.

#define PIOS_INCLUDE_I2C

Definition at line 40 of file pios_config.h.

#define PIOS_INCLUDE_IAP

Definition at line 38 of file pios_config.h.

#define PIOS_INCLUDE_LIGHTTELEMETRY

Definition at line 54 of file pios_config.h.

#define PIOS_INCLUDE_MAVLINK

Definition at line 53 of file pios_config.h.

#define PIOS_INCLUDE_MPU

Definition at line 45 of file pios_config.h.

#define PIOS_INCLUDE_MPU_MAG

Definition at line 46 of file pios_config.h.

#define PIOS_INCLUDE_SPI

Definition at line 36 of file pios_config.h.

#define PIOS_INCLUDE_SPI

Definition at line 41 of file pios_config.h.

#define PIOS_INCLUDE_SYS

Definition at line 37 of file pios_config.h.

#define PIOS_INCLUDE_USB

Definition at line 39 of file pios_config.h.

#define PIOS_INCLUDE_USB_HID

Definition at line 40 of file pios_config.h.

#define PIOS_INCLUDE_WS2811

Definition at line 84 of file pios_config.h.

#define PIOS_IRQ_PRIO_HIGH   5

Definition at line 159 of file pios_board.h.

#define PIOS_IRQ_PRIO_HIGHEST   4

Definition at line 160 of file pios_board.h.

#define PIOS_IRQ_PRIO_LOW   12

Definition at line 157 of file pios_board.h.

#define PIOS_IRQ_PRIO_MID   8

Definition at line 158 of file pios_board.h.

#define PIOS_LED_ALARM   0

Definition at line 93 of file pios_board.h.

#define PIOS_LED_HEARTBEAT   0

Definition at line 92 of file pios_board.h.

#define PIOS_PERIPHERAL_APB1_CLOCK   (PIOS_SYSCLK / 2)

Definition at line 150 of file pios_board.h.

#define PIOS_PERIPHERAL_APB2_CLOCK   (PIOS_SYSCLK / 1)

Definition at line 151 of file pios_board.h.

#define PIOS_PPM_NUM_INPUTS   12

Definition at line 172 of file pios_board.h.

#define PIOS_PWM_NUM_INPUTS   1

Definition at line 177 of file pios_board.h.

#define PIOS_RCVR_MAX_CHANNELS   12

Definition at line 167 of file pios_board.h.

#define PIOS_SBUS_NUM_INPUTS   (16+2)

Definition at line 193 of file pios_board.h.

#define PIOS_SERVO_UPDATE_HZ   50

Definition at line 198 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 199 of file pios_board.h.

#define PIOS_SYSCLK   72000000

Definition at line 149 of file pios_board.h.

#define PIOS_TIM_MAX_DEVS   8

Definition at line 204 of file pios_board.h.

#define PIOS_TOLERATE_MISSING_SENSORS

Definition at line 50 of file pios_config.h.

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

Definition at line 224 of file pios_board.h.

#define PIOS_WATCHDOG_TIMEOUT   250

Definition at line 99 of file pios_board.h.

#define PIOS_WDG_REGISTER   RTC_BKP_DR4

Definition at line 100 of file pios_board.h.

#define STABILIZATION_LQG

Definition at line 36 of file pios_config.h.

#define STM32_ADC12PRES   STM32_ADC12PRES_DIV1

Definition at line 62 of file mcuconf.h.

#define STM32_ADC34PRES   STM32_ADC34PRES_DIV1

Definition at line 63 of file mcuconf.h.

#define STM32_ADC_ADC12_CLOCK_MODE   ADC_CCR_CKMODE_AHB_DIV1

Definition at line 88 of file mcuconf.h.

#define STM32_ADC_ADC12_DMA_IRQ_PRIORITY   5

Definition at line 86 of file mcuconf.h.

#define STM32_ADC_ADC12_DMA_PRIORITY   2

Definition at line 82 of file mcuconf.h.

#define STM32_ADC_ADC12_IRQ_PRIORITY   5

Definition at line 84 of file mcuconf.h.

#define STM32_ADC_ADC34_CLOCK_MODE   ADC_CCR_CKMODE_AHB_DIV1

Definition at line 89 of file mcuconf.h.

#define STM32_ADC_ADC34_DMA_IRQ_PRIORITY   5

Definition at line 87 of file mcuconf.h.

#define STM32_ADC_ADC34_DMA_PRIORITY   2

Definition at line 83 of file mcuconf.h.

#define STM32_ADC_ADC34_IRQ_PRIORITY   5

Definition at line 85 of file mcuconf.h.

#define STM32_ADC_DUAL_MODE   FALSE

Definition at line 90 of file mcuconf.h.

#define STM32_ADC_USE_ADC1   FALSE

Definition at line 80 of file mcuconf.h.

#define STM32_ADC_USE_ADC3   FALSE

Definition at line 81 of file mcuconf.h.

#define STM32_CAN_CAN1_IRQ_PRIORITY   11

Definition at line 96 of file mcuconf.h.

#define STM32_CAN_USE_CAN1   FALSE

Definition at line 95 of file mcuconf.h.

#define STM32_EXT_EXTI0_IRQ_PRIORITY   6

Definition at line 101 of file mcuconf.h.

#define STM32_EXT_EXTI10_15_IRQ_PRIORITY   6

Definition at line 107 of file mcuconf.h.

#define STM32_EXT_EXTI16_IRQ_PRIORITY   6

Definition at line 108 of file mcuconf.h.

#define STM32_EXT_EXTI17_IRQ_PRIORITY   6

Definition at line 109 of file mcuconf.h.

#define STM32_EXT_EXTI18_IRQ_PRIORITY   6

Definition at line 110 of file mcuconf.h.

#define STM32_EXT_EXTI19_IRQ_PRIORITY   6

Definition at line 111 of file mcuconf.h.

#define STM32_EXT_EXTI1_IRQ_PRIORITY   6

Definition at line 102 of file mcuconf.h.

#define STM32_EXT_EXTI20_IRQ_PRIORITY   6

Definition at line 112 of file mcuconf.h.

#define STM32_EXT_EXTI21_22_29_IRQ_PRIORITY   6

Definition at line 113 of file mcuconf.h.

#define STM32_EXT_EXTI2_IRQ_PRIORITY   6

Definition at line 103 of file mcuconf.h.

#define STM32_EXT_EXTI30_32_IRQ_PRIORITY   6

Definition at line 114 of file mcuconf.h.

#define STM32_EXT_EXTI33_IRQ_PRIORITY   6

Definition at line 115 of file mcuconf.h.

#define STM32_EXT_EXTI3_IRQ_PRIORITY   6

Definition at line 104 of file mcuconf.h.

#define STM32_EXT_EXTI4_IRQ_PRIORITY   6

Definition at line 105 of file mcuconf.h.

#define STM32_EXT_EXTI5_9_IRQ_PRIORITY   6

Definition at line 106 of file mcuconf.h.

#define STM32_GPT_TIM1_IRQ_PRIORITY   7

Definition at line 127 of file mcuconf.h.

#define STM32_GPT_TIM2_IRQ_PRIORITY   7

Definition at line 128 of file mcuconf.h.

#define STM32_GPT_TIM3_IRQ_PRIORITY   7

Definition at line 129 of file mcuconf.h.

#define STM32_GPT_TIM4_IRQ_PRIORITY   7

Definition at line 130 of file mcuconf.h.

#define STM32_GPT_TIM6_IRQ_PRIORITY   7

Definition at line 131 of file mcuconf.h.

#define STM32_GPT_TIM7_IRQ_PRIORITY   7

Definition at line 132 of file mcuconf.h.

#define STM32_GPT_TIM8_IRQ_PRIORITY   7

Definition at line 133 of file mcuconf.h.

#define STM32_GPT_USE_TIM1   FALSE

Definition at line 120 of file mcuconf.h.

#define STM32_GPT_USE_TIM2   FALSE

Definition at line 121 of file mcuconf.h.

#define STM32_GPT_USE_TIM3   FALSE

Definition at line 122 of file mcuconf.h.

#define STM32_GPT_USE_TIM4   FALSE

Definition at line 123 of file mcuconf.h.

#define STM32_GPT_USE_TIM6   FALSE

Definition at line 124 of file mcuconf.h.

#define STM32_GPT_USE_TIM7   FALSE

Definition at line 125 of file mcuconf.h.

#define STM32_GPT_USE_TIM8   FALSE

Definition at line 126 of file mcuconf.h.

#define STM32_HPRE   STM32_HPRE_DIV1

Definition at line 58 of file mcuconf.h.

#define STM32_HSE_ENABLED   TRUE

Definition at line 52 of file mcuconf.h.

#define STM32_HSI_ENABLED   TRUE

Definition at line 50 of file mcuconf.h.

#define STM32_I2C1SW   STM32_I2C1SW_HSI

Definition at line 69 of file mcuconf.h.

#define STM32_I2C2SW   STM32_I2C2SW_HSI

Definition at line 70 of file mcuconf.h.

#define STM32_I2C_DMA_ERROR_HOOK (   i2cp)    chSysHalt()

Definition at line 144 of file mcuconf.h.

#define STM32_I2C_I2C1_DMA_PRIORITY   1

Definition at line 142 of file mcuconf.h.

#define STM32_I2C_I2C1_IRQ_PRIORITY   10

Definition at line 140 of file mcuconf.h.

#define STM32_I2C_I2C2_DMA_PRIORITY   1

Definition at line 143 of file mcuconf.h.

#define STM32_I2C_I2C2_IRQ_PRIORITY   10

Definition at line 141 of file mcuconf.h.

#define STM32_I2C_USE_I2C1   FALSE

Definition at line 138 of file mcuconf.h.

#define STM32_I2C_USE_I2C2   FALSE

Definition at line 139 of file mcuconf.h.

#define STM32_ICU_TIM1_IRQ_PRIORITY   7

Definition at line 154 of file mcuconf.h.

#define STM32_ICU_TIM2_IRQ_PRIORITY   7

Definition at line 155 of file mcuconf.h.

#define STM32_ICU_TIM3_IRQ_PRIORITY   7

Definition at line 156 of file mcuconf.h.

#define STM32_ICU_TIM4_IRQ_PRIORITY   7

Definition at line 157 of file mcuconf.h.

#define STM32_ICU_TIM8_IRQ_PRIORITY   7

Definition at line 158 of file mcuconf.h.

#define STM32_ICU_USE_TIM1   FALSE

Definition at line 149 of file mcuconf.h.

#define STM32_ICU_USE_TIM2   FALSE

Definition at line 150 of file mcuconf.h.

#define STM32_ICU_USE_TIM3   FALSE

Definition at line 151 of file mcuconf.h.

#define STM32_ICU_USE_TIM4   FALSE

Definition at line 152 of file mcuconf.h.

#define STM32_ICU_USE_TIM8   FALSE

Definition at line 153 of file mcuconf.h.

#define STM32_LSE_ENABLED   FALSE

Definition at line 53 of file mcuconf.h.

#define STM32_LSI_ENABLED   TRUE

Definition at line 51 of file mcuconf.h.

#define STM32_MCOSEL   STM32_MCOSEL_NOCLOCK

Definition at line 61 of file mcuconf.h.

#define STM32_NO_INIT   FALSE

Definition at line 47 of file mcuconf.h.

#define STM32_PLLMUL_VALUE   9

Definition at line 57 of file mcuconf.h.

#define STM32_PLLSRC   STM32_PLLSRC_HSE

Definition at line 55 of file mcuconf.h.

#define STM32_PLS   STM32_PLS_LEV0

Definition at line 49 of file mcuconf.h.

#define STM32_PPRE1   STM32_PPRE1_DIV2

Definition at line 59 of file mcuconf.h.

#define STM32_PPRE2   STM32_PPRE2_DIV2

Definition at line 60 of file mcuconf.h.

#define STM32_PREDIV_VALUE   1

Definition at line 56 of file mcuconf.h.

#define STM32_PVD_ENABLE   FALSE

Definition at line 48 of file mcuconf.h.

#define STM32_PWM_TIM1_IRQ_PRIORITY   7

Definition at line 169 of file mcuconf.h.

#define STM32_PWM_TIM2_IRQ_PRIORITY   7

Definition at line 170 of file mcuconf.h.

#define STM32_PWM_TIM3_IRQ_PRIORITY   7

Definition at line 171 of file mcuconf.h.

#define STM32_PWM_TIM4_IRQ_PRIORITY   7

Definition at line 172 of file mcuconf.h.

#define STM32_PWM_TIM8_IRQ_PRIORITY   7

Definition at line 173 of file mcuconf.h.

#define STM32_PWM_USE_ADVANCED   FALSE

Definition at line 163 of file mcuconf.h.

#define STM32_PWM_USE_TIM1   FALSE

Definition at line 164 of file mcuconf.h.

#define STM32_PWM_USE_TIM2   FALSE

Definition at line 165 of file mcuconf.h.

#define STM32_PWM_USE_TIM3   FALSE

Definition at line 166 of file mcuconf.h.

#define STM32_PWM_USE_TIM4   FALSE

Definition at line 167 of file mcuconf.h.

#define STM32_PWM_USE_TIM8   FALSE

Definition at line 168 of file mcuconf.h.

#define STM32_RTCSEL   STM32_RTCSEL_LSI

Definition at line 73 of file mcuconf.h.

#define STM32_SERIAL_UART4_PRIORITY   12

Definition at line 186 of file mcuconf.h.

#define STM32_SERIAL_UART5_PRIORITY   12

Definition at line 187 of file mcuconf.h.

#define STM32_SERIAL_USART1_PRIORITY   12

Definition at line 183 of file mcuconf.h.

#define STM32_SERIAL_USART2_PRIORITY   12

Definition at line 184 of file mcuconf.h.

#define STM32_SERIAL_USART3_PRIORITY   12

Definition at line 185 of file mcuconf.h.

#define STM32_SERIAL_USE_UART4   FALSE

Definition at line 181 of file mcuconf.h.

#define STM32_SERIAL_USE_UART5   FALSE

Definition at line 182 of file mcuconf.h.

#define STM32_SERIAL_USE_USART1   FALSE

Definition at line 178 of file mcuconf.h.

#define STM32_SERIAL_USE_USART2   FALSE

Definition at line 179 of file mcuconf.h.

#define STM32_SERIAL_USE_USART3   FALSE

Definition at line 180 of file mcuconf.h.

#define STM32_SPI_DMA_ERROR_HOOK (   spip)    chSysHalt()

Definition at line 201 of file mcuconf.h.

#define STM32_SPI_SPI1_DMA_PRIORITY   1

Definition at line 195 of file mcuconf.h.

#define STM32_SPI_SPI1_IRQ_PRIORITY   10

Definition at line 198 of file mcuconf.h.

#define STM32_SPI_SPI2_DMA_PRIORITY   1

Definition at line 196 of file mcuconf.h.

#define STM32_SPI_SPI2_IRQ_PRIORITY   10

Definition at line 199 of file mcuconf.h.

#define STM32_SPI_SPI3_DMA_PRIORITY   1

Definition at line 197 of file mcuconf.h.

#define STM32_SPI_SPI3_IRQ_PRIORITY   10

Definition at line 200 of file mcuconf.h.

#define STM32_SPI_USE_SPI1   FALSE

Definition at line 192 of file mcuconf.h.

#define STM32_SPI_USE_SPI2   FALSE

Definition at line 193 of file mcuconf.h.

#define STM32_SPI_USE_SPI3   FALSE

Definition at line 194 of file mcuconf.h.

#define STM32_SW   STM32_SW_PLL

Definition at line 54 of file mcuconf.h.

#define STM32_TIM1SW   STM32_TIM1SW_PCLK2

Definition at line 71 of file mcuconf.h.

#define STM32_TIM8SW   STM32_TIM8SW_PCLK2

Definition at line 72 of file mcuconf.h.

#define STM32_UART4SW   STM32_UART4SW_PCLK

Definition at line 67 of file mcuconf.h.

#define STM32_UART5SW   STM32_UART5SW_PCLK

Definition at line 68 of file mcuconf.h.

#define STM32_UART_DMA_ERROR_HOOK (   uartp)    chSysHalt()

Definition at line 215 of file mcuconf.h.

#define STM32_UART_USART1_DMA_PRIORITY   0

Definition at line 212 of file mcuconf.h.

#define STM32_UART_USART1_IRQ_PRIORITY   12

Definition at line 209 of file mcuconf.h.

#define STM32_UART_USART2_DMA_PRIORITY   0

Definition at line 213 of file mcuconf.h.

#define STM32_UART_USART2_IRQ_PRIORITY   12

Definition at line 210 of file mcuconf.h.

#define STM32_UART_USART3_DMA_PRIORITY   0

Definition at line 214 of file mcuconf.h.

#define STM32_UART_USART3_IRQ_PRIORITY   12

Definition at line 211 of file mcuconf.h.

#define STM32_UART_USE_USART1   FALSE

Definition at line 206 of file mcuconf.h.

#define STM32_UART_USE_USART2   FALSE

Definition at line 207 of file mcuconf.h.

#define STM32_UART_USE_USART3   FALSE

Definition at line 208 of file mcuconf.h.

#define STM32_USART1SW   STM32_USART1SW_PCLK

Definition at line 64 of file mcuconf.h.

#define STM32_USART2SW   STM32_USART2SW_PCLK

Definition at line 65 of file mcuconf.h.

#define STM32_USART3SW   STM32_USART3SW_PCLK

Definition at line 66 of file mcuconf.h.

#define STM32_USB_CLOCK_REQUIRED   TRUE

Definition at line 74 of file mcuconf.h.

#define STM32_USB_LOW_POWER_ON_SUSPEND   FALSE

Definition at line 221 of file mcuconf.h.

#define STM32_USB_USB1_HP_IRQ_PRIORITY   13

Definition at line 222 of file mcuconf.h.

#define STM32_USB_USB1_LP_IRQ_PRIORITY   14

Definition at line 223 of file mcuconf.h.

#define STM32_USB_USE_USB1   FALSE

Definition at line 220 of file mcuconf.h.

#define STM32_USBPRE   STM32_USBPRE_DIV1P5

Definition at line 75 of file mcuconf.h.

#define STM32F30x_MCUCONF

Definition at line 42 of file mcuconf.h.

#define SYSTEMMOD_RGBLED_SUPPORT

Definition at line 85 of file pios_config.h.

#define VREF_PLUS   3.3

Definition at line 212 of file pios_board.h.

#define WDG_STATS_DIAGNOSTICS

Definition at line 42 of file pios_config.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 45 of file pios_board.c.

Variable Documentation

uintptr_t pios_com_aux_id

Definition at line 58 of file pios_board.c.

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 60 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 43 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
const struct pios_servo_cfg pios_servo_cfg
static
Initial value:
= {
.tim_oc_init = {
.TIM_OCMode = TIM_OCMode_PWM1,
.TIM_OutputState = TIM_OutputState_Enable,
.TIM_OutputNState = TIM_OutputNState_Disable,
.TIM_OCPolarity = TIM_OCPolarity_High,
.TIM_OCNPolarity = TIM_OCPolarity_High,
.TIM_OCIdleState = TIM_OCIdleState_Reset,
.TIM_OCNIdleState = TIM_OCNIdleState_Reset,
},
}
#define NELEMENTS(x)
Definition: pios.h:192
#define PIOS_SERVOS_INITIAL_POSITION
Definition: pios_board.h:210
static const struct pios_tim_channel pios_tim_servoport_pins[]

Definition at line 755 of file board_hw_defs.c.

const struct pios_tim_channel pios_tim_servoport_pins[]
static

Definition at line 619 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 59 of file pios_board.c.

const struct pios_tim_clock_cfg tim_15_cfg
static
Initial value:
= {
.timer = TIM15,
.time_base_init = &tim_1_8_15_16_17_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM1_BRK_TIM15_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_1_8_15_16_17_time_base

Definition at line 580 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_16_cfg
static
Initial value:
= {
.timer = TIM16,
.time_base_init = &tim_1_8_15_16_17_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM1_UP_TIM16_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_1_8_15_16_17_time_base

Definition at line 593 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_17_cfg
static
Initial value:
= {
.timer = TIM17,
.time_base_init = &tim_1_8_15_16_17_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM1_TRG_COM_TIM17_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_1_8_15_16_17_time_base

Definition at line 606 of file board_hw_defs.c.

const TIM_TimeBaseInitTypeDef tim_1_8_15_16_17_time_base
static
Initial value:
= {
.TIM_Prescaler = (PIOS_PERIPHERAL_APB2_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
#define PIOS_PERIPHERAL_APB2_CLOCK
Definition: pios_board.h:164

Definition at line 517 of file board_hw_defs.c.

const TIM_TimeBaseInitTypeDef tim_2_3_time_base
static
Initial value:
= {
.TIM_Prescaler = (PIOS_PERIPHERAL_APB1_CLOCK / 1000000 * 2) - 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
#define PIOS_PERIPHERAL_APB1_CLOCK
Definition: pios_board.h:154

Definition at line 525 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_2_cfg
static
Initial value:
= {
.timer = TIM2,
.time_base_init = &tim_2_3_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM2_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_2_3_time_base

Definition at line 533 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_3_cfg
static
Initial value:
= {
.timer = TIM3,
.time_base_init = &tim_2_3_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_2_3_time_base

Definition at line 546 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_8_cfg
static
Initial value:
= {
.timer = TIM8,
.time_base_init = &tim_1_8_15_16_17_time_base,
.irq = {
.init = {
.NVIC_IRQChannel = TIM8_CC_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_MID,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
.irq2 = {
.init = {
.NVIC_IRQChannel = TIM8_UP_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_1_8_15_16_17_time_base

Definition at line 559 of file board_hw_defs.c.