Home
last modified time | relevance | path

Searched refs:TIMER_T (Results 1 – 14 of 14) sorted by relevance

/trusted-firmware-m-latest/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/
Dtimer.h128 __STATIC_INLINE void TIMER_Start(TIMER_T *timer);
129 __STATIC_INLINE void TIMER_Stop(TIMER_T *timer);
130 __STATIC_INLINE void TIMER_EnableWakeup(TIMER_T *timer);
131 __STATIC_INLINE void TIMER_DisableWakeup(TIMER_T *timer);
132 __STATIC_INLINE void TIMER_StartCapture(TIMER_T *timer);
133 __STATIC_INLINE void TIMER_StopCapture(TIMER_T *timer);
134 __STATIC_INLINE void TIMER_EnableCaptureDebounce(TIMER_T *timer);
135 __STATIC_INLINE void TIMER_DisableCaptureDebounce(TIMER_T *timer);
136 __STATIC_INLINE void TIMER_EnableEventCounterDebounce(TIMER_T *timer);
137 __STATIC_INLINE void TIMER_DisableEventCounterDebounce(TIMER_T *timer);
[all …]
Dtimer_pwm.h713 void TPWM_SetCounterClockSource(TIMER_T *timer, uint32_t u32CntClkSrc);
714 uint32_t TPWM_ConfigOutputFreqAndDuty(TIMER_T *timer, uint32_t u32Frequency, uint32_t u32DutyCycle);
715 void TPWM_EnableDeadTime(TIMER_T *timer, uint32_t u32DTCount);
716 void TPWM_EnableDeadTimeWithPrescale(TIMER_T *timer, uint32_t u32DTCount);
717 void TPWM_DisableDeadTime(TIMER_T *timer);
718 void TPWM_EnableCounter(TIMER_T *timer);
719 void TPWM_DisableCounter(TIMER_T *timer);
720 void TPWM_EnableTriggerADC(TIMER_T *timer, uint32_t u32Condition);
721 void TPWM_DisableTriggerADC(TIMER_T *timer);
722 void TPWM_EnableFaultBrake(TIMER_T *timer, uint32_t u32CH0Level, uint32_t u32CH1Level, uint32_t u32…
[all …]
/trusted-firmware-m-latest/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/
Dtimer.h164 __STATIC_INLINE void TIMER_Start(TIMER_T *timer);
165 __STATIC_INLINE void TIMER_Stop(TIMER_T *timer);
166 __STATIC_INLINE void TIMER_EnableWakeup(TIMER_T *timer);
167 __STATIC_INLINE void TIMER_DisableWakeup(TIMER_T *timer);
168 __STATIC_INLINE void TIMER_StartCapture(TIMER_T *timer);
169 __STATIC_INLINE void TIMER_StopCapture(TIMER_T *timer);
170 __STATIC_INLINE void TIMER_EnableCaptureDebounce(TIMER_T *timer);
171 __STATIC_INLINE void TIMER_DisableCaptureDebounce(TIMER_T *timer);
172 __STATIC_INLINE void TIMER_EnableEventCounterDebounce(TIMER_T *timer);
173 __STATIC_INLINE void TIMER_DisableEventCounterDebounce(TIMER_T *timer);
[all …]
Dtimer_pwm.h844 void TPWM_SetCounterClockSource(TIMER_T *timer, uint32_t u32CntClkSrc);
845 uint32_t TPWM_ConfigOutputFreqAndDuty(TIMER_T *timer, uint32_t u32Frequency, uint32_t u32DutyCycle);
846 void TPWM_EnableDeadTime(TIMER_T *timer, uint32_t u32DTCount);
847 void TPWM_EnableDeadTimeWithPrescale(TIMER_T *timer, uint32_t u32DTCount);
848 void TPWM_DisableDeadTime(TIMER_T *timer);
849 void TPWM_EnableCounter(TIMER_T *timer);
850 void TPWM_DisableCounter(TIMER_T *timer);
851 void TPWM_EnableTriggerADC(TIMER_T *timer, uint32_t u32Condition);
852 void TPWM_DisableTriggerADC(TIMER_T *timer);
853 void TPWM_EnableTriggerPDMA(TIMER_T *timer, uint32_t u32Condition);
[all …]
/trusted-firmware-m-latest/platform/ext/target/nuvoton/common/native_drivers/
Dtimer_cmsdk_drv.c24 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in timer_cmsdk_init()
44 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in timer_cmsdk_enable_external_input()
50 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in timer_cmsdk_disable_external_input()
56 return ((((TIMER_T*)dev->cfg->base)->EXTCTL & TIMER_EXTCTL_CAPEN_Msk) != 0); in timer_cmsdk_is_external_input_enabled()
61 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in timer_cmsdk_set_clock_to_internal()
67 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in timer_cmsdk_set_clock_to_external()
73 return ((((TIMER_T *)dev->cfg->base)->CTL & TIMER_CTL_EXTCNTEN_Msk) != 0); in timer_cmsdk_is_clock_external()
78 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in timer_cmsdk_enable()
84 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in timer_cmsdk_disable()
90 return ((((TIMER_T *)dev->cfg->base)->CTL & TIMER_CTL_CNTEN_Msk) != 0); in timer_cmsdk_is_enabled()
[all …]
Dtimer_cmsdk.c47 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in cmsdk_timer_init()
66 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in cmsdk_timer_enable_external_input()
72 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in cmsdk_timer_disable_external_input()
78 return ((((TIMER_T*)dev->cfg->base)->EXTCTL & TIMER_EXTCTL_CAPEN_Msk) != 0); in cmsdk_timer_is_external_input_enabled()
83 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in cmsdk_timer_set_clock_to_internal()
89 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in cmsdk_timer_set_clock_to_external()
95 return ((((TIMER_T *)dev->cfg->base)->CTL & TIMER_CTL_EXTCNTEN_Msk) != 0); in cmsdk_timer_is_clock_external()
100 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in cmsdk_timer_enable()
106 TIMER_T* tmr = (TIMER_T*)dev->cfg->base; in cmsdk_timer_disable()
112 return ((((TIMER_T *)dev->cfg->base)->CTL & TIMER_CTL_CNTEN_Msk) != 0); in cmsdk_timer_is_enabled()
[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()
310 TIMER_T *t; /* store the timer base to configure compare value */ in TIMER_EnableFreqCounter()
[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()
315 TIMER_T *t; /* store the timer base to configure compare value */ in TIMER_EnableFreqCounter()
[all …]
/trusted-firmware-m-latest/platform/ext/target/nuvoton/m2354/bsp/Device/Nuvoton/M2354/Include/
DM2354.h473 #define TIMER0_S ((TIMER_T *) TMR01_BASE) /*!< TIMER0 Pointer …
474 #define TIMER1_S ((TIMER_T *) (TMR01_BASE + 0x100UL)) /*!< TIMER1 Pointer …
475 #define TIMER2_S ((TIMER_T *) TMR23_BASE) /*!< TIMER2 Pointer …
476 #define TIMER3_S ((TIMER_T *) (TMR23_BASE + 0x100UL)) /*!< TIMER3 Pointer …
477 #define TIMER4_S ((TIMER_T *) TMR45_BASE) /*!< TIMER4 Pointer …
478 #define TIMER5_S ((TIMER_T *) (TMR45_BASE + 0x100UL)) /*!< TIMER5 Pointer …
593 #define TIMER2_NS ((TIMER_T *) (TMR23_BASE+NS_OFFSET)) /*!< TIMER2…
594 #define TIMER3_NS ((TIMER_T *) (TMR23_BASE+NS_OFFSET+0x100UL)) /*!< TIMER3…
595 #define TIMER4_NS ((TIMER_T *) (TMR45_BASE+NS_OFFSET)) /*!< TIMER4…
596 #define TIMER5_NS ((TIMER_T *) (TMR45_BASE+NS_OFFSET+0x100UL)) /*!< TIMER5…
Dtimer_reg.h811 } TIMER_T; typedef
/trusted-firmware-m-latest/platform/ext/target/nuvoton/m2351/bsp/Device/Nuvoton/M2351/Include/
DM2351.h446 #define TIMER0_S ((TIMER_T *) TMR01_BASE) /*!< TIMER0 Pointer …
447 #define TIMER1_S ((TIMER_T *) (TMR01_BASE + 0x100UL)) /*!< TIMER1 Pointer …
448 #define TIMER2_S ((TIMER_T *) TMR23_BASE) /*!< TIMER2 Pointer …
449 #define TIMER3_S ((TIMER_T *) (TMR23_BASE + 0x100UL)) /*!< TIMER3 Pointer …
554 #define TIMER2_NS ((TIMER_T *) (TMR23_BASE+NS_OFFSET)) /*!< TIMER2…
555 #define TIMER3_NS ((TIMER_T *) (TMR23_BASE+NS_OFFSET+0x100UL)) /*!< TIMER3…
Dtimer_reg.h729 } TIMER_T; typedef