Disable (debugging-) initialiation of aaaa:: address; add CSMA MAC for IPv6/6lowpan
This commit is contained in:
parent
b0db9cc588
commit
d0d52638b8
1 changed files with 12 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)$Id: contiki-sky-main.c,v 1.64 2010/01/25 11:48:16 adamdunkels Exp $
|
* @(#)$Id: contiki-sky-main.c,v 1.65 2010/02/01 11:55:04 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -48,6 +48,7 @@
|
||||||
#include "dev/watchdog.h"
|
#include "dev/watchdog.h"
|
||||||
#include "dev/xmem.h"
|
#include "dev/xmem.h"
|
||||||
#include "lib/random.h"
|
#include "lib/random.h"
|
||||||
|
#include "net/mac/csma.h"
|
||||||
#include "net/mac/frame802154.h"
|
#include "net/mac/frame802154.h"
|
||||||
#include "net/mac/framer-802154.h"
|
#include "net/mac/framer-802154.h"
|
||||||
#include "net/mac/framer-nullmac.h"
|
#include "net/mac/framer-nullmac.h"
|
||||||
|
@ -298,8 +299,16 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
/* Setup X-MAC for 802.15.4 */
|
/* Setup X-MAC for 802.15.4 */
|
||||||
queuebuf_init();
|
queuebuf_init();
|
||||||
|
#if MAC_CSMA
|
||||||
|
sicslowpan_init(csma_init(MAC_DRIVER.init(&cc2420_driver)));
|
||||||
|
#else /* MAC_CSMA */
|
||||||
sicslowpan_init(MAC_DRIVER.init(&cc2420_driver));
|
sicslowpan_init(MAC_DRIVER.init(&cc2420_driver));
|
||||||
printf(" %s channel %u\n", MAC_DRIVER.name, RF_CHANNEL);
|
#endif /* MAC_CSMA */
|
||||||
|
printf(" %s, channel check rate %d Hz, radio channel %u\n",
|
||||||
|
sicslowpan_mac->name,
|
||||||
|
CLOCK_SECOND / (sicslowpan_mac->channel_check_interval() == 0? 1:
|
||||||
|
sicslowpan_mac->channel_check_interval()),
|
||||||
|
RF_CHANNEL);
|
||||||
|
|
||||||
process_start(&tcpip_process, NULL);
|
process_start(&tcpip_process, NULL);
|
||||||
|
|
||||||
|
@ -316,7 +325,7 @@ main(int argc, char **argv)
|
||||||
uip_netif_physical_if.addresses[0].ipaddr.u8[15]);
|
uip_netif_physical_if.addresses[0].ipaddr.u8[15]);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
if(0) {
|
||||||
uip_ipaddr_t ipaddr;
|
uip_ipaddr_t ipaddr;
|
||||||
int i;
|
int i;
|
||||||
uip_ip6addr(&ipaddr, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
|
uip_ip6addr(&ipaddr, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
|
||||||
|
|
Loading…
Reference in a new issue