diff --git a/Makefile.dep b/Makefile.dep index 2e13d5e40ef4e878c4ff4adc47e7946a6d437b0e..de8da13ac3767f7bc9163e4b2e0ad5b6646279cf 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -13,6 +13,12 @@ ifneq (,$(findstring uart0,$(USEMODULE))) endif endif +ifneq (,$(findstring cc110x,$(USEMODULE))) + ifeq (,$(findstring protocol-multiplex,$(USEMODULE))) + USEMODULE += protocol-multiplex + endif +endif + ifneq (,$(findstring cc110x_ng,$(USEMODULE))) ifeq (,$(findstring transceiver,$(USEMODULE))) USEMODULE += transceiver diff --git a/core/Makefile b/core/Makefile index 4bf9f52402e446e7dc609e62727bd9761b16de25..6a5709576b9dacc98ad40c16b214c47ec9bf846c 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1,5 +1,5 @@ MODULE =core -INCLUDES = -Iinclude/ -I../sys/include -I../sys/lib -I../sys/drivers/include -I$(RIOTCPU)/$(CPU)/include/ -I../.. -I../drivers/include/ +INCLUDES += -Iinclude/ -I../sys/include -I../sys/lib -I$(RIOTBASE)/drivers/include -I$(RIOTCPU)/$(CPU)/include include $(RIOTBASE)/Makefile.base diff --git a/drivers/cc110x/Makefile b/drivers/cc110x/Makefile index 43de7a3aa6fcde9154abcb53f6b8a83408cc7e6a..85d5f0629de6861976c0f98e35bf0aec2ab5c874 100644 --- a/drivers/cc110x/Makefile +++ b/drivers/cc110x/Makefile @@ -1,6 +1,4 @@ -INCLUDES = -I$(RIOTBASE)/sys/include -I../../net -I../../net/protocol-multiplex -I../include -I../../lib -I../../../.. -I../../../cpu/ -I../../../core/include -I../../ - -MODULE =cc110x_ng +MODULE =cc110x include $(MAKEBASE)/Makefile.base diff --git a/drivers/cc110x/cc1100-csmaca-mac.c b/drivers/cc110x/cc1100-csmaca-mac.c index aea7d89459080a0d913e3e803d98b7304facf738..67ae27b6540b65147a44cee14db7dfbfac282085 100644 --- a/drivers/cc110x/cc1100-csmaca-mac.c +++ b/drivers/cc110x/cc1100-csmaca-mac.c @@ -44,7 +44,7 @@ and the mailinglist (subscription via web site) #include <cc1100.h> #include <cc1100_phy.h> #include <cc1100-csmaca-mac.h> -#include <protocol-multiplex.h> +#include "protocol-multiplex/protocol-multiplex.h" #include "hwtimer.h" #include <vtimer.h> diff --git a/drivers/cc110x/cc1100.c b/drivers/cc110x/cc1100.c index 5218eac4b716b8106798159e1b7a5c490e7757a0..6fd400c065fff708a01c0793011a9c7abf7423d8 100644 --- a/drivers/cc110x/cc1100.c +++ b/drivers/cc110x/cc1100.c @@ -41,7 +41,7 @@ #include "cc1100-defaultSettings.h" #include "hwtimer.h" -#include "core/include/bitarithm.h" +#include "bitarithm.h" /* TODO: cc1100 port timer */ #ifdef FEUERWARE_CPU_LPC2387 diff --git a/drivers/cc110x/cc1100_phy.c b/drivers/cc110x/cc1100_phy.c index 1ccc1f43ce2dcca74f09650b9b43059d5f5f57a8..28fc4f76bf362c64cb58caeb817d6497e7a13180 100644 --- a/drivers/cc110x/cc1100_phy.c +++ b/drivers/cc110x/cc1100_phy.c @@ -53,7 +53,7 @@ and the mailinglist (subscription via web site) #include "cc1100_phy.h" #include "cc1100-defaultSettings.h" -#include "protocol-multiplex.h" +#include "protocol-multiplex/protocol-multiplex.h" #include "kernel.h" #include "thread.h" @@ -846,7 +846,7 @@ void cc1100_phy_rx_handler(void) /* Valid packet. After a wake-up, the radio should be in IDLE. * So put CC1100 to RX for WOR_TIMEOUT (have to manually put * the radio back to sleep/WOR).*/ - cc1100_spi_write_reg(CC1100_MCSM0, 0x08); * Turn off FS-Autocal + cc1100_spi_write_reg(CC1100_MCSM0, 0x08); /* Turn off FS-Autocal */ cc1100_spi_write_reg(CC1100_MCSM2, 0x07); /* Configure RX_TIME (until end of packet) */ if (radio_mode == CC1100_MODE_CONSTANT_RX) { diff --git a/sys/Makefile b/sys/Makefile index 10f9a9b94874448305c501e61fe7625b9b2233c7..000c30dc61c8f7f192d8fe2b128f7eadc706ec3b 100644 --- a/sys/Makefile +++ b/sys/Makefile @@ -1,4 +1,4 @@ -INCLUDES = -Iinclude -I$(RIOTBASE)/drivers/ -I$(RIOTBASE)/drivers/include -Ilib -I$(RIOTCPU)/$(CPU)/include -Inet -I../core/include +INCLUDES += -Iinclude -I$(RIOTBASE)/drivers/ -I$(RIOTBASE)/drivers/include -Ilib -I$(RIOTCPU)/$(CPU)/include -Inet -I../core/include MODULE =sys ifneq (,$(findstring auto_init,$(USEMODULE))) diff --git a/sys/auto_init/Makefile b/sys/auto_init/Makefile index d807664555bf5b01a9612a5aed02d4bd74153979..8b2b20a9fd5b86299c0a8e74cf2fb3d7119dd516 100644 --- a/sys/auto_init/Makefile +++ b/sys/auto_init/Makefile @@ -1,4 +1,3 @@ -INCLUDES = -I../include -I$(RIOTBASE)/core/include/ -I$(RIOTBASE)/drivers/include MODULE = auto_init include $(RIOTBASE)/Makefile.base diff --git a/sys/net/sixlowpan/rpl/etx_beaconing.c b/sys/net/sixlowpan/rpl/etx_beaconing.c index a2380b8ceab2c747c7df985a0cb0be4f6997c48c..533655bf0693e10765a2983a3600421eb0ce2a39 100644 --- a/sys/net/sixlowpan/rpl/etx_beaconing.c +++ b/sys/net/sixlowpan/rpl/etx_beaconing.c @@ -15,8 +15,8 @@ #include <thread.h> #include <transceiver.h> -#include "sys/net/sixlowpan/sixlowmac.h" -#include "sys/net/sixlowpan/ieee802154_frame.h" +#include "sixlowpan/sixlowmac.h" +#include "ieee802154/ieee802154_frame.h" //prototytpes static uint8_t etx_count_packet_tx(etx_neighbor_t * candidate); diff --git a/sys/net/sixlowpan/rpl/rpl.h b/sys/net/sixlowpan/rpl/rpl.h index 7ab2f87206844d78e7791f550faeb95c5a46b6cd..c38a2bf2eab30509a516741a5027a4137280fac6 100644 --- a/sys/net/sixlowpan/rpl/rpl.h +++ b/sys/net/sixlowpan/rpl/rpl.h @@ -20,7 +20,7 @@ #include <vtimer.h> #include <mutex.h> #include <transceiver.h> -#include "sys/net/sixlowpan/sixlowip.h" +#include "sixlowpan/sixlowip.h" #include "rpl_dodag.h" #define CC1100_RADIO_MODE CC1100_MODE_WOR diff --git a/sys/net/sixlowpan/rpl/rpl_structs.h b/sys/net/sixlowpan/rpl/rpl_structs.h index 830eac15ae9154ba1f217898c63b6ae206a23699..f0e8f14d8daeddd57fd1e29363ede5184b10ce79 100644 --- a/sys/net/sixlowpan/rpl/rpl_structs.h +++ b/sys/net/sixlowpan/rpl/rpl_structs.h @@ -16,7 +16,7 @@ */ #include <string.h> -#include "sys/net/sixlowpan/sixlowip.h" +#include "sixlowpan/sixlowip.h" #ifndef RPL_STRUCTS_H_INCLUDED #define RPL_STRUCTS_H_INCLUDED diff --git a/sys/transceiver/Makefile b/sys/transceiver/Makefile index f3718a1d15faf2acb0b79ba1d57e1899725dd9df..4fcf17425df365148bd1d0a90dfc592a0b64d327 100644 --- a/sys/transceiver/Makefile +++ b/sys/transceiver/Makefile @@ -1,4 +1,3 @@ -INCLUDES = -I../include -I$(RIOTBAE)/drivers/include -I$(RIOTBASE)/drivers/cc110x_ng/include -I../lib -I$(RIOTCPU)/$(CPU)/include -I../net -I../../core/include -I$(RIOTBASE)/drivers/cc2420/include -I$(RIOTBASE)/sys/net/ieee802154/ MODULE =transceiver include $(MAKEBASE)/Makefile.base