Wrapped cc2x30 SOFT_RESET() macro inside do {...} while(0)
This commit is contained in:
parent
23e7f242f6
commit
7854ee499a
2 changed files with 4 additions and 4 deletions
|
@ -75,8 +75,8 @@ typedef unsigned short clock_time_t;
|
||||||
__endasm; \
|
__endasm; \
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Macro for a soft reset. In many respects better than H/W reboot via W/D */
|
/* Macro for a soft reset. */
|
||||||
#define SOFT_RESET() {((void (__code *) (void)) 0x0000) ();}
|
#define SOFT_RESET() do {((void (__code *) (void)) 0x0000) ();} while(0)
|
||||||
|
|
||||||
/* We don't provide architecture-specific checksum calculations */
|
/* We don't provide architecture-specific checksum calculations */
|
||||||
#define UIP_ARCH_ADD32 0
|
#define UIP_ARCH_ADD32 0
|
||||||
|
|
|
@ -59,8 +59,8 @@ typedef unsigned short uip_stats_t;
|
||||||
#define DISABLE_INTERRUPTS() do {EA = 0;} while(0)
|
#define DISABLE_INTERRUPTS() do {EA = 0;} while(0)
|
||||||
#define ENABLE_INTERRUPTS() do {EA = 1;} while(0)
|
#define ENABLE_INTERRUPTS() do {EA = 1;} while(0)
|
||||||
|
|
||||||
/* Macro for a soft reset. In many respects better than H/W reboot via W/D */
|
/* Macro for a soft reset. */
|
||||||
#define SOFT_RESET() {((void (__code *) (void)) 0x0000) ();}
|
#define SOFT_RESET() do {((void (__code *) (void)) 0x0000) ();} while(0)
|
||||||
|
|
||||||
/* We don't provide architecture-specific checksum calculations */
|
/* We don't provide architecture-specific checksum calculations */
|
||||||
#define UIP_ARCH_ADD32 0
|
#define UIP_ARCH_ADD32 0
|
||||||
|
|
Loading…
Reference in a new issue