MKM34Z256VLx7 Bare Metal Software Drivers  R4.1.6
Reference Manual
LLWU API Specification

Overview

This section describes functions and macros of the driver's API.

Macros

#define LLWU_ClrFlags(mask)
 Clears wakeup flag(s) indicated by an input mask. More...
 
#define LLWU_Init(cfg, ip, callback)
 LLWU initialization. More...
 

Functions

static uint32 LLWU_GetFlags (void)
 Returns flag(s) indicating which internal wakeup source caused the MCU to exit VLLS mode. More...
 

Macro Definition Documentation

#define LLWU_ClrFlags (   mask)

This macro clears wakeup flag(s) indicated by an input mask.

Parameters
maskSelect one or more OR'ed LLWU Wakeup Flags.
Note
Implemented as an inline macro.
See also
LLWU_GetFlags
#define LLWU_Init (   cfg,
  ip,
  callback 
)

This function initializes LLWU module. Wakeup sources shall be configured by the user in configuration structure LLWU Configuration Structures. Function also installs callback function for interrupt vector 28 (LLWU).

Parameters
cfgSelect one of the LLWU Configuration Structures.
ipSelect one of the ARM Cortex-M0+ Interrupt Priority Levels.
callbackPointer to the LLWU Callback Function.
Note
Implemented as a function call.
Warning
After enabling an external pin filter or changing the source pin, wait at least 5 LPO clock cycles before entering VLLSx mode to allow the filter to initialize.

Function Documentation

static uint32 LLWU_GetFlags ( void  )
inlinestatic

This macro returns flag(s) indicating which internal wakeup source caused the MCU to exit VLLS mode.

Returns
uint32 Mask formed of the LLWU Wakeup Flags.
Note
Implemented as an inline macro. Flags associated with on-chip peripherals, external input pins, filtered and unfiltered, must be cleared by software prior to entry to VLLSx mode.
See also
LLWU_ClrFlags()