From f495f2a479569d839f4efe8f115d51ae162edcfd Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 12 Jun 2023 23:15:36 -0700 Subject: [PATCH] altos/stmf0: Disable ao_boot_check_pin if not in use This allows rebuilding the boot loader without boot pin support (as required to debug TeleMini) by only editing ao_pins.h Signed-off-by: Keith Packard --- src/stmf0/ao_boot_pin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stmf0/ao_boot_pin.c b/src/stmf0/ao_boot_pin.c index b289b804..43212dfd 100644 --- a/src/stmf0/ao_boot_pin.c +++ b/src/stmf0/ao_boot_pin.c @@ -20,6 +20,7 @@ #include #include +#if AO_BOOT_PIN int ao_boot_check_pin(void) { @@ -44,3 +45,4 @@ ao_boot_check_pin(void) stm_rcc.apb1enr &= ~(1UL << STM_RCC_APB1ENR_PWREN); return v == AO_BOOT_APPLICATION_VALUE; } +#endif -- 2.30.2