CTL_STATUS_t platform_lock_pin_configuration(const PLATFORM_PIN_CONFIGURATION_t *config);

platform_lock_pin_configuration iterates over the list of pins pins and attempts to raise the claim on each entry's pin to PIN_CLAIM_LOCKED If the underlying microcontroller implements pin locks, the Platform Library may take advantage of this and hardware-lock the pin in addition to locking it in software.

The pin list pins must be terminated by PLATFORM_END_OF_LIST in the pin member of the final PLATFORM_PIN_CONFIGURATION_t. If a pin cannot be locked, platform_lock_pin_configuration immediately returns the status.

Return Value

platform_lock_pin_configuration returns a standard status code.

See Also