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:
parent
a6f9a86597
commit
d97340cd5d
4
boards/msbiot/Makefile.dep
Normal file
4
boards/msbiot/Makefile.dep
Normal 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
|
||||
@ -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)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user