summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-22 20:29:56 -0500
committerKeith Packard <keithp@keithp.com>2013-05-07 21:30:26 -0700
commita453e2245996854e722346789f972fd088e33ba8 (patch)
treefee4e09228fd350bdefd98791ca2a96ed420d859
parent8d0f4bc23eae4f1e085bfb853c995f1fb6b8b594 (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>
-rw-r--r--src/stm/ao_arch_funcs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stm/ao_arch_funcs.h b/src/stm/ao_arch_funcs.h
index 2c0f173c..1e78cabc 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)
{
@@ -349,6 +350,8 @@ static inline void ao_arch_start_scheduler(void) {
#define ao_arch_isr_stack()
+#endif
+
#define ao_arch_wait_interrupt() do { \
asm(".global ao_idle_loc\n\twfi\nao_idle_loc:"); \
ao_arch_release_interrupts(); \