projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a46c939
)
altos/attiny: Update to new interrupt macros
author
Keith Packard
<keithp@keithp.com>
Mon, 29 Oct 2012 18:43:02 +0000
(11:43 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 29 Oct 2012 18:43:02 +0000
(11:43 -0700)
Add ao_arch_block/release_interrupts macros to attiny architecture
Signed-off-by: Keith Packard <keithp@keithp.com>
src/attiny/ao_arch.h
patch
|
blob
|
history
diff --git
a/src/attiny/ao_arch.h
b/src/attiny/ao_arch.h
index c34206e6cc8aef6c0550484e61320df69c61de77..52bed981a9eaaa202080b09d2da48813218b393d 100644
(file)
--- a/
src/attiny/ao_arch.h
+++ b/
src/attiny/ao_arch.h
@@
-64,6
+64,9
@@
#define ao_arch_critical(b) do { cli(); do { b } while (0); sei(); } while (0)
+#define ao_arch_block_interrupts() cli()
+#define ao_arch_release_interrupts() sei()
+
#define ao_mutex_get(m)
#define ao_mutex_put(m)