Skip to content

Commit

Permalink
fixup! [UNTESTED - do not merge] boards/openmote-b: hook up at86rf215
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Sep 11, 2019
1 parent 70f50dd commit dbf0718
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion boards/openmote-b/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ void board_init(void)
gpio_init(RF24_SWITCH_CC2538_PIN, GPIO_OUT);
gpio_init(RF24_SWITCH_AT86RF215_PIN, GPIO_OUT);

/* start with cc2538 2.4ghz radio*/
#ifdef MODULE_AT86RF215
/* use at86rf215 2.4ghz radio*/
RF24_SWITCH_CC2538_OFF;
RF24_SWITCH_AT86RF215_ON;
#else
/* use cc2538 2.4ghz radio*/
RF24_SWITCH_CC2538_ON;
RF24_SWITCH_AT86RF215_OFF;
#endif

/* initialize the CPU */
cpu_init();
Expand Down

0 comments on commit dbf0718

Please sign in to comment.