projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d0f4bc
)
altos/stm: Don't define task macros when not tasking
author
Keith Packard
<keithp@keithp.com>
Tue, 23 Apr 2013 01:29:56 +0000
(20:29 -0500)
committer
Keith Packard
<keithp@keithp.com>
Wed, 8 May 2013 04:30:26 +0000
(21:30 -0700)
The necessary data structures aren't defined in this case.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_arch_funcs.h
patch
|
blob
|
history
diff --git
a/src/stm/ao_arch_funcs.h
b/src/stm/ao_arch_funcs.h
index 2c0f173c3661264a68b7192821370f663a47f010..1e78cabc5fbadb9a9519aaf9a63f1321a7a6d7a0 100644
(file)
--- 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(); \