35 #ifndef STM32F30X_DTFc_H_
36 #define STM32F30X_DTFc_H_
40 #if defined(PIOS_INCLUDE_DEBUG_CONSOLE)
42 #define DEBUG_PRINTF(level, ...) {if(level <= DEBUG_LEVEL && pios_com_aux_id > 0) { PIOS_COM_SendFormattedStringNonBlocking(pios_com_aux_id, __VA_ARGS__); }}
44 #define DEBUG_PRINTF(level, ...)
89 #define BOARD_READABLE true
90 #define BOARD_WRITABLE true
91 #define MAX_DEL_RETRYS 3
97 #define PIOS_LED_ALARM 0
98 #define PIOS_LED_HEARTBEAT 1
99 #define PIOS_LED_USB 2
100 #define PIOS_ANNUNCIATOR_BUZZER 3
102 #define USB_LED_ON PIOS_ANNUNC_On(PIOS_LED_USB)
103 #define USB_LED_OFF PIOS_ANNUNC_Off(PIOS_LED_USB)
104 #define USB_LED_TOGGLE PIOS_ANNUNC_Toggle(PIOS_LED_USB)
109 #define PIOS_WATCHDOG_TIMEOUT 250
110 #define PIOS_WDG_REGISTER RTC_BKP_DR4
131 #define PIOS_COM_GPS (pios_com_gps_id)
132 #define PIOS_COM_TELEM_USB (pios_com_telem_usb_id)
133 #define PIOS_COM_BRIDGE (pios_com_bridge_id)
134 #define PIOS_COM_VCP (pios_com_vcp_id)
135 #define PIOS_COM_MAVLINK (pios_com_mavlink_id)
136 #define PIOS_COM_HOTT (pios_com_hott_id)
137 #define PIOS_COM_FRSKY_SENSOR_HUB (pios_com_frsky_sensor_hub_id)
138 #define PIOS_COM_LIGHTTELEMETRY (pios_com_lighttelemetry_id)
139 #define PIOS_COM_FRSKY_SPORT (pios_com_frsky_sport_id)
140 #define PIOS_COM_OPENLOG (pios_com_openlog_logging_id)
141 #define PIOS_COM_STORM32BGC (pios_com_storm32bgc_id)
144 #if defined(PIOS_INCLUDE_DEBUG_CONSOLE)
146 #define PIOS_COM_DEBUG (pios_com_debug_id)
156 #define PIOS_SYSCLK 72000000
157 #define PIOS_PERIPHERAL_APB1_CLOCK (PIOS_SYSCLK / 2)
158 #define PIOS_PERIPHERAL_APB2_CLOCK (PIOS_SYSCLK / 1)
164 #define PIOS_IRQ_PRIO_LOW 12 // lower than RTOS
165 #define PIOS_IRQ_PRIO_MID 8 // higher than RTOS
166 #define PIOS_IRQ_PRIO_HIGH 5 // for SPI, ADC, I2C etc...
167 #define PIOS_IRQ_PRIO_HIGHEST 4 // for USART etc...
174 #define PIOS_RCVR_MAX_CHANNELS 12
179 #define PIOS_PPM_NUM_INPUTS 12
184 #define PIOS_PWM_NUM_INPUTS 1
189 #define PIOS_DSM_NUM_INPUTS 12
194 #define PIOS_HSUM_MAX_DEVS 2
195 #define PIOS_HSUM_NUM_INPUTS 32
200 #define PIOS_SBUS_NUM_INPUTS (16+2)
205 #define PIOS_SERVO_UPDATE_HZ 50
206 #define PIOS_SERVOS_INITIAL_POSITION 0
211 #define PIOS_TIM_MAX_DEVS 8
218 #define VREF_PLUS 3.3
223 #define PIOS_DMA_MAX_CHANNELS 12
224 #define PIOS_DMA_MAX_HANDLERS_PER_CHANNEL 3
225 #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}
230 #define PIOS_USB_ENABLED 1
uintptr_t pios_com_frsky_sport_id
uintptr_t pios_com_frsky_sensor_hub_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