| /bsp/apm32/libraries/APM32S10x_Library/APM32S10x_StdPeriphDriver/src/ |
| A D | apm32s10x_tmr.c | 56 if (tmr == TMR1) in TMR_Reset() 61 else if (tmr == TMR2) in TMR_Reset() 91 if ((tmr == TMR1) || (tmr == TMR2) || (tmr == TMR3) || (tmr == TMR4)) in TMR_ConfigTimeBase() 102 if (tmr == TMR1) in TMR_ConfigTimeBase() 128 if (tmr == TMR1) in TMR_ConfigOC1() 162 if (tmr == TMR1) in TMR_ConfigOC2() 199 if (tmr == TMR1) in TMR_ConfigOC3() 235 if (tmr == TMR1) in TMR_ConfigOC4() 2002 if ((tmr == TMR1) || (tmr == TMR2) || (tmr == TMR3) || (tmr == TMR4)) in TI1Config() 2045 if ((tmr == TMR1) || (tmr == TMR2) || (tmr == TMR3) || (tmr == TMR4)) in TI2Config() [all …]
|
| /bsp/apm32/libraries/APM32E10x_Library/APM32E10x_StdPeriphDriver/src/ |
| A D | apm32e10x_tmr.c | 113 if ((tmr == TMR1) || (tmr == TMR8) || (tmr == TMR2) || (tmr == TMR3) || in TMR_ConfigTimeBase() 114 (tmr == TMR4) || (tmr == TMR5)) in TMR_ConfigTimeBase() 122 if ((tmr != TMR6) && (tmr != TMR7)) in TMR_ConfigTimeBase() 130 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigTimeBase() 156 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC1() 190 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC2() 227 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC3() 263 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC4() 2007 if ((tmr == TMR1) || (tmr == TMR8) || (tmr == TMR2) || (tmr == TMR3) || in TI1Config() 2051 if ((tmr == TMR1) || (tmr == TMR8) || (tmr == TMR2) || (tmr == TMR3) || in TI2Config() [all …]
|
| /bsp/apm32/libraries/APM32F10x_Library/APM32F10x_StdPeriphDriver/src/ |
| A D | apm32f10x_tmr.c | 112 if ((tmr == TMR1) || (tmr == TMR8) || (tmr == TMR2) || (tmr == TMR3) || in TMR_ConfigTimeBase() 113 (tmr == TMR4) || (tmr == TMR5)) in TMR_ConfigTimeBase() 121 if ((tmr != TMR6) && (tmr != TMR7)) in TMR_ConfigTimeBase() 129 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigTimeBase() 155 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC1() 189 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC2() 226 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC3() 262 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC4() 1998 if ((tmr == TMR1) || (tmr == TMR8) || (tmr == TMR2) || (tmr == TMR3) || in TI1Config() 2042 if ((tmr == TMR1) || (tmr == TMR8) || (tmr == TMR2) || (tmr == TMR3) || in TI2Config() [all …]
|
| /bsp/apm32/libraries/APM32F4xx_Library/APM32F4xx_StdPeriphDriver/src/ |
| A D | apm32f4xx_tmr.c | 141 if ((tmr == TMR1) || (tmr == TMR2) || \ in TMR_ConfigTimeBase() 143 (tmr == TMR5) || (tmr == TMR8)) in TMR_ConfigTimeBase() 151 if ((tmr != TMR6) && (tmr != TMR7)) in TMR_ConfigTimeBase() 160 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigTimeBase() 426 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC1() 459 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC2() 492 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC3() 524 if ((tmr == TMR1) || (tmr == TMR8)) in TMR_ConfigOC4() 2159 if ((tmr == TMR1) || (tmr == TMR8) || (tmr == TMR2) || (tmr == TMR3) || in TI1Config() 2203 if ((tmr == TMR1) || (tmr == TMR8) || (tmr == TMR2) || (tmr == TMR3) || in TI2Config() [all …]
|
| /bsp/maxim/libraries/MAX32660PeriphDriver/Source/ |
| A D | tmr.c | 52 MXC_ASSERT(tmr); in TMR_Init() 62 tmr->cn = 0; in TMR_Init() 68 tmr->cn = pres; in TMR_Init() 75 MXC_ASSERT(tmr); in TMR_Shutdown() 85 tmr->cn = 0; in TMR_Shutdown() 93 MXC_ASSERT(tmr); in TMR_Enable() 101 MXC_ASSERT(tmr); in TMR_Disable() 112 tmr->cn = (tmr->cn & ~(MXC_F_TMR_CN_TMODE | MXC_F_TMR_CN_TPOL)) | in TMR_Config() 116 tmr->cnt = 0x1; in TMR_Config() 130 tmr->cn = (tmr->cn & ~(MXC_F_TMR_CN_TMODE | MXC_F_TMR_CN_TPOL)) | in TMR_PWMConfig() [all …]
|
| A D | tmr_utils.c | 83 TMR_Disable(tmr); in TMR_TO_Start() 84 TMR_Config(tmr, &cfg); in TMR_TO_Start() 86 TMR_IntClear(tmr); in TMR_TO_Start() 87 TMR_Enable(tmr); in TMR_TO_Start() 102 TMR_Disable(tmr); in TMR_TO_Stop() 103 TMR_SetCount(tmr, 0x0); in TMR_TO_Stop() 109 TMR_IntClear(tmr); in TMR_TO_Clear() 110 TMR_SetCount(tmr, 0x0); in TMR_TO_Clear() 119 TMR_GetTime(tmr, TMR_GetCount(tmr), &elapsed, &units); in TMR_TO_Elapsed() 140 remaining_ticks = TMR_GetCompare(tmr) - TMR_GetCount(tmr); in TMR_TO_Remaining() [all …]
|
| A D | mxc_sys.c | 82 int SYS_Clock_Select(sys_system_clock_t clock, mxc_tmr_regs_t* tmr) in SYS_Clock_Select() argument 342 unsigned SYS_TMR_GetFreq(mxc_tmr_regs_t *tmr) in SYS_TMR_GetFreq() argument 424 int SYS_TMR_Init(mxc_tmr_regs_t *tmr, const sys_cfg_tmr_t* sys_cfg) in SYS_TMR_Init() argument 429 if (tmr == MXC_TMR0) { in SYS_TMR_Init() 435 if (tmr == MXC_TMR0) { in SYS_TMR_Init() 438 else if (tmr == MXC_TMR1) { in SYS_TMR_Init() 441 else if (tmr == MXC_TMR2) { in SYS_TMR_Init() 515 int SYS_TMR_Shutdown(mxc_tmr_regs_t *tmr) in SYS_TMR_Shutdown() argument 570 int SYS_SysTick_Config(uint32_t ticks, int clk_src, mxc_tmr_regs_t* tmr) in SYS_SysTick_Config() argument
|
| /bsp/apm32/libraries/APM32F4xx_Library/APM32F4xx_StdPeriphDriver/inc/ |
| A D | apm32f4xx_tmr.h | 576 void TMR_Reset(TMR_T* tmr); 583 uint16_t TMR_ReadCounter(TMR_T* tmr); 585 void TMR_EnableUpdate(TMR_T* tmr); 586 void TMR_DisableUpdate(TMR_T* tmr); 588 void TMR_EnableAutoReload(TMR_T* tmr); 592 void TMR_Enable(TMR_T* tmr); 593 void TMR_Disable(TMR_T* tmr); 652 void TMR_EnableSelectCOM(TMR_T* tmr); 654 void TMR_EnableCCPreload(TMR_T* tmr); 661 void TMR_EnableCCDMA(TMR_T* tmr); [all …]
|
| /bsp/apm32/libraries/APM32E10x_Library/APM32E10x_StdPeriphDriver/inc/ |
| A D | apm32e10x_tmr.h | 552 void TMR_Reset(TMR_T* tmr); 566 void TMR_Enable(TMR_T* tmr); 567 void TMR_Disable(TMR_T* tmr); 571 void TMR_EnablePWMOutputs(TMR_T* tmr); 601 void TMR_EnableSelectCOM(TMR_T* tmr); 603 void TMR_EnableCCDMA(TMR_T* tmr); 604 void TMR_DisableCCDMA(TMR_T* tmr); 605 void TMR_EnableCCPreload(TMR_T* tmr); 631 void TMR_EnableUpdate(TMR_T* tmr); 632 void TMR_DisableUpdate(TMR_T* tmr); [all …]
|
| /bsp/apm32/libraries/APM32F10x_Library/APM32F10x_StdPeriphDriver/inc/ |
| A D | apm32f10x_tmr.h | 551 void TMR_Reset(TMR_T* tmr); 565 void TMR_Enable(TMR_T* tmr); 566 void TMR_Disable(TMR_T* tmr); 570 void TMR_EnablePWMOutputs(TMR_T* tmr); 600 void TMR_EnableSelectCOM(TMR_T* tmr); 602 void TMR_EnableCCDMA(TMR_T* tmr); 603 void TMR_DisableCCDMA(TMR_T* tmr); 604 void TMR_EnableCCPreload(TMR_T* tmr); 630 void TMR_EnableUpdate(TMR_T* tmr); 631 void TMR_DisableUpdate(TMR_T* tmr); [all …]
|
| /bsp/apm32/libraries/APM32S10x_Library/APM32S10x_StdPeriphDriver/inc/ |
| A D | apm32s10x_tmr.h | 552 void TMR_Reset(TMR_T* tmr); 566 void TMR_Enable(TMR_T* tmr); 567 void TMR_Disable(TMR_T* tmr); 571 void TMR_EnablePWMOutputs(TMR_T* tmr); 601 void TMR_EnableSelectCOM(TMR_T* tmr); 603 void TMR_EnableCCDMA(TMR_T* tmr); 604 void TMR_DisableCCDMA(TMR_T* tmr); 605 void TMR_EnableCCPreload(TMR_T* tmr); 631 void TMR_EnableUpdate(TMR_T* tmr); 632 void TMR_DisableUpdate(TMR_T* tmr); [all …]
|
| /bsp/apm32/libraries/Drivers/ |
| A D | drv_pwm.c | 82 TMR_T *tmr; member 314 tmr = (TMR_T *)device->tmr; in apm32_pwm_hw_init() 434 if (tmr == TMR1) in timer_clock_get() 436 if (tmr == TMR1 || tmr == TMR8 || tmr == TMR9 || tmr == TMR10 || tmr == TMR11) in timer_clock_get() 463 if (tmr == TMR1 || tmr == TMR15 || tmr == TMR16 || tmr == TMR17) in drv_pwm_enable() 465 if (tmr == TMR1) in drv_pwm_enable() 467 if (tmr == TMR1 || tmr == TMR8) in drv_pwm_enable() 472 TMR_Enable(tmr); in drv_pwm_enable() 485 if (tmr == TMR1 || tmr == TMR15 || tmr == TMR16 || tmr == TMR17) in drv_pwm_enable() 489 if (tmr == TMR1 || tmr == TMR8) in drv_pwm_enable() [all …]
|
| A D | drv_hwtimer.c | 34 TMR_T *tmr; member 254 if (tmr == TMR1) in apm32_hwtimer_clock_get() 256 if (tmr == TMR1 || tmr == TMR8 || tmr == TMR9 || tmr == TMR10 || tmr == TMR11) in apm32_hwtimer_clock_get() 404 timer_config->tmr->CNT = 0; in apm32_hwtimer_start() 421 if (timer_config->tmr == TMR1 || timer_config->tmr == TMR2 || timer_config->tmr == TMR3 || \ in apm32_hwtimer_start() 424 if (timer_config->tmr == TMR1) in apm32_hwtimer_start() 426 if (timer_config->tmr == TMR1 || timer_config->tmr == TMR2 || timer_config->tmr == TMR3 || \ in apm32_hwtimer_start() 427 timer_config->tmr == TMR4 || timer_config->tmr == TMR5 || timer_config->tmr == TMR8 || \ in apm32_hwtimer_start() 428 timer_config->tmr == TMR9 || timer_config->tmr == TMR12) in apm32_hwtimer_start() 452 TMR_Enable(timer_config->tmr); in apm32_hwtimer_stop() [all …]
|
| /bsp/maxim/libraries/MAX32660PeriphDriver/Include/ |
| A D | tmr.h | 140 int TMR_Shutdown(mxc_tmr_regs_t *tmr); 146 void TMR_Enable(mxc_tmr_regs_t* tmr); 152 void TMR_Disable(mxc_tmr_regs_t* tmr); 178 int TMR_PWMSetDuty(mxc_tmr_regs_t *tmr, uint32_t duty); 187 int TMR_PWMSetPeriod(mxc_tmr_regs_t* tmr, uint32_t per); 194 uint32_t TMR_GetCompare(mxc_tmr_regs_t* tmr); 201 uint32_t TMR_GetCapture(mxc_tmr_regs_t* tmr); 208 uint32_t TMR_GetCount(mxc_tmr_regs_t* tmr); 214 void TMR_IntClear(mxc_tmr_regs_t* tmr); 221 uint32_t TMR_IntStatus(mxc_tmr_regs_t* tmr); [all …]
|
| A D | tmr_utils.h | 81 void TMR_Delay(mxc_tmr_regs_t *tmr, unsigned long us, const sys_cfg_tmr_t *sys_cfg); 89 void TMR_TO_Start(mxc_tmr_regs_t *tmr, unsigned long us, const sys_cfg_tmr_t *sys_cfg); 96 int TMR_TO_Check(mxc_tmr_regs_t *tmr); 102 void TMR_TO_Stop(mxc_tmr_regs_t *tmr); 108 void TMR_TO_Clear(mxc_tmr_regs_t *tmr); 115 unsigned int TMR_TO_Elapsed(mxc_tmr_regs_t *tmr); 122 unsigned int TMR_TO_Remaining(mxc_tmr_regs_t *tmr); 130 void TMR_SW_Start(mxc_tmr_regs_t *tmr, const sys_cfg_tmr_t *sys_cfg); 139 unsigned int TMR_SW_Stop(mxc_tmr_regs_t *tmr);
|
| A D | mxc_sys.h | 162 mxc_tmr_regs_t* tmr; member 180 int SYS_Clock_Select(sys_system_clock_t clock, mxc_tmr_regs_t* tmr); 271 unsigned SYS_TMR_GetFreq(mxc_tmr_regs_t *tmr); 297 int SYS_TMR_Init(mxc_tmr_regs_t *tmr, const sys_cfg_tmr_t* sys_cfg); 354 int SYS_TMR_Shutdown(mxc_tmr_regs_t *tmr); 404 int SYS_SysTick_Config(uint32_t ticks, int clk_src, mxc_tmr_regs_t* tmr);
|
| /bsp/renesas/ra6m3-hmi-board/board/lvgl/demo/stress/ |
| A D | lv_demo_stress.c | 24 static void msgbox_delete(lv_timer_t * tmr); 28 static void obj_test_task_cb(lv_timer_t * tmr); 62 static void obj_test_task_cb(lv_timer_t * tmr) in obj_test_task_cb() argument 64 (void) tmr; /*Unused*/ in obj_test_task_cb() 439 static void msgbox_delete(lv_timer_t * tmr) in msgbox_delete() argument 441 lv_msgbox_close(tmr->user_data); in msgbox_delete()
|
| /bsp/maxim/libraries/MAX32660PeriphDriver/ |
| A D | SConscript | 13 Source/tmr.c
|
| /bsp/maxim/libraries/HAL_Drivers/ |
| A D | drv_rtc.c | 48 sys_cfg.tmr = MXC_TMR0; in rt_rtc_init()
|
| /bsp/wch/risc-v/ch569w-evt/applications/ |
| A D | test.c | 165 int tmr = (dev == tmr_dev_1) ? 1 : 0; in tmr_timeout_cb() local 167 rt_kprintf("hwtimer %d timeout callback fucntion @tick %d\n", tmr, tick); in tmr_timeout_cb()
|