projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Clean up AO_ROMCONFIG bits
[fw/altos]
/
src
/
stm32f4
/
ao_arch.h
diff --git
a/src/stm32f4/ao_arch.h
b/src/stm32f4/ao_arch.h
index 083a4e5b448763779c24aa8d9d7c19e3a2ee021b..4e9bdeb68b8202bf0befe59e4a397515e546cc99 100644
(file)
--- a/
src/stm32f4/ao_arch.h
+++ b/
src/stm32f4/ao_arch.h
@@
-26,8
+26,14
@@
#define AO_PORT_TYPE uint16_t
#define AO_PORT_TYPE uint16_t
+#define ao_arch_reboot() \
+ (stm_scb.aircr = ((STM_SCB_AIRCR_VECTKEY_KEY << STM_SCB_AIRCR_VECTKEY) | \
+ (1 << STM_SCB_AIRCR_SYSRESETREQ)))
+
#define ao_arch_nop() asm("nop")
#define ao_arch_nop() asm("nop")
+#define AO_ROMCONFIG_SYMBOL __attribute__((section(".romconfig"))) const
+
#define ao_arch_task_members\
uint32_t *sp; /* saved stack pointer */
#define ao_arch_task_members\
uint32_t *sp; /* saved stack pointer */