mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +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
|
#endif
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
extern rimeaddr_t rimeaddr_node_addr;
|
extern rimeaddr_t rimeaddr_node_addr;
|
||||||
static __data int r;
|
|
||||||
static __data int len;
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#if ENERGEST_CONF_ON
|
#if ENERGEST_CONF_ON
|
||||||
static unsigned long irq_energest = 0;
|
static unsigned long irq_energest = 0;
|
||||||
@ -261,6 +259,8 @@ main(void) CC_NON_BANKED
|
|||||||
fade(LEDS_YELLOW);
|
fade(LEDS_YELLOW);
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
|
uint8_t r;
|
||||||
|
static uint16_t len;
|
||||||
do {
|
do {
|
||||||
/* Reset watchdog and handle polls and events */
|
/* Reset watchdog and handle polls and events */
|
||||||
watchdog_periodic();
|
watchdog_periodic();
|
||||||
|
Loading…
Reference in New Issue
Block a user