From 0167462bf4b406f3c635e9c2749208d43481447d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 17 Mar 2024 18:40:38 +1100 Subject: [PATCH] hwdef: enable an ADC on CubePilot-PPPGW allows for mcu temp --- libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef.dat | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef.dat index 23599e2d24860d..bf18499b1e0c54 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef.dat @@ -12,4 +12,13 @@ PC11 UART8_CTS_GPIO UART8 SERIAL_ORDER OTG1 UART8 +PA4 VDD_5V_SENS ADC1 SCALE(2) + +undef HAL_USE_ADC +define HAL_USE_ADC TRUE +define HAL_WITH_MCU_MONITORING 1 + +# can optionally run at half clock +# MCU_CLOCKRATE_MHZ 200 + include ../include/network_PPPGW.inc