Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 25 of 28) sorted by relevance

12

/trusted-firmware-m-latest/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/
Dtimer_pwm.h151 #define TPWM_ENABLE_PWM_MODE(timer) \ argument
153 if(((uint32_t)&((timer)->PWMCTL) & TMR45_BASE) == TMR45_BASE) { \
154 (timer)->CTL |= TIMER_CTL_FUNCSEL_Msk; \
155 while(((timer)->CTL & TIMER_CTL_FUNCSEL_Msk) == 0) {} \
157 (timer)->ALTCTL = TIMER_ALTCTL_FUNCSEL_Msk; \
158 while(((timer)->ALTCTL & TIMER_ALTCTL_FUNCSEL_Msk) == 0) {} \
173 #define TPWM_DISABLE_PWM_MODE(timer) \ argument
175 if(((uint32_t)&((timer)->PWMCTL) & TMR45_BASE) == TMR45_BASE) { \
176 (timer)->CTL &= ~TIMER_CTL_FUNCSEL_Msk; \
177 while(((timer)->CTL & TIMER_CTL_FUNCSEL_Msk) == TIMER_CTL_FUNCSEL_Msk) {} \
[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
164 __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);
[all …]
/trusted-firmware-m-latest/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/
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 …]
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
128 __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);
[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() argument
42 (timer)->PWMCLKSRC = ((timer)->PWMCLKSRC & ~TIMER_PWMCLKSRC_CLKSRC_Msk) | u32CntClkSrc; in TPWM_SetCounterClockSource()
56 static uint32_t TPWM_GetModuleClockFreq(TIMER_T *timer) in TPWM_GetModuleClockFreq() argument
61 if(timer == TIMER0) in TPWM_GetModuleClockFreq()
65 else if(timer == TIMER1) in TPWM_GetModuleClockFreq()
69 else if((timer == TIMER2) || (timer == TIMER2_NS)) in TPWM_GetModuleClockFreq()
73 else if((timer == TIMER3) || (timer == TIMER3_NS)) in TPWM_GetModuleClockFreq()
77 else if((timer == TIMER4) || (timer == TIMER4_NS)) in TPWM_GetModuleClockFreq()
81 else if((timer == TIMER5) || (timer == TIMER5_NS)) in TPWM_GetModuleClockFreq()
92 if((timer == TIMER0) || (timer == TIMER1) || in TPWM_GetModuleClockFreq()
[all …]
Dtimer.c42 uint32_t TIMER_Open(TIMER_T *timer, uint32_t u32Mode, uint32_t u32Freq) in TIMER_Open() argument
44 uint32_t u32ClkFreq = TIMER_GetModuleClock(timer); in TIMER_Open()
60 timer->CTL = u32Mode | u32Prescale; in TIMER_Open()
61 timer->CMP = u32Cmpr; in TIMER_Open()
75 void TIMER_Close(TIMER_T *timer) in TIMER_Close() argument
77 timer->CTL = 0UL; in TIMER_Close()
78 timer->EXTCTL = 0UL; in TIMER_Close()
93 void TIMER_Delay(TIMER_T *timer, uint32_t u32Usec) in TIMER_Delay() argument
95 uint32_t u32ClkFreq = TIMER_GetModuleClock(timer); in TIMER_Delay()
100 timer->CTL = 0UL; in TIMER_Delay()
[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() argument
41 (timer)->PWMCLKSRC = ((timer)->PWMCLKSRC & ~TIMER_PWMCLKSRC_CLKSRC_Msk) | u32CntClkSrc; in TPWM_SetCounterClockSource()
56 uint32_t TPWM_ConfigOutputFreqAndDuty(TIMER_T *timer, uint32_t u32Frequency, uint32_t u32DutyCycle) in TPWM_ConfigOutputFreqAndDuty() argument
61 if((timer == TIMER0) || (timer == TIMER1)) in TPWM_ConfigOutputFreqAndDuty()
85timer->PWMCTL = (timer->PWMCTL & ~TIMER_PWMCTL_CNTTYPE_Msk) | (TPWM_UP_COUNT << TIMER_PWMCTL_CNTTY… in TPWM_ConfigOutputFreqAndDuty()
88timer->PWMCTL = (timer->PWMCTL & ~TIMER_PWMCTL_CNTMODE_Msk) | (TPWM_AUTO_RELOAD_MODE << TIMER_PWMC… in TPWM_ConfigOutputFreqAndDuty()
91 TPWM_SET_PERIOD(timer, (u32Period - 1UL)); in TPWM_ConfigOutputFreqAndDuty()
101 TPWM_SET_CMPDAT(timer, u32CMP); in TPWM_ConfigOutputFreqAndDuty()
103 TPWM_SET_PRESCALER(timer, (u32Prescaler - 1UL)); in TPWM_ConfigOutputFreqAndDuty()
119 void TPWM_EnableDeadTime(TIMER_T *timer, uint32_t u32DTCount) in TPWM_EnableDeadTime() argument
[all …]
Dtimer.c42 uint32_t TIMER_Open(TIMER_T *timer, uint32_t u32Mode, uint32_t u32Freq) in TIMER_Open() argument
44 uint32_t u32Clk = TIMER_GetModuleClock(timer); in TIMER_Open()
60 timer->CTL = u32Mode | u32Prescale; in TIMER_Open()
61 timer->CMP = u32Cmpr; in TIMER_Open()
75 void TIMER_Close(TIMER_T *timer) in TIMER_Close() argument
77 timer->CTL = 0UL; in TIMER_Close()
78 timer->EXTCTL = 0UL; in TIMER_Close()
93 void TIMER_Delay(TIMER_T *timer, uint32_t u32Usec) in TIMER_Delay() argument
95 uint32_t u32Clk = TIMER_GetModuleClock(timer); in TIMER_Delay()
100 timer->CTL = 0UL; in TIMER_Delay()
[all …]
/trusted-firmware-m-latest/platform/ext/target/arm/mps3/an524/
DCMakeLists.txt60 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/cmsdk
76 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/cmsdk/timer_cmsdk_drv.c
107 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/cmsdk
154 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/cmsdk/timer_cmsdk_drv.c
163 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/cmsdk/timer_cmsdk_drv.h
/trusted-firmware-m-latest/interface/include/mbedtls/
Dtiming.h37 struct mbedtls_timing_hr_time MBEDTLS_PRIVATE(timer);
/trusted-firmware-m-latest/platform/ext/target/arm/mps3/corstone310/common/
Dcommon.cmake62 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
106 # SLIH test Partition and FLIH test Partition access the timer as ARoT Partitions.
108 …<BOOL:${TFM_PARTITION_FLIH_TEST}>>:${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m/systimer_ar…
111 # To configure S and NS timer in S side for FP interrupt test
/trusted-firmware-m-latest/platform/ext/target/armchina/mps3/alcor/common/
Dcommon.cmake60 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
188 # SLIH test Partition and FLIH test Partition access the timer as ARoT Partitions.
190 …<BOOL:${TFM_PARTITION_FLIH_TEST}>>:${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m/systimer_ar…
198 # To configure S and NS timer in S side for FP interrupt test
/trusted-firmware-m-latest/platform/ext/target/arm/mps3/corstone300/common/
Dcommon.cmake64 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
107 # SLIH test Partition and FLIH test Partition access the timer as ARoT Partitions.
109 …<BOOL:${TFM_PARTITION_FLIH_TEST}>>:${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m/systimer_ar…
112 # To configure S and NS timer in S side for FP interrupt test
/trusted-firmware-m-latest/platform/ext/target/arm/mps4/corstone315/ns/
DCMakeLists.txt50 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
/trusted-firmware-m-latest/platform/ext/target/arm/mps3/corstone310/common/ns/
Dcommon.cmake44 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
/trusted-firmware-m-latest/platform/ext/target/arm/mps3/corstone300/common/ns/
Dcommon.cmake45 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
/trusted-firmware-m-latest/platform/ext/target/arm/mps4/corstone315/
DCMakeLists.txt54 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
117 # SLIH test Partition and FLIH test Partition access the timer as ARoT Partitions.
119 …<BOOL:${TFM_PARTITION_FLIH_TEST}>>:${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m/systimer_ar…
122 # To configure S and NS timer in S side for FP interrupt test
/trusted-firmware-m-latest/platform/ext/target/arm/rse/common/
DCMakeLists.txt138 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
173 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m/systimer_armv8-m_drv.c
200 # SLIH test Partition and FLIH test Partition access the timer as ARoT Partitions.
202 …<BOOL:${TFM_PARTITION_FLIH_TEST}>>:${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m/systimer_ar…
291 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
362 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
747 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m/systimer_armv8-m_drv.c
751 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m/systimer_armv8-m_drv.h
/trusted-firmware-m-latest/platform/ext/target/armchina/mps3/alcor/common/ns/
Dcommon.cmake46 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
/trusted-firmware-m-latest/platform/ext/target/arm/mps3/corstone310/fvp/
DCMakeLists.txt48 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
/trusted-firmware-m-latest/platform/ext/target/rpi/rp2350/ns/
DCMakeLists.txt107 ${PLATFORM_DIR}/ext/target/arm/drivers/timer/armv8m
/trusted-firmware-m-latest/platform/ext/target/arm/mps2/an519/
DCMakeLists.txt77 # SLIH test Partition and FLIH test Partition access the timer as ARoT Partitions.
/trusted-firmware-m-latest/platform/ext/target/arm/musca_s1/
DCMakeLists.txt90 # To configure S and NS timer in S side for FP interrupt test
/trusted-firmware-m-latest/platform/ext/target/arm/mps2/an521/
DCMakeLists.txt91 # SLIH test Partition and FLIH test Partition access the timer as ARoT Partitions.
/trusted-firmware-m-latest/platform/ext/target/nuvoton/m2354/
DCMakeLists.txt73 bsp/Library/StdDriver/src/timer.c

12