From 539598ce53744f7d70dad482e8865d427fca2fa2 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 23 Jan 2020 14:32:10 -0800 Subject: [PATCH] altos: Make debug telemini firmware a bit easier to build To enable debugging, we need to stop using the SWD GPIO pins, which are normally used to trigger boot-time firmware behavior -- SWDIO is used to force entry to the boot loader while SWDCLK is used to force default frequency and callsign. This patch makes it easy to edit ao_pins.h to disable the default frequency option. Signed-off-by: Keith Packard --- src/telemini-v3.0/ao_telemini.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/telemini-v3.0/ao_telemini.c b/src/telemini-v3.0/ao_telemini.c index bb3bc054..d571d340 100644 --- a/src/telemini-v3.0/ao_telemini.c +++ b/src/telemini-v3.0/ao_telemini.c @@ -19,6 +19,7 @@ #include #include +#if HAS_FORCE_FREQ static void ao_check_recovery(void) { @@ -33,11 +34,14 @@ ao_check_recovery(void) ao_gpio_set_mode(AO_RECOVERY_PORT, AO_RECOVERY_PIN, 0); ao_disable_port(AO_RECOVERY_PORT); } +#endif int main(void) { +#if HAS_FORCE_FREQ ao_check_recovery(); +#endif ao_clock_init(); ao_task_init(); -- 2.30.2