The MCUXpresso SDK provides a peripheral driver for the General Power Controller (GPC) module of MCUXpresso SDK devices.
API functions are provided to configure the system about working in dedicated power mode. There are mainly about enabling the power for memory, enabling the wakeup sources for STOP modes, and power up/down operations for various peripherals.
| void GPC_EnableIRQ |
( |
GPC_Type * |
base, |
|
|
uint32_t |
irqId |
|
) |
| |
- Parameters
-
| base | GPC peripheral base address. |
| irqId | ID number of IRQ to be enabled, available range is 32-159. 0-31 is available in some platforms. |
| void GPC_DisableIRQ |
( |
GPC_Type * |
base, |
|
|
uint32_t |
irqId |
|
) |
| |
- Parameters
-
| base | GPC peripheral base address. |
| irqId | ID number of IRQ to be disabled, available range is 32-159. 0-31 is available in some platforms. |
| bool GPC_GetIRQStatusFlag |
( |
GPC_Type * |
base, |
|
|
uint32_t |
irqId |
|
) |
| |
- Parameters
-
| base | GPC peripheral base address. |
| irqId | ID number of IRQ to be enabled, available range is 32-159. 0-31 is available in some platforms. |
- Returns
- Indicated IRQ/Event is asserted or not.
| static void GPC_RequestMEGAPowerOn |
( |
GPC_Type * |
base, |
|
|
bool |
enable |
|
) |
| |
|
inlinestatic |
- Parameters
-
| base | GPC peripheral base address. |
| enable | Enable the power on sequence, or the power down sequence. |