From: Keith Packard Date: Tue, 23 Apr 2013 01:29:56 +0000 (-0500) Subject: altos/stm: Don't define task macros when not tasking X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a8e1e20f2af18d387ab53782f6c14fc4a2bf2925;p=fw%2Faltos 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 --- 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()