mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Deleted obsolete macros. Minor formatting
This commit is contained in:
parent
ffa3a1c4c3
commit
924fe934c1
@ -56,27 +56,6 @@ typedef unsigned short clock_time_t;
|
||||
#define DISABLE_INTERRUPTS() do {EA = 0;} while(0)
|
||||
#define ENABLE_INTERRUPTS() do {EA = 1;} while(0)
|
||||
|
||||
#define ENTER_CRITICAL() \
|
||||
{ \
|
||||
__asm \
|
||||
push ACC \
|
||||
push IE \
|
||||
__endasm; \
|
||||
} \
|
||||
EA = 0;
|
||||
|
||||
#define EXIT_CRITICAL() \
|
||||
{ \
|
||||
__asm \
|
||||
pop ACC \
|
||||
__endasm; \
|
||||
ACC &= 0x80; \
|
||||
IE |= ACC; \
|
||||
__asm \
|
||||
pop ACC \
|
||||
__endasm; \
|
||||
}
|
||||
|
||||
/* Macro for a soft reset. */
|
||||
#define SOFT_RESET() do {((void (__code *) (void)) 0x0000) ();} while(0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user