36 #include "ftm_hw_access.h"
69 FTM_DRV_ClearTimerOverflow(ftmBase);
74 FTM_DRV_SetQuadDecoderCmd(ftmBase,
false);
78 FTM_DRV_SetChnEdgeLevel(ftmBase, channel, 0U);
84 FTM_DRV_SetCpwms(ftmBase,
false);
88 FTM_DRV_SetCpwms(ftmBase,
true);
status_t FTM_DRV_CounterStop(uint32_t instance)
Stops the FTM counter.
FlexTimer state structure of the driver.
ftm_state_t * ftmStatePtr[(2u)]
Pointer to runtime state structure.
#define FEATURE_FTM_CHANNEL_COUNT
FlexTimer driver timer mode configuration structure.
ftm_clock_source_t ftmClockSource
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
#define FTM_INSTANCE_COUNT
status_t FTM_DRV_CounterStart(uint32_t instance)
Starts the FTM counter.
ftm_config_mode_t ftmMode
uint32_t FTM_DRV_CounterRead(uint32_t instance)
Reads back the current value of the FTM counter.
status_t FTM_DRV_InitCounter(uint32_t instance, const ftm_timer_param_t *timer)
Initialize the FTM counter.
uint32_t ftmSourceClockFrequency
static uint16_t FTM_DRV_GetCounter(const FTM_Type *ftmBase)
Returns the FTM peripheral current counter value.
FTM_Type *const g_ftmBase[(2u)]
Table of base addresses for FTM instances.