dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Tau Labs Sparky2

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
 Board specific hardware configuration file.
 
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.
 
file  usb_conf.h
 General low level driver configuration.
 
file  pios_board.c
 Board initialization file.
 
file  pios_config.h
 Board configuration file.
 

Macros

#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 SPARKY2_V2_0   0x01
 
#define BRUSHEDSPARKY_V0_1   0x21
 
#define BRUSHEDSPARKY_V0_2   0x22
 
#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_LED_LINK   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_DEBUG   (pios_com_debug_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 DEBUG_LEVEL   0
 
#define DEBUG_PRINTF(level,...)   {if(level <= DEBUG_LEVEL && pios_com_debug_id > 0) { PIOS_COM_SendFormattedStringNonBlocking(pios_com_debug_id, __VA_ARGS__); }}
 
#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 PIOS_ADC_SUB_DRIVER_MAX_INSTANCES   3
 
#define PIOS_COM_CAN_RX_BUF_LEN   256
 
#define PIOS_COM_CAN_TX_BUF_LEN   256
 
#define PIOS_INCLUDE_FLASH_JEDEC
 
#define STABILIZATION_LQG
 
#define PIOS_INCLUDE_I2C
 
#define PIOS_INCLUDE_SPI
 
#define PIOS_INCLUDE_CAN
 
#define PIOS_INCLUDE_FASTHEAP
 
#define PIOS_INCLUDE_OPENLRS
 
#define PIOS_INCLUDE_OPENLRS_RCVR
 
#define PIOS_INCLUDE_MPU
 
#define PIOS_INCLUDE_MPU_MAG
 
#define PIOS_INCLUDE_MS5611
 
#define PIOS_INCLUDE_MPXV5004
 
#define PIOS_INCLUDE_MPXV7002
 
#define PIOS_INCLUDE_HMC5883
 
#define PIOS_INCLUDE_HMC5983_I2C
 
#define PIOS_INCLUDE_MAVLINK
 
#define PIOS_INCLUDE_PWM
 
#define PIOS_INCLUDE_DEBUG_CONSOLE
 
#define CAMERASTAB_POI_MODE
 
#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD   (9873737)
 
#define PIOS_INCLUDE_LOG_TO_FLASH
 
#define PIOS_LOGFLASH_SECT_SIZE   0x10000 /* 64kb */
 

Functions

void PIOS_Board_Init ()
 
const struct pios_usart_cfgget_usart_rcvr_cfg (uint32_t board_revision)
 Get the rcvr uart configuration. More...
 
const struct pios_servo_cfgget_servo_cfg (uint32_t board_revision)
 Get the flashfs settings. More...
 
void set_vtx_channel (HwSparky2VTX_ChOptions channel)
 

Variables

uintptr_t pios_com_telem_usb_id
 
static const struct pios_usart_cfg pios_usart_main_cfg
 
static const struct pios_usart_cfg pios_usart_rcvr_pc7_cfg
 
static const struct pios_usart_cfg pios_usart_rcvr_pd2_cfg
 
static const struct pios_usart_cfg pios_usart_flexi_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_3_cfg
 
static const struct
pios_tim_clock_cfg 
tim_5_cfg
 
static const struct
pios_tim_clock_cfg 
tim_8_cfg
 
static const struct
pios_tim_clock_cfg 
tim_9_cfg
 
static const struct
pios_tim_clock_cfg 
tim_12_cfg
 
static const struct
pios_tim_channel 
pios_tim_servoport_all_pins []
 
const struct pios_servo_cfg pios_servo_cfg
 Sparky2 has all 10 outputs. More...
 
const struct pios_servo_cfg pios_servo_8_cfg
 Brushed Sparky skips last two output ports. More...
 
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_debug_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_openlog_logging_id
 
uintptr_t pios_com_can_id
 
uintptr_t pios_internal_adc_id = 0
 
uintptr_t pios_uavo_settings_fs_id
 
uintptr_t pios_can_id
 

Detailed Description

Macro Definition Documentation

#define BOARD_READABLE   true

Definition at line 73 of file pios_board.h.

#define BOARD_WRITABLE   true

Definition at line 74 of file pios_board.h.

#define BRUSHEDSPARKY_V0_1   0x21

Definition at line 32 of file pios_board.h.

#define BRUSHEDSPARKY_V0_2   0x22

Definition at line 33 of file pios_board.h.

#define CAMERASTAB_POI_MODE

Definition at line 72 of file pios_config.h.

#define DEBUG_LEVEL   0

Definition at line 123 of file pios_board.h.

#define DEBUG_PRINTF (   level,
  ... 
)    {if(level <= DEBUG_LEVEL && pios_com_debug_id > 0) { PIOS_COM_SendFormattedStringNonBlocking(pios_com_debug_id, __VA_ARGS__); }}

Definition at line 124 of file pios_board.h.

#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD   (9873737)

Definition at line 87 of file pios_config.h.

#define MAX_DEL_RETRYS   3

Definition at line 75 of file pios_board.h.

#define PIOS_ADC_MAX_OVERSAMPLING   2

Definition at line 214 of file pios_board.h.

#define PIOS_ADC_SUB_DRIVER_MAX_INSTANCES   3

Definition at line 225 of file pios_board.h.

#define PIOS_COM_BRIDGE   (pios_com_bridge_id)

Definition at line 112 of file pios_board.h.

#define PIOS_COM_CAN_RX_BUF_LEN   256

Definition at line 49 of file pios_board.c.

#define PIOS_COM_CAN_TX_BUF_LEN   256

Definition at line 50 of file pios_board.c.

#define PIOS_COM_DEBUG   (pios_com_debug_id)

Definition at line 118 of file pios_board.h.

#define PIOS_COM_FRSKY_SENSOR_HUB   (pios_com_frsky_sensor_hub_id)

Definition at line 116 of file pios_board.h.

#define PIOS_COM_FRSKY_SPORT   (pios_com_frsky_sport_id)

Definition at line 119 of file pios_board.h.

#define PIOS_COM_GPS   (pios_com_gps_id)

Definition at line 110 of file pios_board.h.

#define PIOS_COM_HOTT   (pios_com_hott_id)

Definition at line 115 of file pios_board.h.

#define PIOS_COM_LIGHTTELEMETRY   (pios_com_lighttelemetry_id)

Definition at line 117 of file pios_board.h.

#define PIOS_COM_MAVLINK   (pios_com_mavlink_id)

Definition at line 114 of file pios_board.h.

#define PIOS_COM_OPENLOG   (pios_com_openlog_logging_id)

Definition at line 120 of file pios_board.h.

#define PIOS_COM_STORM32BGC   (pios_com_storm32bgc_id)

Definition at line 121 of file pios_board.h.

#define PIOS_COM_TELEM_USB   (pios_com_telem_usb_id)

Definition at line 111 of file pios_board.h.

#define PIOS_COM_VCP   (pios_com_vcp_id)

Definition at line 113 of file pios_board.h.

#define PIOS_DSM_NUM_INPUTS   12

Definition at line 192 of file pios_board.h.

#define PIOS_HSUM_MAX_DEVS   2

Definition at line 197 of file pios_board.h.

#define PIOS_HSUM_NUM_INPUTS   32

Definition at line 198 of file pios_board.h.

#define PIOS_INCLUDE_ANNUNC

Definition at line 34 of file pios_config.h.

#define PIOS_INCLUDE_CAN

Definition at line 42 of file pios_config.h.

#define PIOS_INCLUDE_COM_MSG

Definition at line 40 of file pios_config.h.

#define PIOS_INCLUDE_DEBUG_CONSOLE

Definition at line 68 of file pios_config.h.

#define PIOS_INCLUDE_FASTHEAP

Definition at line 43 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 36 of file pios_config.h.

#define PIOS_INCLUDE_FLASH_JEDEC

Definition at line 43 of file pios_config.h.

#define PIOS_INCLUDE_HMC5883

Definition at line 56 of file pios_config.h.

#define PIOS_INCLUDE_HMC5983_I2C

Definition at line 57 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 37 of file pios_config.h.

#define PIOS_INCLUDE_LOG_TO_FLASH

Definition at line 89 of file pios_config.h.

#define PIOS_INCLUDE_MAVLINK

Definition at line 61 of file pios_config.h.

#define PIOS_INCLUDE_MPU

Definition at line 50 of file pios_config.h.

#define PIOS_INCLUDE_MPU_MAG

Definition at line 51 of file pios_config.h.

#define PIOS_INCLUDE_MPXV5004

Definition at line 54 of file pios_config.h.

#define PIOS_INCLUDE_MPXV7002

Definition at line 55 of file pios_config.h.

#define PIOS_INCLUDE_MS5611

Definition at line 52 of file pios_config.h.

#define PIOS_INCLUDE_OPENLRS

Definition at line 46 of file pios_config.h.

#define PIOS_INCLUDE_OPENLRS_RCVR

Definition at line 47 of file pios_config.h.

#define PIOS_INCLUDE_PWM

Definition at line 65 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 41 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_IRQ_PRIO_HIGH   5

Definition at line 160 of file pios_board.h.

#define PIOS_IRQ_PRIO_HIGHEST   4

Definition at line 161 of file pios_board.h.

#define PIOS_IRQ_PRIO_LOW   12

Definition at line 158 of file pios_board.h.

#define PIOS_IRQ_PRIO_MID   8

Definition at line 159 of file pios_board.h.

#define PIOS_LED_ALARM   1

Definition at line 82 of file pios_board.h.

#define PIOS_LED_HEARTBEAT   0

Definition at line 81 of file pios_board.h.

#define PIOS_LED_LINK   2

Definition at line 83 of file pios_board.h.

#define PIOS_LOGFLASH_SECT_SIZE   0x10000 /* 64kb */

Definition at line 90 of file pios_config.h.

#define PIOS_PERIPHERAL_APB1_CLOCK   (PIOS_SYSCLK / 4)

Definition at line 142 of file pios_board.h.

#define PIOS_PERIPHERAL_APB2_CLOCK   (PIOS_SYSCLK / 2)

Definition at line 152 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   8

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 187 of file pios_board.h.

#define PIOS_SERVO_UPDATE_HZ   50

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

#define PIOS_SPEKTRUM_NUM_INPUTS   12

Definition at line 182 of file pios_board.h.

#define PIOS_SYSCLK   168000000

Definition at line 131 of file pios_board.h.

#define PIOS_TIM_MAX_DEVS   6

Definition at line 209 of file pios_board.h.

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

Definition at line 220 of file pios_board.h.

#define PIOS_WATCHDOG_TIMEOUT   250

Definition at line 88 of file pios_board.h.

#define PIOS_WDG_REGISTER   RTC_BKP_DR4

Definition at line 89 of file pios_board.h.

#define RS_ECC_NPARITY   4

Definition at line 129 of file pios_board.h.

#define SPARKY2_V2_0   0x01

Definition at line 31 of file pios_board.h.

#define STABILIZATION_LQG

Definition at line 37 of file pios_config.h.

#define VREF_PLUS   3.3

Definition at line 215 of file pios_board.h.

Function Documentation

const struct pios_servo_cfg* get_servo_cfg ( uint32_t  board_revision)

Get the flashfs settings.

Definition at line 1275 of file board_hw_defs.c.

const struct pios_usart_cfg* get_usart_rcvr_cfg ( uint32_t  board_revision)

Get the rcvr uart configuration.

Definition at line 655 of file board_hw_defs.c.

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.

void set_vtx_channel ( HwSparky2VTX_ChOptions  channel)

Definition at line 59 of file pios_board.c.

Variable Documentation

uintptr_t pios_can_id

Definition at line 57 of file pios_board.c.

uintptr_t pios_com_bridge_id

Definition at line 81 of file pios_hal.c.

uintptr_t pios_com_can_id

Definition at line 53 of file pios_board.c.

uintptr_t pios_com_debug_id

Definition at line 76 of file pios_board.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 52 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 54 of file pios_board.c.

const struct pios_servo_cfg pios_servo_8_cfg
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
static const struct pios_tim_channel pios_tim_servoport_all_pins[]
#define PIOS_SERVOS_INITIAL_POSITION
Definition: pios_board.h:210

Brushed Sparky skips last two output ports.

Definition at line 1260 of file board_hw_defs.c.

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
static const struct pios_tim_channel pios_tim_servoport_all_pins[]
#define PIOS_SERVOS_INITIAL_POSITION
Definition: pios_board.h:210

Sparky2 has all 10 outputs.

Definition at line 1244 of file board_hw_defs.c.

const struct pios_tim_channel pios_tim_servoport_all_pins[]
static

Pios servo configuration structures Using TIM3, TIM9, TIM5, TIM12, TIM8

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

const struct pios_usart_cfg pios_usart_flexi_cfg
static

Definition at line 709 of file board_hw_defs.c.

const struct pios_usart_cfg pios_usart_main_cfg
static

Definition at line 575 of file board_hw_defs.c.

const struct pios_usart_cfg pios_usart_rcvr_pc7_cfg
static
Initial value:
= {
.regs = USART6,
.remap = GPIO_AF_USART6,
.irq = {
.init = {
.NVIC_IRQChannel = USART6_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_HIGH,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
.rx = {
.gpio = GPIOC,
.init = {
.GPIO_Pin = GPIO_Pin_7,
.GPIO_Speed = GPIO_Speed_2MHz,
.GPIO_Mode = GPIO_Mode_AF,
.GPIO_OType = GPIO_OType_PP,
.GPIO_PuPd = GPIO_PuPd_UP
},
},
}
#define PIOS_IRQ_PRIO_HIGH
Definition: pios_board.h:171

Definition at line 608 of file board_hw_defs.c.

const struct pios_usart_cfg pios_usart_rcvr_pd2_cfg
static
Initial value:
= {
.regs = UART5,
.remap = GPIO_AF_UART5,
.irq = {
.init = {
.NVIC_IRQChannel = UART5_IRQn,
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_HIGH,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
},
},
.rx = {
.gpio = GPIOD,
.init = {
.GPIO_Pin = GPIO_Pin_2,
.GPIO_Speed = GPIO_Speed_2MHz,
.GPIO_Mode = GPIO_Mode_AF,
.GPIO_OType = GPIO_OType_PP,
.GPIO_PuPd = GPIO_PuPd_UP
},
},
}
#define PIOS_IRQ_PRIO_HIGH
Definition: pios_board.h:171

Definition at line 631 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 1058 of file board_hw_defs.c.

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

Definition at line 1006 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_5_cfg
static
Initial value:
= {
.timer = TIM5,
.time_base_init = &tim_apb1_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_apb1_time_base

Definition at line 1019 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 1032 of file board_hw_defs.c.

const struct pios_tim_clock_cfg tim_9_cfg
static
Initial value:
= {
.timer = TIM9,
.time_base_init = &tim_apb2_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_apb2_time_base

Definition at line 1045 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 986 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 997 of file board_hw_defs.c.