From: Joey Castillo Date: Sun, 13 Feb 2022 18:59:22 +0000 (-0500) Subject: always turn off PA20 at boot X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=7815b0f64e1bea374260307d61b1de7bcc5e6744;p=sensor-watch.git always turn off PA20 at boot --- diff --git a/watch-library/hardware/watch/watch_private.c b/watch-library/hardware/watch/watch_private.c index 5ec1de2..e4fa4b9 100644 --- a/watch-library/hardware/watch/watch_private.c +++ b/watch-library/hardware/watch/watch_private.c @@ -28,7 +28,7 @@ void _watch_init(void) { // disable the LED pin (it may have been enabled by the bootloader) - watch_disable_digital_output(RED); + watch_disable_digital_output(GPIO(GPIO_PORTA, 20)); // RAM should be back-biased in STANDBY PM->STDBYCFG.bit.BBIASHS = 1;