mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Removed obsolete #if config from cc2530dk's main
Unlike cc2430, the cc2530 RF driver never generates interrupts. This configuration in main() was a remnant of the porting from the sensinode main, which does in fact need it. Also updated comments in contiki-conf to reflect that shortcuts don't influence the RF
This commit is contained in:
parent
977bc548f3
commit
2d0d54c380
@ -64,10 +64,6 @@
|
|||||||
|
|
||||||
/* Code Shortcuts */
|
/* Code Shortcuts */
|
||||||
/*
|
/*
|
||||||
* When set, the RF driver is no longer a contiki process and the RX ISR is
|
|
||||||
* disabled. Instead of polling the radio process when data arrives, we
|
|
||||||
* periodically check for data by directly invoking the driver from main()
|
|
||||||
|
|
||||||
* When set, this directive also configures the following bypasses:
|
* When set, this directive also configures the following bypasses:
|
||||||
* - process_post_synch() in tcpip_input() (we call packet_input())
|
* - process_post_synch() in tcpip_input() (we call packet_input())
|
||||||
* - process_post_synch() in tcpip_uipcall (we call the relevant pthread)
|
* - process_post_synch() in tcpip_uipcall (we call the relevant pthread)
|
||||||
|
@ -254,7 +254,6 @@ main(void)
|
|||||||
watchdog_periodic();
|
watchdog_periodic();
|
||||||
r = process_run();
|
r = process_run();
|
||||||
} while(r > 0);
|
} while(r > 0);
|
||||||
#if SHORTCUTS_CONF_NETSTACK
|
|
||||||
len = NETSTACK_RADIO.pending_packet();
|
len = NETSTACK_RADIO.pending_packet();
|
||||||
if(len) {
|
if(len) {
|
||||||
packetbuf_clear();
|
packetbuf_clear();
|
||||||
@ -264,7 +263,6 @@ main(void)
|
|||||||
NETSTACK_RDC.input();
|
NETSTACK_RDC.input();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#if LPM_MODE
|
#if LPM_MODE
|
||||||
#if (LPM_MODE==LPM_MODE_PM2)
|
#if (LPM_MODE==LPM_MODE_PM2)
|
||||||
|
Loading…
Reference in New Issue
Block a user