Board specific definitions for the RE-Mote board Revision B.
More...
#include "cpu.h"
#include "board_common.h"
Go to the source code of this file.
|
Controls which RF interface goes to the RP-SMA external antenna
These values configure the required pin to drive the RF antenna switch, to either enable the sub-1Ghz RF interface (power-up the CC1200) or the 2.4GHz RF interface of the CC2538, both alternatively routed to a RP-SMA connector to allow using an external antenna for both cases.
Note it is also possible to enable both RF interfaces at the same time, by switching On the sub-1GHz RF interface, and placing an 0Ohm resistor (R19), to select between using a ceramic chip antenna (not mounted), or to connect and external antenna over a pigtail to the U.Fl connector (not mounted).
RF switch state:
- LOW: 2.4GHz RF interface on RP-SMA connector, CC1200 powered-off.
- HIGH: Sub-1GHz RF interface on RP-SMA connector.
|
#define | RF_SWITCH_GPIO GPIO_PD2 |
|
#define | RF_SWITCH_SUB_GHZ gpio_set(RF_SWITCH_GPIO) |
|
#define | RF_SWITCH_2_4_GHZ gpio_clear(RF_SWITCH_GPIO) |
|
#define | RF_SWITCH_TOGGLE gpio_toggle(RF_SWITCH_GPIO) |
|
◆ BTN0_MODE
#define BTN0_MODE GPIO_IN_PU |
◆ BTN0_PIN
◆ CC1200_CSN_GPIO
◆ CC1200_GPD0_GPIO
◆ CC1200_GPD2_GPIO
◆ CC1200_MISO_GPIO
◆ CC1200_MOSI_GPIO
◆ CC1200_RESET_GPIO
◆ CC1200_SCLK_GPIO
◆ CC1200_SPI_DEV
#define CC1200_SPI_DEV SSI0 |
◆ LED0_MASK
#define LED0_MASK (1 << 4) |
◆ LED0_OFF
#define LED0_OFF (GPIO_D->DATA &= ~LED0_MASK) |
◆ LED0_ON
#define LED0_ON (GPIO_D->DATA |= LED0_MASK) |
◆ LED0_PIN
◆ LED0_TOGGLE
#define LED0_TOGGLE (GPIO_D->DATA ^= LED0_MASK) |
◆ LED1_MASK
#define LED1_MASK (1 << 7) |
◆ LED1_OFF
◆ LED1_ON
◆ LED1_PIN
◆ LED1_TOGGLE
◆ LED2_MASK
#define LED2_MASK (1 << 6) |
◆ LED2_OFF
◆ LED2_ON
◆ LED2_PIN
◆ LED2_TOGGLE
◆ MTD_0
Default MTD device.
Definition at line 126 of file board.h.
◆ RF_SWITCH_2_4_GHZ
#define RF_SWITCH_2_4_GHZ gpio_clear(RF_SWITCH_GPIO) |
◆ RF_SWITCH_GPIO
◆ RF_SWITCH_SUB_GHZ
#define RF_SWITCH_SUB_GHZ gpio_set(RF_SWITCH_GPIO) |
◆ RF_SWITCH_TOGGLE
◆ SDCARD_SPI_PARAM_CLK
#define SDCARD_SPI_PARAM_CLK GPIO_PIN(2, 4) |
◆ SDCARD_SPI_PARAM_CS
#define SDCARD_SPI_PARAM_CS GPIO_PIN(0, 7) |
◆ SDCARD_SPI_PARAM_MISO
#define SDCARD_SPI_PARAM_MISO GPIO_PIN(2, 6) |
◆ SDCARD_SPI_PARAM_MOSI
#define SDCARD_SPI_PARAM_MOSI GPIO_PIN(2, 5) |
◆ SDCARD_SPI_PARAM_POWER
#define SDCARD_SPI_PARAM_POWER GPIO_PIN(0, 6) |
◆ SDCARD_SPI_PARAM_POWER_AH
#define SDCARD_SPI_PARAM_POWER_AH false |
◆ SDCARD_SPI_PARAM_SPI
#define SDCARD_SPI_PARAM_SPI SPI_DEV(1) |
◆ SHUTDOWN_EN_GPIO