diff --git a/boards/msbiot/Makefile.dep b/boards/msbiot/Makefile.dep new file mode 100644 index 0000000000000000000000000000000000000000..33f667abb9fd4b1189c50219658a48e8a8335f68 --- /dev/null +++ b/boards/msbiot/Makefile.dep @@ -0,0 +1,4 @@ +# add driver for CC1101 sub-gigahertz transceiver as default netdev +ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE))) + USEMODULE += cc110x +endif diff --git a/boards/msbiot/include/board.h b/boards/msbiot/include/board.h index 525ff32243a35d7af1a28a3046dadf383899b853..9f8017cf79c7db29f3ee355fc8b7a992ed501cbe 100644 --- a/boards/msbiot/include/board.h +++ b/boards/msbiot/include/board.h @@ -32,11 +32,11 @@ extern "C" { * @name Configure connected CC1101 (radio) device * @{ */ -#define CC110X_SPI SPI_DEV(0) -#define CC110X_CS GPIO_PIN(PORT_B, 12) -#define CC110X_GDO0 GPIO_PIN(PORT_C, 4) -#define CC110X_GDO1 GPIO_PIN(PORT_A, 6) -#define CC110X_GDO2 GPIO_PIN(PORT_C, 5) +#define CC110X_PARAM_SPI SPI_DEV(0) +#define CC110X_PARAM_CS GPIO_PIN(PORT_B, 12) +#define CC110X_PARAM_GDO0 GPIO_PIN(PORT_C, 4) +#define CC110X_PARAM_GDO1 GPIO_PIN(PORT_A, 6) +#define CC110X_PARAM_GDO2 GPIO_PIN(PORT_C, 5) /** @} */ /**