Home
last modified time | relevance | path

Searched defs:timer (Results 1 – 8 of 8) sorted by relevance

/trusted-firmware-m-latest/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/
Dtimer_pwm.h151 #define TPWM_ENABLE_PWM_MODE(timer) \ argument
173 #define TPWM_DISABLE_PWM_MODE(timer) \ argument
196 #define TPWM_ENABLE_INDEPENDENT_MODE(timer) ((timer)->PWMCTL &= ~(1ul << TIMER_PWMCTL_OUTMODE_P… argument
209 #define TPWM_ENABLE_COMPLEMENTARY_MODE(timer) ((timer)->PWMCTL |= (1 << TIMER_PWMCTL_OUTMODE_Pos)) argument
226 #define TPWM_SET_COUNTER_TYPE(timer, type) ((timer)->PWMCTL = ((timer)->PWMCTL & ~TIMER_PWMCTL… argument
238 #define TPWM_START_COUNTER(timer) ((timer)->PWMCTL |= TIMER_PWMCTL_CNTEN_Msk) argument
250 #define TPWM_STOP_COUNTER(timer) ((timer)->PWMPERIOD = 0x0) argument
267 #define TPWM_SET_PRESCALER(timer, prescaler) ((timer)->PWMCLKPSC = (prescaler)) argument
279 #define TPWM_GET_PRESCALER(timer) ((timer)->PWMCLKPSC) argument
293 #define TPWM_SET_PERIOD(timer, period) ((timer)->PWMPERIOD = (period)) argument
[all …]
Dtimer.h100 #define TIMER_SET_CMP_VALUE(timer, u32Value) ((timer)->CMP = (u32Value)) argument
114 #define TIMER_SET_PRESCALE_VALUE(timer, u32Value) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_PSC_… argument
127 #define TIMER_IS_ACTIVE(timer) ((((timer)->CTL & TIMER_CTL_ACTSTS_Msk) == TIME… argument
142 #define TIMER_SELECT_TOUT_PIN(timer, u32ToutSel) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_TGLP… argument
157 #define TIMER_SET_OPMODE(timer, u32OpMode) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_OPMODE_Msk)… argument
198 __STATIC_INLINE void TIMER_Start(TIMER_T *timer) in TIMER_Start()
212 __STATIC_INLINE void TIMER_Stop(TIMER_T *timer) in TIMER_Stop()
228 __STATIC_INLINE void TIMER_EnableWakeup(TIMER_T *timer) in TIMER_EnableWakeup()
242 __STATIC_INLINE void TIMER_DisableWakeup(TIMER_T *timer) in TIMER_DisableWakeup()
256 __STATIC_INLINE void TIMER_StartCapture(TIMER_T *timer) in TIMER_StartCapture()
[all …]
/trusted-firmware-m-latest/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/
Dtimer.h79 #define TIMER_SET_CMP_VALUE(timer, u32Value) ((timer)->CMP = (u32Value)) argument
93 #define TIMER_SET_PRESCALE_VALUE(timer, u32Value) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_PSC_… argument
106 #define TIMER_IS_ACTIVE(timer) (((timer)->CTL & TIMER_CTL_ACTSTS_Msk)? 1 : 0) argument
121 #define TIMER_SELECT_TOUT_PIN(timer, u32ToutSel) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_TGLP… argument
162 __STATIC_INLINE void TIMER_Start(TIMER_T *timer) in TIMER_Start()
176 __STATIC_INLINE void TIMER_Stop(TIMER_T *timer) in TIMER_Stop()
192 __STATIC_INLINE void TIMER_EnableWakeup(TIMER_T *timer) in TIMER_EnableWakeup()
206 __STATIC_INLINE void TIMER_DisableWakeup(TIMER_T *timer) in TIMER_DisableWakeup()
220 __STATIC_INLINE void TIMER_StartCapture(TIMER_T *timer) in TIMER_StartCapture()
234 __STATIC_INLINE void TIMER_StopCapture(TIMER_T *timer) in TIMER_StopCapture()
[all …]
Dtimer_pwm.h150 #define TPWM_ENABLE_PWM_MODE(timer) ((timer)->ALTCTL = (1 << TIMER_ALTCTL_FUNCSEL_Pos)) argument
163 #define TPWM_DISABLE_PWM_MODE(timer) ((timer)->ALTCTL = (0 << TIMER_ALTCTL_FUNCSEL_Pos)) argument
175 #define TPWM_ENABLE_INDEPENDENT_MODE(timer) ((timer)->PWMCTL &= ~(1ul << TIMER_PWMCTL_OUTMODE_P… argument
187 #define TPWM_ENABLE_COMPLEMENTARY_MODE(timer) ((timer)->PWMCTL |= (1 << TIMER_PWMCTL_OUTMODE_Pos)) argument
203 #define TPWM_SET_COUNTER_TYPE(timer, type) ((timer)->PWMCTL = ((timer)->PWMCTL & ~TIMER_PWMCTL… argument
215 #define TPWM_START_COUNTER(timer) ((timer)->PWMCTL |= TIMER_PWMCTL_CNTEN_Msk) argument
227 #define TPWM_STOP_COUNTER(timer) ((timer)->PWMPERIOD = 0x0) argument
242 #define TPWM_SET_PRESCALER(timer, prescaler) ((timer)->PWMCLKPSC = (prescaler)) argument
254 #define TPWM_GET_PRESCALER(timer) ((timer)->PWMCLKPSC) argument
268 #define TPWM_SET_PERIOD(timer, period) ((timer)->PWMPERIOD = (period)) argument
[all …]
/trusted-firmware-m-latest/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/
Dtimer_pwm.c40 void TPWM_SetCounterClockSource(TIMER_T *timer, uint32_t u32CntClkSrc) in TPWM_SetCounterClockSource()
56 static uint32_t TPWM_GetModuleClockFreq(TIMER_T *timer) in TPWM_GetModuleClockFreq()
123 uint32_t TPWM_ConfigOutputFreqAndDuty(TIMER_T *timer, uint32_t u32Frequency, uint32_t u32DutyCycle) in TPWM_ConfigOutputFreqAndDuty()
196 void TPWM_EnableDeadTime(TIMER_T *timer, uint32_t u32DTCount) in TPWM_EnableDeadTime()
213 void TPWM_EnableDeadTimeWithPrescale(TIMER_T *timer, uint32_t u32DTCount) in TPWM_EnableDeadTimeWithPrescale()
229 void TPWM_DisableDeadTime(TIMER_T *timer) in TPWM_DisableDeadTime()
243 void TPWM_EnableCounter(TIMER_T *timer) in TPWM_EnableCounter()
257 void TPWM_DisableCounter(TIMER_T *timer) in TPWM_DisableCounter()
280 void TPWM_EnableTriggerADC(TIMER_T *timer, uint32_t u32Condition) in TPWM_EnableTriggerADC()
294 void TPWM_DisableTriggerADC(TIMER_T *timer) in TPWM_DisableTriggerADC()
[all …]
Dtimer.c42 uint32_t TIMER_Open(TIMER_T *timer, uint32_t u32Mode, uint32_t u32Freq) in TIMER_Open()
75 void TIMER_Close(TIMER_T *timer) in TIMER_Close()
93 void TIMER_Delay(TIMER_T *timer, uint32_t u32Usec) in TIMER_Delay()
176 void TIMER_EnableCapture(TIMER_T *timer, uint32_t u32CapMode, uint32_t u32Edge) in TIMER_EnableCapture()
191 void TIMER_DisableCapture(TIMER_T *timer) in TIMER_DisableCapture()
210 void TIMER_EnableEventCounter(TIMER_T *timer, uint32_t u32Edge) in TIMER_EnableEventCounter()
225 void TIMER_DisableEventCounter(TIMER_T *timer) in TIMER_DisableEventCounter()
240 uint32_t TIMER_GetModuleClock(TIMER_T *timer) in TIMER_GetModuleClock()
310 void TIMER_EnableFreqCounter(TIMER_T *timer, in TIMER_EnableFreqCounter()
362 void TIMER_DisableFreqCounter(TIMER_T *timer) in TIMER_DisableFreqCounter()
[all …]
/trusted-firmware-m-latest/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/
Dtimer_pwm.c39 void TPWM_SetCounterClockSource(TIMER_T *timer, uint32_t u32CntClkSrc) in TPWM_SetCounterClockSource()
56 uint32_t TPWM_ConfigOutputFreqAndDuty(TIMER_T *timer, uint32_t u32Frequency, uint32_t u32DutyCycle) in TPWM_ConfigOutputFreqAndDuty()
119 void TPWM_EnableDeadTime(TIMER_T *timer, uint32_t u32DTCount) in TPWM_EnableDeadTime()
135 void TPWM_EnableDeadTimeWithPrescale(TIMER_T *timer, uint32_t u32DTCount) in TPWM_EnableDeadTimeWithPrescale()
150 void TPWM_DisableDeadTime(TIMER_T *timer) in TPWM_DisableDeadTime()
164 void TPWM_EnableCounter(TIMER_T *timer) in TPWM_EnableCounter()
178 void TPWM_DisableCounter(TIMER_T *timer) in TPWM_DisableCounter()
198 void TPWM_EnableTriggerADC(TIMER_T *timer, uint32_t u32Condition) in TPWM_EnableTriggerADC()
212 void TPWM_DisableTriggerADC(TIMER_T *timer) in TPWM_DisableTriggerADC()
252 void TPWM_EnableFaultBrake(TIMER_T *timer, uint32_t u32CH0Level, uint32_t u32CH1Level, uint32_t u32… in TPWM_EnableFaultBrake()
[all …]
Dtimer.c42 uint32_t TIMER_Open(TIMER_T *timer, uint32_t u32Mode, uint32_t u32Freq) in TIMER_Open()
75 void TIMER_Close(TIMER_T *timer) in TIMER_Close()
93 void TIMER_Delay(TIMER_T *timer, uint32_t u32Usec) in TIMER_Delay()
176 void TIMER_EnableCapture(TIMER_T *timer, uint32_t u32CapMode, uint32_t u32Edge) in TIMER_EnableCapture()
191 void TIMER_DisableCapture(TIMER_T *timer) in TIMER_DisableCapture()
210 void TIMER_EnableEventCounter(TIMER_T *timer, uint32_t u32Edge) in TIMER_EnableEventCounter()
225 void TIMER_DisableEventCounter(TIMER_T *timer) in TIMER_DisableEventCounter()
240 uint32_t TIMER_GetModuleClock(TIMER_T *timer) in TIMER_GetModuleClock()
305 void TIMER_EnableFreqCounter(TIMER_T *timer, in TIMER_EnableFreqCounter()
349 void TIMER_DisableFreqCounter(TIMER_T *timer) in TIMER_DisableFreqCounter()
[all …]