This example project will show user how to use and configure the basic functionalities of ICU (WKPU) + DIO (GPIO).
------------------------------------------------------------------------------
* Test HW: S32K396-BGA-DC1 (SCH-55517 Rev B2)
* MCU: S32K396
* IDE: S32DS3.5 & S32DS v3.6.x
* SDK release: RTD 6.0.0
* Debugger: PEMicro
* Target: internal_FLASH
------------------------------------------------------------------------------
This example routine configures the WKPU unit for a GPIO interrupt wake-up. This is the simplest WKPU example. Pin PTB19 (WKPU42) is configured for wake-up.
The routine waits for SW8 to be pressed, then turns off LED1, and:
- Switches core clock to FIRC (Mode C Boot default from Table 125.).
- Initializes the WKPU instance.
- Configures WKPU42 (SW4).
- Enters standby (or fast standby).
After pressing SW4, MCU wakes up, resets and polls for SW8 to be pressed again.
If FAST_STANDBY is selected, Wkup_FastWkupBootAddress() is entered and both LED2 & LED3 blink before jumping to reset handler for full initialization.
This example is provided as is with no guarantees and no support.