AP_HAL_ChibiOS: add FlywooF745Nano board definition

This commit is contained in:
Andy Piper 2021-08-15 22:57:02 +01:00 committed by Andrew Tridgell
parent 6c26dd075b
commit b78d848a5d
4 changed files with 45 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

View File

@ -0,0 +1,13 @@
# setup the four built-in Neopixel LEDs on chan 9
SERVO9_FUNCTION 120
NTF_LED_TYPES 257
NTF_LED_LEN 4
# setup SERIAL3 for RCIN
SERIAL3_PROTOCOL 23
# disable GPS on Serial 4
SERIAL4_PROTOCOL -1
# setup SERIAL6 for GPS
SERIAL6_PROTOCOL 5

View File

@ -0,0 +1,3 @@
include ../FlywooF745/hwdef-bl.dat
APJ_BOARD_ID 1042

View File

@ -0,0 +1,29 @@
# for FLYWOO Goku GN F745 Nano
# thanks to betaflight for pin information
include ../FlywooF745/hwdef.dat
APJ_BOARD_ID 1042
undef PB10 PB11 PB0 PB1
undef DMA_PRIORITY
undef I2C_ORDER
undef HAL_I2C_INTERNAL_MASK
I2C_ORDER I2C1 I2C2
# I2C2
PB10 I2C2_SCL I2C2
PB11 I2C2_SDA I2C2
PD8 USART3_TX USART3
PD9 USART3_RX USART3
PB0 TIM3_CH3 TIM3 PWM(1) GPIO(50) # Motor 1
PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51) BIDIR # Motor 2
DMA_PRIORITY USART1* I2C2* TIM1* TIM3*
define HAL_PROBE_EXTERNAL_I2C_BAROS
define HAL_I2C_INTERNAL_MASK 1
define HAL_FRAME_TYPE_DEFAULT 12