Cleanup of the node-id.h files. The node-id.h file contains
declarations of functions for setting and getting a node ID number, a functionality that exists on many platforms. Since this functionality was not considered part of the Contiki core, each platform defined its own node-id.h file. This commit attempts to clean this up by collecting the node-id.h into a core/sys/node-id.h file that replaces the old node-id.h files from the platform directories.
This commit is contained in:
parent
9392ece509
commit
ec8c7e9be0
46 changed files with 37 additions and 433 deletions
|
@ -21,7 +21,7 @@
|
|||
#endif
|
||||
|
||||
#include "contiki-net.h"
|
||||
#include "node-id.h"
|
||||
#include "sys/node-id.h"
|
||||
|
||||
int node_rank;
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#include "net/uip-ds6.h"
|
||||
#include "net/uip-debug.h"
|
||||
|
||||
#include "node-id.h"
|
||||
#include "sys/node-id.h"
|
||||
|
||||
#include "simple-udp.h"
|
||||
#include "servreg-hack.h"
|
||||
|
|
|
@ -104,7 +104,7 @@ const static struct rucb_callbacks rucb_call = {write_chunk, read_chunk,
|
|||
NULL};
|
||||
static struct rucb_conn rucb;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#include "node-id.h"
|
||||
#include "sys/node-id.h"
|
||||
|
||||
PROCESS_THREAD(example_rucb_process, ev, data)
|
||||
{
|
||||
|
|
|
@ -140,7 +140,7 @@ const static struct rudolph2_callbacks rudolph2_call = {write_chunk,
|
|||
read_chunk};
|
||||
static struct rudolph2_conn rudolph2;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#include "node-id.h"
|
||||
#include "sys/node-id.h"
|
||||
|
||||
PROCESS_THREAD(example_rudolph2_process, ev, data)
|
||||
{
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include "contiki.h"
|
||||
#include "cfs/cfs.h"
|
||||
#include "deluge.h"
|
||||
#include "node-id.h"
|
||||
#include "sys/node-id.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#include "contiki-net.h"
|
||||
#include "uip.h"
|
||||
#include "net/rpl/rpl.h"
|
||||
#include "node-id.h"
|
||||
#include "sys/node-id.h"
|
||||
#include "servreg-hack.h"
|
||||
|
||||
#include "cfs/cfs.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue