/* Initialize the 2.4GHz Radio Frequency SW-controlled Switch. 
The Re-Mote features an on-board RF switch to programatically select to enable either the internal ceramic antenna, or an external antenna over an uFL connector. As default we prefer to use the internal one.  */
static void rf_switch_init(void)
/* Initialize the 2.4GHz Radio Frequency SW-controlled Switch. 
The Re-Mote features an on-board RF switch to programatically select to enable either the internal ceramic antenna, or an external antenna over an uFL connector. As default we prefer to use the internal one.  */
static void rf_switch_init(void)
{
    RF_SWITCH_PORT->AFSEL &= ~(1 << RF_SWITCH_PIN);
    RF_SWITCH_PORT->DIR |= (1 << RF_SWITCH_PIN);
    IOC->PC_OVER[RF_SWITCH_PIN] = IOC_OVERRIDE_OE;
    RF_SWITCH_INTERNAL;
}