2021-05-05 13:24:09 -03:00
|
|
|
# hw definition file for processing by chibios_pins.py
|
|
|
|
# for Holybro KakuteF4 v2 Mini hardware.
|
|
|
|
@ thanks to betaflight for pin information
|
|
|
|
|
|
|
|
include ../KakuteF4/hwdef.dat
|
|
|
|
undef APJ_BOARD_ID
|
|
|
|
undef PB0 PB1 PA3 PA2 PB11 PB10 PD2 PC8
|
|
|
|
undef SERIAL_ORDER
|
|
|
|
undef CH_CFG_ST_RESOLUTION
|
|
|
|
undef STM32_ST_USE_TIMER
|
|
|
|
undef HAL_SERIAL2_PROTOCOL
|
|
|
|
|
2021-05-13 14:40:12 -03:00
|
|
|
APJ_BOARD_ID 1030
|
2021-05-05 13:24:09 -03:00
|
|
|
|
|
|
|
# use natural UART order to align with docs
|
2021-05-05 14:31:16 -03:00
|
|
|
SERIAL_ORDER OTG1 USART1 EMPTY USART3 UART4 UART5 USART6
|
2021-05-05 13:24:09 -03:00
|
|
|
|
|
|
|
# RC input defaults to UART to allow for bi-dir dshot
|
|
|
|
# also frees up 32-bit TIM2 for system timer
|
|
|
|
PB11 USART3_RX USART3
|
|
|
|
PB10 USART3_TX USART3
|
|
|
|
|
|
|
|
define HAL_SERIAL3_PROTOCOL SerialProtocol_RCIN
|
|
|
|
define HAL_SERIAL5_PROTOCOL SerialProtocol_ESCTelemetry
|
2021-05-05 14:31:16 -03:00
|
|
|
define HAL_SERIAL5_BAUD 115
|
|
|
|
|
2021-05-05 13:24:09 -03:00
|
|
|
# UART5 (ESC telemetry sensor), SERIAL5, NODMA for bi-dir dshot
|
|
|
|
PD2 UART5_RX UART5 NODMA
|
|
|
|
|
|
|
|
# Motors, bi-directional dshot capable
|
|
|
|
PB0 TIM3_CH3 TIM3 PWM(1) GPIO(50) BIDIR
|
|
|
|
PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51)
|
|
|
|
PA3 TIM5_CH4 TIM5 PWM(3) GPIO(52) BIDIR
|
|
|
|
PA2 TIM5_CH3 TIM5 PWM(4) GPIO(53)
|
|
|
|
PC8 TIM8_CH3 TIM8 PWM(5) GPIO(56) # LED strip
|
|
|
|
|
|
|
|
DMA_PRIORITY ADC* USART3* TIM3* TIM5* SPI3* SPI1*
|
|
|
|
DMA_NOSHARE SPI3_RX
|
|
|
|
|
|
|
|
define STM32_PWM_USE_ADVANCED TRUE
|
|
|
|
|
|
|
|
# save some flash
|
2022-10-25 02:17:01 -03:00
|
|
|
include ../include/save_some_flash.inc
|
2023-03-06 22:02:49 -04:00
|
|
|
define AP_BATTERY_SMBUS_ENABLED 0
|
2021-05-05 13:24:09 -03:00
|
|
|
define HAL_PARACHUTE_ENABLED 0
|
|
|
|
define HAL_SPRAYER_ENABLED 0
|
|
|
|
define HAL_MOUNT_ENABLED 0
|