1
0
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:
Marian Buschsieweke 2018-12-21 10:36:01 +01:00
parent 88cf6cb46f
commit 137c2c0adf
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
3 changed files with 13 additions and 5 deletions

View File

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

View File

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

View File

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