Skip to content

Commit

Permalink
[UNTESTED - do not merge] boards/openmote-b: hook up at86rf215
Browse files Browse the repository at this point in the history
Openmote-B includes an AT86RF215 radio. This adds support for it.

TODO:
    - confirm the configuration is correct
    - figure out antenna switch
    - co-existence with cc2538_rf
  • Loading branch information
benpicco committed Sep 5, 2019
1 parent 0afd751 commit 791f334
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion boards/openmote-b/Makefile.dep
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
USEMODULE += netif
USEMODULE += cc2538_rf
USEMODULE += at86rf215
USEMODULE += netdev_ieee802154
endif
10 changes: 10 additions & 0 deletions boards/openmote-b/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@
#define RF_SWITCH_SUB_GHZ_TOGGLE (RF_SWITCH_PORT->DATA ^= RF_SWITCH_SUB_GHZ_MASK)
/** @} */

/**
* @name AT86RF215 configuration
* @{
*/
#define AT86RF215_PARAM_SPI SPI_DEV(0)
#define AT86RF215_PARAM_CS GPIO_PIN(0, 3) /* A3 */
#define AT86RF215_PARAM_INT GPIO_PIN(3, 0) /* D0 */
#define AT86RF215_PARAM_RESET GPIO_PIN(3, 1) /* D1 */
/** @} */

/**
* @name xtimer configuration
* @{
Expand Down

0 comments on commit 791f334

Please sign in to comment.