31 #ifndef STM3210E_INS_H_
32 #define STM3210E_INS_H_
36 #if defined(PIOS_INCLUDE_DEBUG_CONSOLE)
38 #define DEBUG_PRINTF(level, ...) {if(level <= DEBUG_LEVEL && pios_com_debug_id > 0) { PIOS_COM_SendFormattedStringNonBlocking(pios_com_debug_id, __VA_ARGS__); }}
40 #define DEBUG_PRINTF(level, ...)
79 #define BOARD_READABLE true
80 #define BOARD_WRITABLE true
81 #define MAX_DEL_RETRYS 3
87 #define PIOS_LED_BLUE 0
88 #define PIOS_LED_RED 1
90 #define PIOS_LED_HEARTBEAT PIOS_LED_BLUE
91 #define PIOS_LED_ALARM PIOS_LED_RED
97 #define PIOS_WATCHDOG_TIMEOUT 250
98 #define PIOS_WDG_REGISTER RTC_BKP_DR4
119 #define PIOS_COM_GPS (pios_com_gps_id)
120 #define PIOS_COM_TELEM_USB (pios_com_telem_usb_id)
121 #define PIOS_COM_BRIDGE (pios_com_bridge_id)
122 #define PIOS_COM_VCP (pios_com_vcp_id)
123 #define PIOS_COM_MAVLINK (pios_com_mavlink_id)
124 #define PIOS_COM_HOTT (pios_com_hott_id)
125 #define PIOS_COM_FRSKY_SENSOR_HUB (pios_com_frsky_sensor_hub_id)
126 #define PIOS_COM_FRSKY_SPORT (pios_com_frsky_sport_id)
127 #define PIOS_COM_LIGHTTELEMETRY (pios_com_lighttelemetry_id)
128 #define PIOS_COM_OPENLOG (pios_com_openlog_logging_id)
129 #define PIOS_COM_STORM32BGC (pios_com_storm32bgc_id)
130 #define PIOS_COM_TBSVTXCONFIG (pios_com_tbsvtxconfig_id)
132 #if defined(PIOS_INCLUDE_DEBUG_CONSOLE)
134 #define PIOS_COM_DEBUG (pios_com_debug_id)
138 #define PIOS_SYSCLK 168000000
149 #define PIOS_PERIPHERAL_APB1_CLOCK (PIOS_SYSCLK / 4)
159 #define PIOS_PERIPHERAL_APB2_CLOCK (PIOS_SYSCLK / 2)
165 #define PIOS_IRQ_PRIO_LOW 12 // lower than RTOS
166 #define PIOS_IRQ_PRIO_MID 8 // higher than RTOS
167 #define PIOS_IRQ_PRIO_HIGH 5 // for SPI, ADC, I2C etc...
168 #define PIOS_IRQ_PRIO_HIGHEST 4 // for USART etc...
175 #define PIOS_RCVR_MAX_CHANNELS 12
180 #define PIOS_PPM_NUM_INPUTS 12
185 #define PIOS_PWM_NUM_INPUTS 8
190 #define PIOS_DSM_NUM_INPUTS 12
195 #define PIOS_HSUM_MAX_DEVS 2
196 #define PIOS_HSUM_NUM_INPUTS 32
201 #define PIOS_SBUS_NUM_INPUTS (16+2)
206 #define PIOS_SERVO_UPDATE_HZ 50
207 #define PIOS_SERVOS_INITIAL_POSITION 0
212 #define PIOS_TIM_MAX_DEVS 8
216 #define PIOS_ADC_MAX_OVERSAMPLING 2
217 #define VREF_PLUS 3.3
222 #define PIOS_USB_ENABLED 1
224 #if defined(PIOS_INCLUDE_VIDEO)
229 struct pios_osd_bw_cfg_t {
230 TIM_TimeBaseInitTypeDef tim_base_init;
231 TIM_OCInitTypeDef tim_oc_init;
232 GPIO_InitTypeDef gpio_init;
uintptr_t pios_com_frsky_sport_id
Types that are specific to the STM32 peripherals.
uintptr_t pios_com_frsky_sensor_hub_id
Main PiOS header to include all the compiled in PiOS options.
uintptr_t pios_com_tbsvtxconfig_id
uintptr_t pios_com_telem_serial_id
uintptr_t pios_com_debug_id
uintptr_t pios_com_hott_id
uintptr_t pios_com_mavlink_id
uintptr_t pios_com_lighttelemetry_id
uintptr_t pios_com_openlog_logging_id
uintptr_t pios_com_telem_usb_id
uintptr_t pios_com_bridge_id
uintptr_t pios_com_storm32bgc_id
uintptr_t pios_com_gps_id
uintptr_t pios_com_vcp_id