47 #include "contiki-conf.h"
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_init(void)
Initialize the antenna switch, by default it uses the external.
#define GPIO_WRITE_PIN(PORT_BASE, PIN_MASK, value)
Set pins with PIN_MASK of port with PORT_BASE to value.
void antenna_internal(void)
Select the external (connector) antenna.
#define GPIO_SET_OUTPUT(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE to output.
void antenna_external(void)
Select the internal (chip) antenna.
Header for the OpenMote-CC2538 antenna switch.