From a8e1e20f2af18d387ab53782f6c14fc4a2bf2925 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 22 Apr 2013 20:29:56 -0500 Subject: [PATCH] altos/stm: Don't define task macros when not tasking The necessary data structures aren't defined in this case. Signed-off-by: Keith Packard --- src/stm/ao_arch_funcs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stm/ao_arch_funcs.h b/src/stm/ao_arch_funcs.h index a45b6ab3..e152440a 100644 --- a/src/stm/ao_arch_funcs.h +++ b/src/stm/ao_arch_funcs.h @@ -267,6 +267,7 @@ ao_arch_memory_barrier() { asm volatile("" ::: "memory"); } +#if HAS_TASK static inline void ao_arch_init_stack(struct ao_task *task, void *start) { @@ -333,6 +334,7 @@ static inline void ao_arch_restore_stack(void) { /* Return to calling function */ asm("bx lr"); } +#endif #define ao_arch_isr_stack() -- 2.47.2