Kinetis SDK v.1.3 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 a wakeup source from low-leakage power modes.
Different platforms may have different wakeup pin assignments. Check the reference manual for details. The external wakeup pin can be configured with the function LLWU_HAL_SetExternalInputPinMode().
After wakeup, flags indicate which external pin is the wakeup source. Use the function LLWU_HAL_GetExternalPinWakeupFlag() to check the external pin wakeup flags. The function LLWU_HAL_ClearExternalPinWakeupFlag() clearss the wakeup flags.
For external pins, there is the pin filter. The function LLWU_HAL_SetPinFilterMode() configures the pin filter for a specific pin and configures the filter mode.
Different platforms may have different wakeup module assignments. Check the reference manual for details. The internal wakeup module can be enabled/disabled with the function LLWU_HAL_SetInternalModuleCmd().
After wakeup, flags indicate which module is the wakeup source. Use the function LLWU_HAL_GetInternalModuleWakeupFlag() to check the internal module wakeup flags. There is no API to clear internal wakeup module flags. Clear the wakeup source status directly.
The RESET pin can be configured as a low-leakage mode exit source. The function LLWU_HAL_SetResetPinMode() sets this feature and configures the RESET pin filter.
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 |