| Kinetis SDK Demo Applications User Guide 1.0.0-beta Freescale Semiconductor, Inc.

- Main Page
- Related Pages
- Demos

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
llwu_MK22F51212.c File Reference
`#include <stdio.h>`
`#include "fsl_uart_hal.h"`
`#include "clock/fsl_clock_manager.h"`
`#include "gpio_pins.h"`
`#include "low_power_demo.h"`

## Functions
void | llwu_configure (uint32_t pinEn, uint8_t riseFall, uint8_t moduleEn)
| Set up the LLWU for wakeup the MCU from LLS and VLLSx modes from the selected pin or module. More...

## Variables
uint8_t | uartEnabled

## Function Documentation

void llwu_configure | ( | uint32_t | pinEn,
|  | uint8_t | riseFall,
|  | uint8_t | moduleEn
| ) |  |

Parameters

  pin_en | - unsigned integer, bit position indicates the pin is enabled. More than one bit can be set to enable more than one pin at a time.
  rise_fall | - 0x00 = External input disabled as wakeup 0x01 - External input enabled as rising edge detection 0x02 - External input enabled as falling edge detection 0x03 - External input enablge as any edge detection
  module_en | - unsigned char, bit position indicates the module is enabled. More than one bit can be set to enabled more than one module

for example: if bit 0 and 1 need to be enabled as rising edge detect call this routine with pin_en = 0x0003 and rise_fall = 0x02

Note: to set up one set of pins for rising and another for falling, 2 calls to this function are required, 1st for rising then the second for falling.

## Variable Documentation

uint8_t uartEnabled

indicates whether the uart port is currently enabled or not