summaryrefslogtreecommitdiff
path: root/src/stm/ao_arch.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-10-23 22:17:49 -0700
committerKeith Packard <keithp@keithp.com>2012-10-25 00:07:14 -0700
commitb119e19604aa557a40e848c60d98a67b5f259bbd (patch)
tree2391c2fb7db1843096ec4e3d288cb26f7cb88b92 /src/stm/ao_arch.h
parent7d34811ba035367bbf26a8510265754f3fbb5a95 (diff)
altos: profiling on STM32L
Add sample-based profiling, using a 1kHz timer Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_arch.h')
-rw-r--r--src/stm/ao_arch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm/ao_arch.h b/src/stm/ao_arch.h
index 87eda18b..f2de719c 100644
--- a/src/stm/ao_arch.h
+++ b/src/stm/ao_arch.h
@@ -143,7 +143,7 @@ extern const uint32_t ao_radio_cal;
#define ao_arch_cpu_idle() do { \
- asm("wfi"); \
+ asm(".global ao_idle_loc\n\twfi\nao_idle_loc:"); \
} while (0)
#define ao_arch_restore_stack() do { \