![]() |
Kinetis SDK v.1.2 API Reference Manual
Rev. 0
Freescale Semiconductor, Inc.
|
The Kinetis SDK provides a HAL driver for the Low-Leakage Wakeup Unit (LLWU) block of Kinetis devices. The LLWU module allows the user to configure external wakeup pin and internal wakeup modules as wake-up source from low-leakage power modes.
Different platforms may have different wakeup pin assignments, please check reference manual for details. The external wakeup pin could be configured by the function LLWU_HAL_SetExternalInputPinMode().
After wakeup, there are flags indicate which external pin is the wakeup source, please use the function LLWU_HAL_GetExternalPinWakeupFlag() to check the external pin wakeup flags. The function LLWU_HAL_ClearExternalPinWakeupFlag() could clear the wakeup flags.
For external pin, there is pin filter, the function LLWU_HAL_SetPinFilterMode() configure the pin filter for specific pin and configure the filter mode.
Different platforms may have different wakeup module assignments, please check reference manual for details. The internal wakeup module could be enable/disable by the function LLWU_HAL_SetInternalModuleCmd().
After wakeup, there are flags indicate which module is the wakeup source, please use the function LLWU_HAL_GetInternalModuleWakeupFlag() to check the internal module wakeup flags. There is no API to clear internal wakeup module flags, please clear the wakeup source status directly.
The RESET pin can be configured as low-leakage mode exit source, the function LLWU_HAL_SetResetPinMode() set this feature, also the RESET pin filter could be configured by this function.
Files | |
file | fsl_llwu_hal.h |
Data Structures | |
struct | llwu_external_pin_filter_mode_t |
External input pin filter control structure. More... | |
struct | llwu_reset_pin_mode_t |
Reset pin control structure. More... | |
Enumerations | |
enum | llwu_external_pin_modes_t { kLlwuExternalPinDisabled, kLlwuExternalPinRisingEdge, kLlwuExternalPinFallingEdge, kLlwuExternalPinChangeDetect } |
External input pin control modes. More... | |
enum | llwu_filter_modes_t { kLlwuFilterDisabled, kLlwuFilterPosEdgeDetect, kLlwuFilterNegEdgeDetect, kLlwuFilterAnyEdgeDetect } |
Digital filter control modes. More... | |
struct llwu_external_pin_filter_mode_t |
Data Fields | |
llwu_filter_modes_t | filterMode |
Filter mode. | |
llwu_wakeup_pin_t | pinNumber |
Pin number. | |
struct llwu_reset_pin_mode_t |
enum llwu_filter_modes_t |