Added a new type for all addresses in Rime: rimeaddr_t. This is an abstract type that currently is defined as a 16-bit quantity but that most likely will be redefined in the future

This commit is contained in:
adamdunkels 2007-03-15 19:43:07 +00:00
parent 2b119b054e
commit ab0d556353
19 changed files with 216 additions and 92 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: rime.c,v 1.1 2007/02/28 16:38:52 adamdunkels Exp $
* $Id: rime.c,v 1.2 2007/03/15 19:43:07 adamdunkels Exp $
*/
/**
@ -39,6 +39,7 @@
*/
#include "net/rime.h"
#include "node-id.h"
/*---------------------------------------------------------------------------*/
void
rime_init(void)
@ -46,5 +47,13 @@ rime_init(void)
ctimer_init();
queuebuf_init();
rimebuf_clear();
rimeaddr_node_addr.u16 = node_id;
}
/*---------------------------------------------------------------------------*/
void
rime_input_packet(void)
{
abc_input_packet();
}
/*---------------------------------------------------------------------------*/