Initialize the driver
Informative
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.