1.4.17.18 PORT_PinPeripheralFunctionConfig Function
C
void PORT_PinPeripheralFunctionConfig(PORT_PIN pin, PERIPHERAL_FUNCTION function)
Summary
Configures the peripheral function on the selected port pin
Description
This function configures the given peripheral function on the selected port pin.
Precondition
The PORT_Initialize() function should have been called.
Parameters
Param | Description |
---|---|
pin | One of the IO port pin from the enum PORT_PIN |
function | One of the peripheral functions from the enum PERIPHERAL_FUNCTION |
Returns
None.
Example
// Enable Peripheral function B on port pin PB01
PORT_PinPeripheralFunctionConfig(PORT_PIN_PB01, PERIPHERAL_FUNCTION_B);
Remarks
None.