diff --git a/core/oneway_malloc.c b/core/oneway_malloc.c index d43bb610ae391d1077bf3c02c50d71e3a6fff1c8..34969fe60242806eb734b8ff18513ce9d810db06 100644 --- a/core/oneway_malloc.c +++ b/core/oneway_malloc.c @@ -16,7 +16,6 @@ */ #include <stdio.h> -#include <sys/unistd.h> #include <string.h> #include <stdlib.h> diff --git a/drivers/cc110x_ng/makefile b/drivers/cc110x_ng/makefile index c6490934a20249eb6eccf21f5df15c300d555193..1a28fd0870462e654e19f6afa70c8e92ac5d5a04 100644 --- a/drivers/cc110x_ng/makefile +++ b/drivers/cc110x_ng/makefile @@ -2,6 +2,9 @@ INCLUDES = -I$(RIOTBASE)/sys/include -I../../net -I../include -I../../lib -I../. MODULE =cc110x_ng DIRS = +ifneq (,$(findstring msb-430h,$(BOARD))) + DIRS += spi +endif ifneq (,$(findstring msba2,$(BOARD))) DIRS += spi endif diff --git a/drivers/makefile b/drivers/makefile index e28b633166cfa58ec409552252a30ae04ca800e7..763f2544be61a5c0400346f614fb3b670067d8dd 100644 --- a/drivers/makefile +++ b/drivers/makefile @@ -1,3 +1,5 @@ +MODULE = drivers + DIRS= ifneq (,$(findstring powermon,$(USEMODULE))) DIRS += powermon diff --git a/drivers/sht11/makefile b/drivers/sht11/makefile index bfc0a2b08eebb7db208b65822d3109f2e61a52db..cd43db5ef3095e0d9751374aa370e80fc200827f 100644 --- a/drivers/sht11/makefile +++ b/drivers/sht11/makefile @@ -1,4 +1,4 @@ -INCLUDES = -I$(RIOTBASE)/core/include -I../include -I$(RIOTBOARD)/$(BOARD) +INCLUDES += -I$(RIOTBASE)/core/include -I../include -I$(RIOTBOARD)/$(BOARD) MODULE =sht11 include $(MAKEBASE)/makefile.base diff --git a/makefile b/makefile index 372db1e69692ec82463fe5a337930eb44702f0ed..ca2faf9091c1cced6a6d53a9ff3dbfac12c918f8 100644 --- a/makefile +++ b/makefile @@ -7,7 +7,7 @@ all: clean: @for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ; @if [ -d $(BINDIR) ] ; \ - then rmdir $(BINDIR) ; \ + then rmdir --ignore-fail-on-non-empty $(BINDIR) ; \ fi doc: diff --git a/makefile.base b/makefile.base index 65474687c93de9720352feb4b677354e834dd7f5..8e781605f14520ff116965eb007ee286263627d2 100644 --- a/makefile.base +++ b/makefile.base @@ -25,6 +25,11 @@ ifeq ($(BOARD),msba2) INCLUDES += -I$(RIOTBOARD)/msba2-common/include/ INCLUDES += -I$(RIOTBOARD)/msba2-common/drivers/include/ endif +ifeq ($(BOARD),msb-430h) + INCLUDES += -I$(RIOTBOARD)/msb-430h/include/ + INCLUDES += -I$(RIOTBOARD)/msb-430-common/include/ + INCLUDES += -I$(RIOTBOARD)/msb-430-common/drivers/include/ +endif $(BINDIR)$(MODULE).a: $(OBJ) $(ASMOBJ) $(AR) -rc $(BINDIR)$(MODULE).a $(OBJ) $(ASMOBJ) diff --git a/makefile.dep b/makefile.dep index 4582bee5d27a31c067ad6408ac5d7f70cde461fb..2a04fe76fd89a9b84f463e592e6e85fd175a0079 100644 --- a/makefile.dep +++ b/makefile.dep @@ -23,5 +23,11 @@ ifneq (,$(findstring cc110x_ng,$(USEMODULE))) USEMODULE += hwtimer endif endif + ifneq (,$(findstring msb-430h,$(BOARD))) + USEMODULE += cc110x_spi + ifeq (,$(findstring hwtimer,$(USEMODULE))) + USEMODULE += hwtimer + endif + endif endif diff --git a/sys/lib/hashtable.c b/sys/lib/hashtable.c index 763357edce54955114b5c0e1dc14de17ad3f7757..ef64057cb1066c8eb3fb957fefc90b40d233d5f2 100755 --- a/sys/lib/hashtable.c +++ b/sys/lib/hashtable.c @@ -1,18 +1,18 @@ /* Copyright (C) 2004 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */ -#include "hashtable.h" -#include "hashtable_private.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> +#include "hashtable.h" +#include "hashtable_private.h" /* Credit for primes table: Aaron Krowne http://br.endernet.org/~akrowne/ http://planetmath.org/encyclopedia/GoodHashTablePrimes.html */ -static const unsigned int primes[] = { +static const uint32_t primes[] = { 53, 97, 193, 389, 769, 1543, 3079, 6151, 12289, 24593, 49157, 98317, @@ -26,7 +26,7 @@ const float max_load_factor = 0.65; /*****************************************************************************/ struct hashtable * -create_hashtable(unsigned int minsize, +create_hashtable(uint32_t minsize, unsigned int (*hashf) (void*), int (*eqf) (void*,void*)) { diff --git a/sys/lib/hashtable.h b/sys/lib/hashtable.h index b90781abd4a75e6f910cf1450c8ad159bdeac33a..e53aea267b82913e845b3f3eaf868a7923210322 100755 --- a/sys/lib/hashtable.h +++ b/sys/lib/hashtable.h @@ -72,7 +72,7 @@ struct hashtable; */ struct hashtable * -create_hashtable(unsigned int minsize, +create_hashtable(uint32_t minsize, unsigned int (*hashfunction) (void*), int (*key_eq_fn) (void*,void*));