11#include "fsl_common.h"
25#define FSL_EWM_DRIVER_VERSION (MAKE_VERSION(2, 0, 3))
29#if defined(FSL_FEATURE_EWM_HAS_CLOCK_SELECT) && FSL_FEATURE_EWM_HAS_CLOCK_SELECT
30typedef enum _ewm_lpo_clock_source
32 kEWM_LpoClockSource0 = 0U,
33 kEWM_LpoClockSource1 = 1U,
34 kEWM_LpoClockSource2 = 2U,
35 kEWM_LpoClockSource3 = 3U,
36} ewm_lpo_clock_source_t;
50#if defined(FSL_FEATURE_EWM_HAS_CLOCK_SELECT) && FSL_FEATURE_EWM_HAS_CLOCK_SELECT
51 ewm_lpo_clock_source_t clockSource;
53#if defined(FSL_FEATURE_EWM_HAS_PRESCALER) && FSL_FEATURE_EWM_HAS_PRESCALER
84#if defined(__cplusplus)
161static inline void EWM_EnableInterrupts(
EWM_Type *base, uint32_t mask)
163 base->CTRL |= (uint8_t)mask;
176static inline void EWM_DisableInterrupts(
EWM_Type *base, uint32_t mask)
178 base->CTRL &= (uint8_t)(~mask);
196static inline uint32_t EWM_GetStatusFlags(
EWM_Type *base)
198 return ((uint32_t)base->CTRL & EWM_CTRL_EWMEN_MASK);
212#if defined(__cplusplus)
void EWM_Deinit(EWM_Type *base)
Deinitializes the EWM peripheral.
Definition: fsl_ewm.c:73
bool enableEwm
Definition: fsl_ewm.h:46
uint8_t compareLowValue
Definition: fsl_ewm.h:56
_ewm_status_flags_t
EWM status flags.
Definition: fsl_ewm.h:76
bool enableInterrupt
Definition: fsl_ewm.h:49
void EWM_GetDefaultConfig(ewm_config_t *config)
Initializes the EWM configuration structure.
Definition: fsl_ewm.c:103
bool setInputAssertLogic
Definition: fsl_ewm.h:48
bool enableEwmInput
Definition: fsl_ewm.h:47
uint8_t compareHighValue
Definition: fsl_ewm.h:57
void EWM_Refresh(EWM_Type *base)
Services the EWM.
Definition: fsl_ewm.c:131
_ewm_interrupt_enable_t
EWM interrupt configuration structure with default settings all disabled.
Definition: fsl_ewm.h:66
struct _ewm_config ewm_config_t
Describes EWM clock source.
void EWM_Init(EWM_Type *base, const ewm_config_t *config)
Initializes the EWM peripheral.
Definition: fsl_ewm.c:39
@ kEWM_RunningFlag
Definition: fsl_ewm.h:77
@ kEWM_InterruptEnable
Definition: fsl_ewm.h:67
Definition: MIMXRT1052.h:20382
Describes EWM clock source.
Definition: fsl_ewm.h:45
Definition: deflate.c:114