hwdef: Add Proximity hwdef for L431

This commit is contained in:
rishabsingh3003 2022-09-28 01:15:45 +05:30 committed by Andrew Tridgell
parent 27f55ae626
commit d8cf7c8bb5
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,3 @@
include ../MatekL431/hwdef-bl.inc
define CAN_APP_NODE_NAME "org.ardupilot.MatekL431-Proximity"

View File

@ -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