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
|
2023-05-03 21:30:51 -03:00
|
|
|
undef DEFAULT_SERIAL2_PROTOCOL
|
2021-05-05 13:24:09 -03:00
|
|
|
|
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
|
|
|
|
|
2023-05-03 21:30:51 -03:00
|
|
|
define DEFAULT_SERIAL3_PROTOCOL SerialProtocol_RCIN
|
|
|
|
define DEFAULT_SERIAL5_PROTOCOL SerialProtocol_ESCTelemetry
|
|
|
|
define DEFAULT_SERIAL5_BAUD 115
|
2021-05-05 14:31:16 -03:00
|
|
|
|
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
|
2023-04-24 09:49:03 -03:00
|
|
|
|
2023-05-05 06:58:07 -03:00
|
|
|
undef DEFAULT_NTF_LED_TYPES
|
2023-04-24 09:49:03 -03:00
|
|
|
define DEFAULT_NTF_LED_TYPES 257
|