projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2dd10fc
)
altos/stmf0: Disable ao_boot_check_pin if not in use
tm-stack-overflow
author
Keith Packard
<keithp@keithp.com>
Tue, 13 Jun 2023 06:15:36 +0000
(23:15 -0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 13 Jun 2023 06:18:21 +0000
(23:18 -0700)
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 <keithp@keithp.com>
src/stmf0/ao_boot_pin.c
patch
|
blob
|
history
diff --git
a/src/stmf0/ao_boot_pin.c
b/src/stmf0/ao_boot_pin.c
index b289b80439f9c10399d42715ca0026b6280face5..43212dfd300c0024227bf5fe0e15c80dd3f0d00e 100644
(file)
--- a/
src/stmf0/ao_boot_pin.c
+++ b/
src/stmf0/ao_boot_pin.c
@@
-20,6
+20,7
@@
#include <ao_boot.h>
#include <ao_exti.h>
+#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