51 #define BSP_RADIO_BASE GPIO_PORT_TO_BASE(GPIO_D_NUM) 52 #define BSP_RADIO_INT GPIO_PIN_MASK(5) 53 #define BSP_RADIO_EXT GPIO_PIN_MASK(4) void antenna_internal(void)
Select the external (connector) antenna.
#define GPIO_WRITE_PIN(PORT_BASE, PIN_MASK, value)
Set pins with PIN_MASK of port with PORT_BASE to value.
Header file with register and macro declarations for the cc2538 GPIO module.
Header for the OpenMote-CC2538 antenna switch.
void antenna_external(void)
Select the internal (chip) antenna.
void antenna_init(void)
Initialize the antenna switch, by default it uses the external.
#define GPIO_SET_OUTPUT(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE to output.