mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
boards: Added cc110x params for MSB-A2 & MSB-IoT
This commit is contained in:
parent
88cf6cb46f
commit
137c2c0adf
@ -1,5 +1,9 @@
|
||||
include $(RIOTBOARD)/common/msba2/Makefile.dep
|
||||
|
||||
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
|
||||
USEMODULE += cc1100
|
||||
endif
|
||||
|
||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += ltc4150
|
||||
USEMODULE += sht11
|
||||
|
@ -1,3 +1,7 @@
|
||||
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
|
||||
USEMODULE += cc1101
|
||||
endif
|
||||
|
||||
# add support for LEDs and buttons as default saul devices
|
||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += saul_gpio
|
||||
|
@ -30,11 +30,11 @@ extern "C" {
|
||||
* @name Configure connected CC1101 (radio) device
|
||||
* @{
|
||||
*/
|
||||
#define CC110X_PARAM_SPI SPI_DEV(0) /**< SPI interface CC1101 is connected to */
|
||||
#define CC110X_PARAM_CS GPIO_PIN(PORT_B, 12) /**< CS pin of CC1101 */
|
||||
#define CC110X_PARAM_GDO0 GPIO_PIN(PORT_C, 4) /**< GDO0 pin of CC1101 */
|
||||
#define CC110X_PARAM_GDO1 GPIO_PIN(PORT_A, 6) /**< GDO1 pin of CC1101 */
|
||||
#define CC110X_PARAM_GDO2 GPIO_PIN(PORT_C, 5) /**< GDO2 pin of CC1101 */
|
||||
#define CC110X_PARAM_SPI SPI_DEV(0) /**< SPI interface CC1101 is connected to */
|
||||
#define CC110X_PARAM_CS GPIO_PIN(PORT_B, 12) /**< CS pin of CC1101 */
|
||||
#define CC110X_PARAM_GDO0 GPIO_PIN(PORT_C, 4) /**< GDO0 pin of CC1101 */
|
||||
#define CC110X_PARAM_GDO2 GPIO_PIN(PORT_C, 5) /**< GDO2 pin of CC1101 */
|
||||
#define CC110X_PARAM_SPI_CLOCK SPI_CLK_1MHZ /**< SPI clock (reduced to work around hw bug) */
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user