From d97340cd5d1159a6b5b04be760539c8ae17a6fb7 Mon Sep 17 00:00:00 2001
From: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Date: Mon, 21 May 2018 23:00:06 +0200
Subject: [PATCH] boards/msbiot: Added/updated configuration for the cc110x
 transceiver

 - Adjusted `#define`s to match the naming convention of `cc110x_params.h`
 - Enable the `cc110x` module if `netdev_default` or `gnrc_netdev_default` is
   used
---
 boards/msbiot/Makefile.dep    |  4 ++++
 boards/msbiot/include/board.h | 10 +++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
 create mode 100644 boards/msbiot/Makefile.dep

diff --git a/boards/msbiot/Makefile.dep b/boards/msbiot/Makefile.dep
new file mode 100644
index 0000000000..33f667abb9
--- /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 525ff32243..9f8017cf79 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)
 /** @} */
 
 /**
-- 
GitLab