Initialize the Driver
How to bring the Port driver up. Binding rules: CHI-PORT-MUST-01 and CHI-PORT-MUST-02 in Port — Requirements; signatures in API Reference.
Bring the Driver Up
Port_Init(NULL_PTR); /* driver: UNINIT -> INIT */
configPtr must be NULL_PTR — the configuration variant is selected at build time, not
passed at runtime. Port_Init applies every configured pin’s function mode, direction,
and initial output value, and it does so glitch-free (the initialization order avoids
transient spikes, e.g. it does not change direction before the function mode is settled). It also
disables edge detection on every pin — enable it afterwards where you need it (see Edge Detection).
Note
The PortDrv has no de-init and is single-instance. It is brought up once, early in boot — typically right after the MCU clock tree — because other drivers depend on their pins being routed and configured.
See also
Reading and Writing Pins — reading, writing, and toggling pins; Edge Detection — pin-edge detection.