Call this function to set a pin function.
Note: If the access isn't permitted this function returns an error code.
Prototype
XStatus XPm_PinCtrlSetFunction(const u32 pin, const enum XPmPinFn fn);
Parameters
The following table lists the XPm_PinCtrlSetFunction
function arguments.
Type | Name | Description |
---|---|---|
const u32 | pin | Pin identifier |
const enum
XPmPinFn
|
fn | Pin function to be set |