From 6e12eb3f7a1390f6e9a4bb2a987ba2ccc97e7314 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 17 Apr 2022 07:21:19 +1000 Subject: [PATCH] hwdef: Added MatekL431-Rangefinder --- .../hwdef/MatekL431-Rangefinder/hwdef-bl.dat | 3 +++ .../hwdef/MatekL431-Rangefinder/hwdef.dat | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Rangefinder/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Rangefinder/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Rangefinder/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Rangefinder/hwdef-bl.dat new file mode 100644 index 0000000000..ffb40904b0 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Rangefinder/hwdef-bl.dat @@ -0,0 +1,3 @@ +include ../MatekL431/hwdef-bl.inc + +define CAN_APP_NODE_NAME "org.ardupilot.MatekL431-Rangefinder" diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Rangefinder/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Rangefinder/hwdef.dat new file mode 100644 index 0000000000..97d9233199 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Rangefinder/hwdef.dat @@ -0,0 +1,13 @@ +include ../MatekL431/hwdef.inc + +define CAN_APP_NODE_NAME "org.ardupilot.MatekL431-Rangefinder" + +define HAL_USE_ADC FALSE +define STM32_ADC_USE_ADC1 FALSE +define HAL_DISABLE_ADC_DRIVER TRUE + +# support all rangefinder types +define HAL_PERIPH_ENABLE_RANGEFINDER + +define AP_PERIPH_RANGEFINDER_PORT_DEFAULT 2 +define RANGEFINDER_MAX_INSTANCES 1