cc253x: Don't force __data usage

SDCC optimize "r" and put it in a register.
Don't force len to be in __data.
This commit is contained in:
Philippe Rétornaz 2012-08-29 18:43:16 +02:00 committed by George Oikonomou
parent 666ff6ca55
commit a0d2988846

View File

@ -44,8 +44,6 @@ extern volatile uint8_t sleep_flag;
#endif
/*---------------------------------------------------------------------------*/
extern rimeaddr_t rimeaddr_node_addr;
static __data int r;
static __data int len;
/*---------------------------------------------------------------------------*/
#if ENERGEST_CONF_ON
static unsigned long irq_energest = 0;
@ -261,6 +259,8 @@ main(void) CC_NON_BANKED
fade(LEDS_YELLOW);
while(1) {
uint8_t r;
static uint16_t len;
do {
/* Reset watchdog and handle polls and events */
watchdog_periodic();