Skip to content

Commit

Permalink
hwdef: Add Proximity hwdef for L431
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabsingh3003 committed Nov 21, 2022
1 parent e2b8f44 commit b01e892
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include ../MatekL431/hwdef-bl.inc

define CAN_APP_NODE_NAME "org.ardupilot.MatekL431-Proximity"
14 changes: 14 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Proximity/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
include ../MatekL431/hwdef.inc

define CAN_APP_NODE_NAME "org.ardupilot.MatekL431-Proximity"

define HAL_USE_ADC FALSE
define STM32_ADC_USE_ADC1 FALSE
define HAL_DISABLE_ADC_DRIVER TRUE

# support all proximity types
define HAL_PROXIMITY_ENABLED 1
define HAL_PERIPH_ENABLE_PRX

define AP_PERIPH_PRX_PORT_DEFAULT 2

0 comments on commit b01e892

Please sign in to comment.