Wrapped cc2x30 SOFT_RESET() macro inside do {...} while(0)

This commit is contained in:
George Oikonomou 2012-03-29 11:22:56 +01:00
parent 23e7f242f6
commit 7854ee499a
2 changed files with 4 additions and 4 deletions

View file

@ -75,8 +75,8 @@ typedef unsigned short clock_time_t;
__endasm; \
}
/* Macro for a soft reset. In many respects better than H/W reboot via W/D */
#define SOFT_RESET() {((void (__code *) (void)) 0x0000) ();}
/* Macro for a soft reset. */
#define SOFT_RESET() do {((void (__code *) (void)) 0x0000) ();} while(0)
/* We don't provide architecture-specific checksum calculations */
#define UIP_ARCH_ADD32 0

View file

@ -59,8 +59,8 @@ typedef unsigned short uip_stats_t;
#define DISABLE_INTERRUPTS() do {EA = 0;} 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 */
#define SOFT_RESET() {((void (__code *) (void)) 0x0000) ();}
/* Macro for a soft reset. */
#define SOFT_RESET() do {((void (__code *) (void)) 0x0000) ();} while(0)
/* We don't provide architecture-specific checksum calculations */
#define UIP_ARCH_ADD32 0