40 #include "ewm_hw_access.h"
72 uint8_t tempValue = 0U;
74 EWM_Type * base = s_ewmBase[instance];
77 isModuleEnabled = EWM_IsEnabled(base);
88 EWM_SetPrescaler(base, config->
prescaler);
116 EWM_SetControl(base, tempValue);
158 EWM_Type * base = s_ewmBase[instance];
180 const EWM_Type *
const base = s_ewmBase[instance];
ewm_in_assert_logic_t EWM_DRV_GetInputPinAssertLogic(uint32_t instance)
Get the Input pin assert logic.
void EWM_DRV_Refresh(uint32_t instance)
Refresh EWM. This method needs to be called within the window period specified by the Compare Low and...
#define EWM_INSTANCE_COUNT
#define EWM_CTRL_ASSIN_SHIFT
ewm_in_assert_logic_t assertLogic
static EWM_Type *const s_ewmBase[]
#define EWM_CTRL_ASSIN_MASK
#define EWM_CTRL_INEN_MASK
void INT_SYS_DisableIRQGlobal(void)
Disable system interrupt.
#define FEATURE_EWM_CMPL_MIN_VALUE
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
void INT_SYS_EnableIRQGlobal(void)
Enables system interrupt.
#define EWM_CTRL_EWMEN(x)
void EWM_DRV_GetDefaultConfig(ewm_init_config_t *config)
Init configuration structure to default values.
status_t EWM_DRV_Init(uint32_t instance, const ewm_init_config_t *config)
Init EWM. This method initializes EWM instance to the configuration from the passed structure...
#define FEATURE_EWM_CMPH_MAX_VALUE
#define EWM_CTRL_INTEN(x)