MKM34Z256VLx7 Bare Metal Software Drivers  R4.1.6
Reference Manual
LLWU Configuration Structures

Overview

This section describes default configuration structures for LLWU module. Create a new configuration structure if default ones don't initialize on-chip peripheral in required operating mode (see Creating Configuration Structure).

Macros

#define LLWU_MODULE_DISABLE_ALL_CONFIG
 Configures LLWU module with all wakeup sources disabled. More...
 
#define LLWU_MODULE_POSEDGE_ONLY_DETECT_CONFIG(pe_mask)
 Configures LLWU module with user selected posedge wakeup source(s) enabled. More...
 
#define LLWU_MODULE_NEGEDGE_ONLY_DETECT_CONFIG(ne_mask)
 Configures LLWU module with user selected negedge wakeup source(s) enabled. More...
 
#define LLWU_MODULE_ANYEDGE_ONLY_DETECT_CONFIG(pe_mask, ne_mask)
 Configures LLWU module with user selected posedge, negedge and any edge wakeup source(s) enabled. More...
 
#define LLWU_MODULE_PERIPH_ONLY_DETECT_CONFIG(per_mask)
 Configures LLWU module with user selected peripheral wakeup source(s) enabled. More...
 
#define LLWU_MODULE_POSEDGE_PERIPH_DETECT_CONFIG(pe_mask, per_mask)
 Configures LLWU module with user selected posedge and peripheral wakeup source(s) enabled. More...
 
#define LLWU_MODULE_NEGEDGE_PERIPH_DETECT_CONFIG(ne_mask, per_mask)
 Configures LLWU module with user selected negedge and peripheral wakeup source(s) enabled. More...
 
#define LLWU_MODULE_ANYEDGE_PERIPH_DETECT_CONFIG(pe_mask, ne_mask, per_mask)
 Configures LLWU module with user selected posedge, negedge, any edge and peripheral wakeup source(s) enabled. More...
 

Macro Definition Documentation

#define LLWU_MODULE_DISABLE_ALL_CONFIG
Value:
(tLLWU){ \
/* PE1 */ SET(LLWU_PE1_WUPE0 (0))|SET(LLWU_PE1_WUPE1 (0)) | \
/* ..... */ SET(LLWU_PE1_WUPE2 (0))|SET(LLWU_PE1_WUPE3 (0)), \
/* PE2 */ SET(LLWU_PE2_WUPE4 (0))|SET(LLWU_PE2_WUPE5 (0)) | \
/* ..... */ SET(LLWU_PE2_WUPE6 (0))|SET(LLWU_PE2_WUPE7 (0)), \
/* PE3 */ SET(LLWU_PE3_WUPE8 (0))|SET(LLWU_PE3_WUPE9 (0)) | \
/* ..... */ SET(LLWU_PE3_WUPE10(0))|SET(LLWU_PE3_WUPE11(0)), \
/* PE4 */ SET(LLWU_PE4_WUPE12(0))|SET(LLWU_PE4_WUPE13(0)) | \
/* ..... */ SET(LLWU_PE4_WUPE14(0))|SET(LLWU_PE4_WUPE15(0)), \
/* PE5 */ SET(LLWU_PE5_WUPE16(0))|SET(LLWU_PE5_WUPE17(0)) | \
/* ..... */ SET(LLWU_PE5_WUPE18(0))|SET(LLWU_PE5_WUPE19(0)), \
/* PE6 */ SET(LLWU_PE6_WUPE20(0))|SET(LLWU_PE6_WUPE21(0)) | \
/* ..... */ SET(LLWU_PE6_WUPE22(0))|SET(LLWU_PE6_WUPE23(0)), \
/* ME */ CLR(LLWU_ME_WUME0_MASK)|CLR(LLWU_ME_WUME1_MASK) | \
/* ..... */ CLR(LLWU_ME_WUME2_MASK)|CLR(LLWU_ME_WUME3_MASK) | \
/* ..... */ CLR(LLWU_ME_WUME4_MASK)|CLR(LLWU_ME_WUME5_MASK), \
/* FILT1 */ SET(LLWU_FILT1_FILTE(0))|SET(LLWU_FILT1_FILTSEL(0)), \
/* FILT2 */ SET(LLWU_FILT2_FILTE(0))|SET(LLWU_FILT2_FILTSEL(0)) \
}

This structure configures LLWU module with all wakeup sources disabled. Use it as a template for making your specific configuration.

#define LLWU_MODULE_POSEDGE_ONLY_DETECT_CONFIG (   pe_mask)

This structure configures LLWU module with user selected posedge, wakeup source(s) enabled.

Parameters
pe_maskSelect one or more OR'ed posedge external wakeup sources: LLWU_PTG6,LLWU_PTG2,LLWU_PTG1,LLWU_PTF6,LLWU_PTF0,LLWU_PTE6, LLWU_PTE5,LLWU_PTD7,LLWU_PTD6,LLWU_PTD4,LLWU_PTD2,LLWU_PTD0, LLWU_PTC5,LLWU_PTC3,LLWU_PTA6,LLWU_PTA4,LLWU_PTA0,LLWU_PTB1, LLWU_PTJ6,LLWU_PTK3,LLWU_PTF3,LLWU_PTI0,LLWU_PTI2,LLWU_PTL5.
#define LLWU_MODULE_NEGEDGE_ONLY_DETECT_CONFIG (   ne_mask)

This structure configures LLWU module with user selected negedge, wakeup source(s) enabled.

Parameters
ne_maskSelect one or more OR'ed negedge external wakeup sources: LLWU_PTG6,LLWU_PTG2,LLWU_PTG1,LLWU_PTF6,LLWU_PTF0,LLWU_PTE6, LLWU_PTE5,LLWU_PTD7,LLWU_PTD6,LLWU_PTD4,LLWU_PTD2,LLWU_PTD0, LLWU_PTC5,LLWU_PTC3,LLWU_PTA6,LLWU_PTA4,LLWU_PTA0,LLWU_PTB1, LLWU_PTJ6,LLWU_PTK3,LLWU_PTF3,LLWU_PTI0,LLWU_PTI2,LLWU_PTL5.
#define LLWU_MODULE_ANYEDGE_ONLY_DETECT_CONFIG (   pe_mask,
  ne_mask 
)

This structure configures LLWU module with user selected posedge, negedge and any edge wakeup source(s) enabled.

Parameters
pe_maskSelect one or more OR'ed posedge external wakeup sources: LLWU_PTG6,LLWU_PTG2,LLWU_PTG1,LLWU_PTF6,LLWU_PTF0,LLWU_PTE6, LLWU_PTE5,LLWU_PTD7,LLWU_PTD6,LLWU_PTD4,LLWU_PTD2,LLWU_PTD0, LLWU_PTC5,LLWU_PTC3,LLWU_PTA6,LLWU_PTA4,LLWU_PTA0,LLWU_PTB1, LLWU_PTJ6,LLWU_PTK3,LLWU_PTF3,LLWU_PTI0,LLWU_PTI2,LLWU_PTL5.
ne_maskSelect one or more OR'ed negedge external wakeup sources: LLWU_PTG6,LLWU_PTG2,LLWU_PTG1,LLWU_PTF6,LLWU_PTF0,LLWU_PTE6, LLWU_PTE5,LLWU_PTD7,LLWU_PTD6,LLWU_PTD4,LLWU_PTD2,LLWU_PTD0, LLWU_PTC5,LLWU_PTC3,LLWU_PTA6,LLWU_PTA4,LLWU_PTA0,LLWU_PTB1, LLWU_PTJ6,LLWU_PTK3,LLWU_PTF3,LLWU_PTI0,LLWU_PTI2,LLWU_PTL5.
Note
In order to setup external wakeup on any edge list the same source in both pe_mask and ne_mask parameters.
#define LLWU_MODULE_PERIPH_ONLY_DETECT_CONFIG (   per_mask)

This structure configures LLWU module with user selected user selected peripheral wakeup source(s) enabled.

Parameters
per_maskSelect one or more OR'ed internal peripheral wakeup sources: LLWU_LPTMR,LLWU_IRTC_ALM,LLWU_CMP0,LLWU_IRTC_IRQ,LLWU_CMP1, LLWU_CMP2.
#define LLWU_MODULE_POSEDGE_PERIPH_DETECT_CONFIG (   pe_mask,
  per_mask 
)

This structure configures LLWU module with user selected posedge and peripheral wakeup source(s) enabled.

Parameters
pe_maskSelect one or more OR'ed posedge external wakeup sources: LLWU_PTG6,LLWU_PTG2,LLWU_PTG1,LLWU_PTF6,LLWU_PTF0,LLWU_PTE6, LLWU_PTE5,LLWU_PTD7,LLWU_PTD6,LLWU_PTD4,LLWU_PTD2,LLWU_PTD0, LLWU_PTC5,LLWU_PTC3,LLWU_PTA6,LLWU_PTA4,LLWU_PTA0,LLWU_PTB1, LLWU_PTJ6,LLWU_PTK3,LLWU_PTF3,LLWU_PTI0,LLWU_PTI2,LLWU_PTL5.
per_maskSelect one or more OR'ed internal peripheral wakeup sources: LLWU_LPTMR,LLWU_IRTC_ALM,LLWU_CMP0,LLWU_IRTC_IRQ,LLWU_CMP1, LLWU_CMP2.
#define LLWU_MODULE_NEGEDGE_PERIPH_DETECT_CONFIG (   ne_mask,
  per_mask 
)

This structure configures LLWU module with user selected negedge and peripheral wakeup source(s) enabled.

Parameters
ne_maskSelect one or more OR'ed negedge external wakeup sources: LLWU_PTG6,LLWU_PTG2,LLWU_PTG1,LLWU_PTF6,LLWU_PTF0,LLWU_PTE6, LLWU_PTE5,LLWU_PTD7,LLWU_PTD6,LLWU_PTD4,LLWU_PTD2,LLWU_PTD0, LLWU_PTC5,LLWU_PTC3,LLWU_PTA6,LLWU_PTA4,LLWU_PTA0,LLWU_PTB1, LLWU_PTJ6,LLWU_PTK3,LLWU_PTF3,LLWU_PTI0,LLWU_PTI2,LLWU_PTL5.
per_maskSelect one or more OR'ed internal peripheral wakeup sources: LLWU_LPTMR,LLWU_IRTC_ALM,LLWU_CMP0,LLWU_IRTC_IRQ,LLWU_CMP1, LLWU_CMP2.
#define LLWU_MODULE_ANYEDGE_PERIPH_DETECT_CONFIG (   pe_mask,
  ne_mask,
  per_mask 
)

This structure configures LLWU module with user selected posedge, negedge, any edge and peripheral wakeup source(s) enabled.

Parameters
pe_maskSelect one or more OR'ed posedge external wakeup sources: LLWU_PTG6,LLWU_PTG2,LLWU_PTG1,LLWU_PTF6,LLWU_PTF0,LLWU_PTE6, LLWU_PTE5,LLWU_PTD7,LLWU_PTD6,LLWU_PTD4,LLWU_PTD2,LLWU_PTD0, LLWU_PTC5,LLWU_PTC3,LLWU_PTA6,LLWU_PTA4,LLWU_PTA0,LLWU_PTB1, LLWU_PTJ6,LLWU_PTK3,LLWU_PTF3,LLWU_PTI0,LLWU_PTI2,LLWU_PTL5.
ne_maskSelect one or more OR'ed negedge external wakeup sources: LLWU_PTG6,LLWU_PTG2,LLWU_PTG1,LLWU_PTF6,LLWU_PTF0,LLWU_PTE6, LLWU_PTE5,LLWU_PTD7,LLWU_PTD6,LLWU_PTD4,LLWU_PTD2,LLWU_PTD0, LLWU_PTC5,LLWU_PTC3,LLWU_PTA6,LLWU_PTA4,LLWU_PTA0,LLWU_PTB1, LLWU_PTJ6,LLWU_PTK3,LLWU_PTF3,LLWU_PTI0,LLWU_PTI2,LLWU_PTL5.
per_maskSelect one or more OR'ed internal peripheral wakeup sources: LLWU_LPTMR,LLWU_IRTC_ALM,LLWU_CMP0,LLWU_IRTC_IRQ,LLWU_CMP1, LLWU_CMP2.
Note
In order to setup external wakeup on any edge list the same source in both pe_mask and ne_mask parameters.