Made Rime address size configurable through contiki-conf.h

This commit is contained in:
adamdunkels 2007-11-26 23:30:35 +00:00
parent 75be20bea6
commit 98854f80e0

View file

@ -42,7 +42,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: rimeaddr.h,v 1.3 2007/03/31 18:31:28 adamdunkels Exp $
* $Id: rimeaddr.h,v 1.4 2007/11/26 23:30:35 adamdunkels Exp $
*/
/**
@ -55,9 +55,17 @@
#ifndef __RIMEADDR_H__
#define __RIMEADDR_H__
#include "contiki-conf.h"
#ifdef RIMEADDR_CONF_SIZE
#define RIMEADDR_SIZE RIMEADDR_CONF_SIZE
#else /* RIMEADDR_SIZE */
#define RIMEADDR_SIZE 2
#endif /* RIMEADDR_SIZE */
typedef union {
unsigned char u8[2];
unsigned short u16[1];
unsigned char u8[RIMEADDR_SIZE];
unsigned short u16[RIMEADDR_SIZE / 2];
} rimeaddr_t;