From bcfc2737996e9a0bb7a20a256a28b4e5186b97d9 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 23599e2d24860..bf18499b1e0c5 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