summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_arch.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-12-30 15:38:32 -0800
committerKeith Packard <keithp@keithp.com>2011-12-30 15:38:32 -0800
commit614ab6a991258a5caad0ca12ae35d0288a5b7503 (patch)
tree4a3edcd9f6313e0db36c8c36ef87d7cab4543bb9 /src/cc1111/ao_arch.h
parentbbb94a6a25a106316414a9a281e924f6c56e9f38 (diff)
altos: Clean up for SDCC 3.1 - more keywords
_asm -> __asm sbit -> __sbit remove variables named 'data' Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_arch.h')
-rw-r--r--src/cc1111/ao_arch.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cc1111/ao_arch.h b/src/cc1111/ao_arch.h
index eb8ce9be..e6c27a1e 100644
--- a/src/cc1111/ao_arch.h
+++ b/src/cc1111/ao_arch.h
@@ -45,7 +45,7 @@
ao_delay(AO_SEC_TO_TICKS(2)); \
} while (0)
-#define ao_arch_nop() _asm nop _endasm
+#define ao_arch_nop() __asm nop __endasm
#define ao_arch_interrupt(n) __interrupt n
#define ao_arch_naked_declare __naked
@@ -106,7 +106,7 @@ extern __code __at (0x00a6) uint32_t ao_radio_cal;
/* Save current context */
#define ao_arch_save_regs() \
- _asm \
+ __asm \
/* Push ACC first, as when restoring the context it must be restored \
* last (it is used to set the IE register). */ \
push ACC \
@@ -125,11 +125,11 @@ extern __code __at (0x00a6) uint32_t ao_radio_cal;
push ar0 \
push ar1 \
push PSW \
- _endasm; \
+ __endasm; \
PSW = 0; \
- _asm \
+ __asm \
push _bp \
- _endasm
+ __endasm
#define ao_arch_save_stack() { \
uint8_t stack_len; \
@@ -166,7 +166,7 @@ extern __code __at (0x00a6) uint32_t ao_radio_cal;
*stack_ptr++ = *save_ptr++; \
while (--stack_len); \
\
- _asm \
+ __asm \
pop _bp \
pop PSW \
pop ar1 \
@@ -193,7 +193,7 @@ extern __code __at (0x00a6) uint32_t ao_radio_cal;
/* Finally pop off the ACC, which was the first register saved. */ \
pop ACC \
ret \
- _endasm; \
+ __endasm; \
}
#define ao_arch_critical(b) __critical { b }