mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 23:18:28 -04:00
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
|
# hw definition file for processing by chibios_pins.py
|
||
|
# for iFlight Beast H7 v2 hardware, based on Beast H7 v1
|
||
|
# thanks to betaflight for pin information
|
||
|
|
||
|
include ../BeastH7/hwdef.dat
|
||
|
undef APJ_BOARD_ID
|
||
|
undef HAL_SERIAL3_PROTOCOL
|
||
|
undef IMU
|
||
|
undef BARO
|
||
|
undef STM32_PWM_USE_ADVANCED
|
||
|
undef PD15 #Buzzer
|
||
|
undef PE9 PE11 # Motors
|
||
|
undef HAL_DEFAULT_INS_FAST_SAMPLE DMA_PRIORITY DMA_NOSHARE
|
||
|
undef I2C1
|
||
|
|
||
|
# board ID for firmware load
|
||
|
APJ_BOARD_ID 1056
|
||
|
|
||
|
# V2 has different motor mapping
|
||
|
PB4 TIM3_CH1 TIM3 PWM(2) GPIO(51) BIDIR # 2
|
||
|
PB5 TIM3_CH2 TIM3 PWM(3) GPIO(52) BIDIR # 3
|
||
|
|
||
|
# only one I2C bus
|
||
|
I2C_ORDER I2C2
|
||
|
|
||
|
# order of UARTs (and USB)
|
||
|
SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 EMPTY EMPTY UART7
|
||
|
define HAL_SERIAL2_PROTOCOL SerialProtocol_RCIN
|
||
|
|
||
|
# Buzzer - DMA timer channel use by LEDs
|
||
|
PD2 BUZZER OUTPUT GPIO(80) LOW
|
||
|
|
||
|
# I2C2 for compass. These pins can also be used as USART3
|
||
|
PB10 I2C2_SCL I2C2 ALT(1)
|
||
|
PB11 I2C2_SDA I2C2 ALT(1)
|
||
|
|
||
|
# spi devices
|
||
|
SPIDEV bmi270 SPI1 DEVID1 MPU6000_CS MODE3 10*MHZ 10*MHZ
|
||
|
|
||
|
# no built-in compass and no external I2C so no compass
|
||
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||
|
|
||
|
# one IMU
|
||
|
IMU BMI270 SPI:bmi270 ROTATION_ROLL_180_YAW_225
|
||
|
|
||
|
# v2 has no BARO
|
||
|
define HAL_BARO_ALLOW_INIT_NO_BARO 1
|