Skip to content

Commit

Permalink
AP_HAL_ChibiOS: add hwdef MFE_AirSpeed_CAN
Browse files Browse the repository at this point in the history
  • Loading branch information
mikefenghao committed Jan 10, 2025
1 parent e1fd90b commit b2c840b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/MFE_AirSpeed_CAN/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/MFE_AirSpeed_CAN/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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
#undef SERIAL_ORDER

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

0 comments on commit b2c840b

Please sign in to comment.