2019-02-17 06:01:11 -04:00
|
|
|
# hw definition file for processing by chibios_hwdef.py
|
|
|
|
# for TBS Colibri F7 hardware.
|
|
|
|
# This is a varient of fmuv5 without the IOMCU
|
|
|
|
|
|
|
|
include ../fmuv5/hwdef.dat
|
|
|
|
|
|
|
|
# we shift the system timer to TIM5 to allow
|
|
|
|
# us to use TIM2 for extra PWM outputs
|
|
|
|
STM32_ST_USE_TIMER 5
|
|
|
|
|
|
|
|
# enabling PE3 on the Colibri causes it to reset on startup
|
|
|
|
undef PE3
|
2019-02-18 06:38:02 -04:00
|
|
|
PE3 VDD_3V3_SENSORS_EN OUTPUT LOW
|
2019-02-17 06:01:11 -04:00
|
|
|
|
|
|
|
# order of UARTs (and USB). Telem2 is UART4 on the mini, USART3 is not available
|
|
|
|
UART_ORDER OTG1 USART1 USART2 UART4 USART6 UART7
|
|
|
|
|
|
|
|
# enable TX on USART6 (disabled for fmuv5 with iomcu)
|
|
|
|
PG14 USART6_TX USART6 NODMA
|
|
|
|
|
|
|
|
# disable the IOMCU UART
|
|
|
|
undef IOMCU_UART
|
|
|
|
undef UART8_TX
|
|
|
|
undef UART8_RX
|
|
|
|
undef AP_FEATURE_SBUS_OUT
|
|
|
|
|
2019-02-21 05:57:39 -04:00
|
|
|
# SD power is active low on TBS board
|
|
|
|
undef PG7
|
|
|
|
undef VDD_3V3_SD_CARD_EN
|
|
|
|
PG7 nVDD_3V3_SD_CARD_EN OUTPUT HIGH
|
|
|
|
|
|
|
|
|
2019-02-17 06:01:11 -04:00
|
|
|
# allow the first 3 capture ports to be used as PWM outputs or GPIOs
|
|
|
|
undef PA5
|
|
|
|
undef PB3
|
|
|
|
undef PB11
|
|
|
|
undef FMU_CAP1
|
|
|
|
undef FMU_CAP2
|
|
|
|
undef FMU_CAP3
|
|
|
|
|
|
|
|
PA5 TIM2_CH1 TIM2 PWM(9) GPIO(58)
|
|
|
|
PB3 TIM2_CH2 TIM2 PWM(10) GPIO(59)
|
|
|
|
PB11 TIM2_CH4 TIM2 PWM(11) GPIO(60)
|
|
|
|
|
|
|
|
# RCInput on the PPM pin, for all protocols
|
2019-02-18 06:38:02 -04:00
|
|
|
undef PG9
|
|
|
|
undef USART6_RX
|
2019-02-17 06:01:11 -04:00
|
|
|
PI5 TIM8_CH1 TIM8 RCININT PULLUP LOW
|
|
|
|
|
|
|
|
# setup for supplied power brick
|
|
|
|
undef HAL_BATT_VOLT_SCALE
|
|
|
|
define HAL_BATT_VOLT_SCALE 18.182
|
|
|
|
undef HAL_BATT_CURR_SCALE
|
|
|
|
define HAL_BATT_CURR_SCALE 36.364
|
|
|
|
|
2019-02-21 17:55:00 -04:00
|
|
|
# setup for IMU heater, with 45C target default
|
|
|
|
define HAL_HAVE_IMU_HEATER 1
|
|
|
|
define HAL_IMU_TEMP_DEFAULT 45
|
|
|
|
|
2019-02-17 06:01:11 -04:00
|
|
|
# setup safety switch
|
|
|
|
PE12 LED_SAFETY OUTPUT
|
|
|
|
PE10 SAFETY_IN INPUT PULLDOWN
|