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