include/GPIO.h
/**
	 * Enables Pinmux and selects the specified function
	 * @param function Peripheral function to select. Best practice is to use one of the MUX_* Macros
	 */
Enables Pinmux and selects the specified function
@param function Peripheral function to select. Best practice is to use one of the MUX_* Macros
Enables Pinmux and selects the specified function @param function Peripheral function to select . Best practice is to use one of the MUX_ * Macros
void enablePeripheral(unsigned function)
	{
		if (pin & 1) {
			PORT->Group[port].PMUX[pin >> 1].bit.PMUXO = function;
		} else {
			PORT->Group[port].PMUX[pin >> 1].bit.PMUXE = function;
		}
		PORT->Group[port].PINCFG[pin].bit.PMUXEN = true;
	}
void enablePeripheral ( unsigned function ) { if ( pin & 1 ) { PORT -> Group [ port ] . PMUX [ pin >> 1 ] . bit . PMUXO = function ; } else { PORT -> Group [ port ] . PMUX [ pin >> 1 ] . bit . PMUXE = function ; } PORT -> Group [ port ] . PINCFG [ pin ] . bit . PMUXEN = true ; }
Enables Pinmux and selects the specified function
 @param function Peripheral function to select.
Enables Pinmux and selects the specified function @param function Peripheral function to select .
// Odd numbered pin // Even numbered pin