Usage
To configure the pin multiplexing function, follow the steps below:
Turn off the SWD or enable audio pad share if the pin default function is SWD or audio, and configure it to other functions.
Pinmux_Swdoff(); HAL_WRITE32(PINMUX_REG_BASE, REG_PAD_AUD_PAD_CTRL, 0x1FFFFF);
Turn off the SWD if the pin default function is SWD, and configure it to other functions.
Pinmux_Swdoff();
Configure pinmux function.
Pinmux_Config(u8 PinName, u32 PinFunc);
Set pin pull type.
PAD_PullCtrl(u8 PinName, u8 PullType); //normal mode PAD_SleepPullCtrl(u8 PinName, u8 PullType); //sleep and deep-sleep mode
Set driving strength if needed.
PAD_DrvStrength(u8 PinName, u32 DrvStrength);