Kinetis SDK v.1.3 API Reference Manual  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Low-Leakage Wakeup Unit (LLWU)

Overview

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.

External Wakeup Pin APIs

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.

Internal Wakeup Module APIs

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.

Reset Pin Configure APIs

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...
 

Data Structure Documentation

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

Data Fields

bool enable
 RESET pin is enabled as low-leakage mode exit source. More...
 
bool filter
 Digital filter on RESET pin. More...
 

Field Documentation

bool llwu_reset_pin_mode_t::enable
bool llwu_reset_pin_mode_t::filter

Enumeration Type Documentation

Enumerator
kLlwuExternalPinDisabled 

Pin disabled as wakeup input.

kLlwuExternalPinRisingEdge 

Pin enabled with rising edge detection.

kLlwuExternalPinFallingEdge 

Pin enabled with falling edge detection.

kLlwuExternalPinChangeDetect 

Pin enabled with any change detection.

Enumerator
kLlwuFilterDisabled 

Filter disabled.

kLlwuFilterPosEdgeDetect 

Filter positive edge detection.

kLlwuFilterNegEdgeDetect 

Filter negative edge detection.

kLlwuFilterAnyEdgeDetect 

Filter any edge detection.