diff options
author | Keith Packard <keithp@keithp.com> | 2013-04-22 20:29:56 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-04-22 20:29:56 -0500 |
commit | a8e1e20f2af18d387ab53782f6c14fc4a2bf2925 (patch) | |
tree | f7280ecf3c1acc7d922cd1b0dd646408c62e8339 /src | |
parent | 38fd4396370ffb66f371e1468e85ac52f407970f (diff) |
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 <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/stm/ao_arch_funcs.h | 2 |
1 files changed, 2 insertions, 0 deletions
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() |