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
This commit is contained in:
Marian Buschsieweke 2018-05-21 23:00:06 +02:00
parent a6f9a86597
commit d97340cd5d
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
2 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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)
/** @} */
/**