From: Keith Packard Date: Tue, 13 Jun 2023 06:15:36 +0000 (-0700) Subject: altos/stmf0: Disable ao_boot_check_pin if not in use X-Git-Tag: 1.9.17~1^2~9 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=f495f2a479569d839f4efe8f115d51ae162edcfd 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 --- 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