This is the quick start guide for the PMIC driver and the closely related global interrupt driver, with step-by-step instructions on how to configure and use the drivers in a selection of use cases.
The use cases contain several code fragments. The code fragments in the steps for setup can be copied into a custom initialization function, while the steps for usage can be copied into, e.g., the main application function.
In this basic use case, the PMIC is configured for:
This will allow for interrupts from other modules being used.
For the setup code of this use case to work, the following must be added to the project:
Add to the initialization code:
For more advanced use of the PMIC driver, see the following use cases: