mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-15 00:29:02 +00:00
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:
parent
666ff6ca55
commit
a0d2988846
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user