From b051f4d557fae74df976e4827d0edbb6af5930e5 Mon Sep 17 00:00:00 2001 From: mikefenghao <757518319@qq.com> Date: Fri, 10 Jan 2025 19:40:43 +1100 Subject: [PATCH] AP_HAL_ChibiOS: add hwdef MFE_AirSpeed_CAN --- .../hwdef/MFE_AirSpeed_CAN/hwdef-bl.dat | 6 +++++ .../hwdef/MFE_AirSpeed_CAN/hwdef.dat | 25 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MFE_AirSpeed_CAN/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MFE_AirSpeed_CAN/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MFE_AirSpeed_CAN/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/MFE_AirSpeed_CAN/hwdef-bl.dat new file mode 100644 index 0000000000..175e176fb8 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MFE_AirSpeed_CAN/hwdef-bl.dat @@ -0,0 +1,6 @@ +include ../f103-periph/hwdef-bl.inc + +# board ID for firmware load +APJ_BOARD_ID 6103 +undef PA4 +PA10 LED_BOOTLOADER OUTPUT LOW diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MFE_AirSpeed_CAN/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MFE_AirSpeed_CAN/hwdef.dat new file mode 100644 index 0000000000..3d7644855f --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MFE_AirSpeed_CAN/hwdef.dat @@ -0,0 +1,25 @@ +include ../f103-periph/hwdef.inc + +# board ID for firmware load +APJ_BOARD_ID 6103 + +undef PA4 +undef PA9 +undef PA10 +# a LED to flash +PA10 LED OUTPUT LOW + +# order of UARTs +SERIAL_ORDER EMPTY EMPTY EMPTY USART2 + +# USART2 for debug (disabled) + PA2 USART2_TX USART2 SPEED_HIGH NODMA + PA3 USART2_RX USART2 SPEED_HIGH NODMA + + define HAL_AIRSPEED_BUS_DEFAULT 0 + +# 10" DLVR sensor by default +define HAL_AIRSPEED_TYPE_DEFAULT 1 +define AIRSPEED_MAX_SENSORS 1 + +define HAL_PERIPH_ENABLE_AIRSPEED