| Kinetis SDK v.2.0 API Reference Manual Rev. 0 Freescale Semiconductor, Inc.

- Main Page
- Related Pages
- API Reference

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Files | Enumerations
LLWU: Low-Leakage Wakeup Unit Driver

## Overview

The KSDK provides a Peripheral driver for the Low-Leakage Wakeup Unit (LLWU) module of Kinetis devices. The LLWU module allows the user to select external pin sources and internal modules as a wake-up source from low-leakage power modes.

# External wakeup pins configurations

Configures the external wakeup pins' working modes, gets and clears the wake pin flags. External wakeup pins are accessed by `pinIndex` which is started from 1. Numbers of external pins depend on the SoC configuration.

# Internal wakeup modules configurations

Enables/disables the internal wakeup modules, and gets the modules flags. Internal modules are accessed by `moduleIndex` which is started from 1. Numbers of external pins depend the on SoC configuration.

# Digital pin filter for external wakeup pin configurations

Configures the digital pin filter of the external wakeup pins' working modes, gets and clears the pin filter flags. Digital pins filters are accessed by `filterIndex` which is started from 1. Numbers of external pins depends on the SoC configuration.

## Files
file | fsl_llwu.h

## Enumerations
enum | llwu_external_pin_mode_t { kLLWU_ExternalPinDisable = 0U, kLLWU_ExternalPinRisingEdge = 1U, kLLWU_ExternalPinFallingEdge = 2U, kLLWU_ExternalPinAnyEdge = 3U }
| External input pin control modes. More...
enum | llwu_pin_filter_mode_t { kLLWU_PinFilterDisable = 0U, kLLWU_PinFilterRisingEdge = 1U, kLLWU_PinFilterFallingEdge = 2U, kLLWU_PinFilterAnyEdge = 3U }
| Digital filter control modes. More...

## Driver version
#define | FSL_LLWU_DRIVER_VERSION (MAKE_VERSION(2, 0, 1))
| LLWU driver version 2.0.1. More...

## Macro Definition Documentation

#define FSL_LLWU_DRIVER_VERSION (MAKE_VERSION(2, 0, 1))

## Enumeration Type Documentation

enum llwu_external_pin_mode_t

Enumerator
kLLWU_ExternalPinDisable | Pin disabled as wakeup input.
kLLWU_ExternalPinRisingEdge | Pin enabled with rising edge detection.
kLLWU_ExternalPinFallingEdge | Pin enabled with falling edge detection.
kLLWU_ExternalPinAnyEdge | Pin enabled with any change detection.

enum llwu_pin_filter_mode_t

Enumerator
kLLWU_PinFilterDisable | Filter disabled.
kLLWU_PinFilterRisingEdge | Filter positive edge detection.
kLLWU_PinFilterFallingEdge | Filter negative edge detection.
kLLWU_PinFilterAnyEdge | Filter any edge detection.