1.2.17.18 1.3.19.18 1.4.17.18 1.5.18.18 1.29.18.18 1.30.13.18 1.31.13.18 1.32.20.18 1.33.13.18 1.37.14.18 1.38.17.18 1.39.14.18 1.40.16.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.