From b4bc6f1e2e19ad8d0e627b9c9da29b6778477cc7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 27 Apr 2024 12:54:46 +1000 Subject: [PATCH] hwdef: added MatekL431-APDTelem for using APD ESCs with serial telemetry --- .../hwdef/MatekL431-APDTelem/defaults.parm | 3 +++ .../hwdef/MatekL431-APDTelem/hwdef-bl.dat | 2 ++ .../hwdef/MatekL431-APDTelem/hwdef.dat | 17 +++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/defaults.parm new file mode 100644 index 0000000000..3c63f226fb --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/defaults.parm @@ -0,0 +1,3 @@ +OUT1_FUNCTION 33 +OUT1_MIN 1000 +OUT1_MAX 2000 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/hwdef-bl.dat new file mode 100644 index 0000000000..b9005f8494 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/hwdef-bl.dat @@ -0,0 +1,2 @@ +include ../MatekL431/hwdef-bl.inc + diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/hwdef.dat new file mode 100644 index 0000000000..06a9bcde60 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/hwdef.dat @@ -0,0 +1,17 @@ +include ../MatekL431/hwdef.inc + +define HAL_USE_ADC FALSE + +# --------------------- PWM ----------------------- +PA8 TIM1_CH1 TIM1 PWM(1) GPIO(50) +PA9 TIM1_CH2 TIM1 PWM(2) GPIO(51) +PA10 TIM1_CH3 TIM1 PWM(3) GPIO(52) +PA11 TIM1_CH4 TIM1 PWM(4) GPIO(53) +PA15 TIM2_CH1 TIM2 PWM(5) GPIO(54) + +define HAL_PERIPH_ENABLE_RC_OUT + +# enable APD telemetry on rx1 +define HAL_PERIPH_ENABLE_ESC_APD +define APD_ESC_INSTANCES 1 +define APD_ESC_SERIAL_0 0