| /bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Src/ |
| A D | hal_tim.c | 90 …if ((tim == TIM1) || (tim == TIM2) || (tim == TIM3) || (tim == TIM4) || (tim == TIM5) || (tim == T… in TIM_TimeBaseInit() 93 if ((tim == TIM1) || (tim == TIM8) ) in TIM_TimeBaseInit() 117 if ((tim == TIM1) || (tim == TIM8)) { in TIM_OC1Init() 140 if ((tim == TIM1) || (tim == TIM8)) { in TIM_OC2Init() 163 if ((tim == TIM1) || (tim == TIM8)) { in TIM_OC3Init() 186 if ((tim == TIM1) || (tim == TIM8)) in TIM_OC4Init() 1304 if ((tim == TIM2) || (tim == TIM5)) in TIM_SetCounter() 1318 if ((tim == TIM2) || (tim == TIM5)) in TIM_SetCompare1() 1332 if ((tim == TIM2) || (tim == TIM5)) in TIM_SetCompare2() 1346 if ((tim == TIM2) || (tim == TIM5)) in TIM_SetCompare3() [all …]
|
| /bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Inc/ |
| A D | hal_tim.h | 603 void TIM_DeInit(TIM_TypeDef* tim); 617 u32 TIM_GetCounter(TIM_TypeDef* tim); 618 u16 TIM_GetPrescaler(TIM_TypeDef* tim); 673 u32 TIM_GetCapture1(TIM_TypeDef* tim); 674 u32 TIM_GetCapture2(TIM_TypeDef* tim); 675 u32 TIM_GetCapture3(TIM_TypeDef* tim); 676 u32 TIM_GetCapture4(TIM_TypeDef* tim); 690 void TIM_InternalClockConfig(TIM_TypeDef* tim); 728 u32 TIM_GetCapture5(TIM_TypeDef* tim); 742 void TIM_SetCCR1FALL(TIM_TypeDef* tim, u32 shift); [all …]
|
| /bsp/wch/risc-v/Libraries/ch32_drivers/ |
| A D | drv_hwtimer.c | 148 if(tim->instance == TIM1) in ch32_hwtimer_init() 150 if(tim->instance == TIM1 || tim->instance == TIM8 || in ch32_hwtimer_init() 151 tim->instance == TIM9 || tim->instance == TIM10) in ch32_hwtimer_init() 180 if(tim->instance == TIM6 || tim->instance == TIM7) in ch32_hwtimer_init() 185 TIM_TimeBaseInit(tim->instance, &tim->init); in ch32_hwtimer_init() 205 tim->instance->CNT = 0; in ch32_hwtimer_start() 239 tim->instance->CNT = 0; in ch32_hwtimer_stop() 248 return tim->instance->CNT; in ch32_hwtimer_count_get() 277 if(tim->instance == TIM1) in ch32_hwtimer_control() 279 if(tim->instance == TIM1 || tim->instance == TIM8 || in ch32_hwtimer_control() [all …]
|
| /bsp/acm32/acm32f0x0-nucleo/drivers/ |
| A D | drv_hwtimer.c | 85 TIM_HandleTypeDef *tim = RT_NULL; in timer_init() local 111 tim->Init.RepetitionCounter = 0; in timer_init() 114 HAL_TIMER_MSP_Init(tim); in timer_init() 115 HAL_TIMER_Base_Init(tim); in timer_init() 121 TIM_HandleTypeDef *tim = RT_NULL; in timer_start() local 128 tim->Instance->CNT = 0; in timer_start() 130 tim->Instance->ARR = t - 1; in timer_start() 154 TIM_HandleTypeDef *tim = RT_NULL; in timer_stop() local 161 HAL_TIMER_Base_Stop(tim->Instance); in timer_stop() 166 TIM_HandleTypeDef *tim = RT_NULL; in timer_ctrl() local [all …]
|
| /bsp/nxp/lpc/lpc408x/drivers/ |
| A D | drv_hwtimer.c | 26 LPC_TIM_TypeDef *tim; in timer_init() local 31 TIM_DeInit(tim); in timer_init() 45 LPC_TIM_TypeDef *tim; in timer_start() local 57 TIM_ConfigMatch(tim, &match); in timer_start() 58 TIM_Cmd(tim, ENABLE); in timer_start() 65 LPC_TIM_TypeDef *tim; in timer_stop() local 69 TIM_Cmd(tim, DISABLE); in timer_stop() 74 LPC_TIM_TypeDef *tim; in timer_ctrl() local 88 tim->PR = pre; in timer_ctrl() 103 LPC_TIM_TypeDef *tim; in timer_counter_get() local [all …]
|
| /bsp/Infineon/libraries/HAL_Drivers/ |
| A D | drv_hwtimer.c | 57 cyhal_timer_t *tim = RT_NULL; in timer_init() local 91 cyhal_timer_start(tim); in timer_init() 96 cyhal_timer_free(tim); in timer_init() 108 cyhal_timer_t *tim = RT_NULL; in timer_start() local 128 cyhal_timer_stop(tim); in timer_start() 132 cyhal_timer_reset(tim); in timer_start() 139 cyhal_timer_free(tim); in timer_start() 156 cyhal_timer_t *tim = RT_NULL; in timer_stop() local 160 cyhal_timer_stop(tim); in timer_stop() 165 cyhal_timer_t *tim = RT_NULL; in timer_counter_get() local [all …]
|
| /bsp/n32g452xx/Libraries/rt_drivers/ |
| A D | drv_hwtimer.c | 105 TIM_Module *tim = RT_NULL; in n32_timer_init() local 114 RT_ASSERT((tim == TIM2) || (tim == TIM3) || (tim == TIM4) || (tim == TIM5) in n32_timer_init() 115 || (tim == TIM6) || (tim == TIM7)); in n32_timer_init() 161 TIM_Module *tim = RT_NULL; in n32_timer_start() local 168 TIM_SetCnt(tim, 0); in n32_timer_start() 182 TIM_Enable(tim, ENABLE); in n32_timer_start() 189 TIM_Module *tim = RT_NULL; in n32_timer_stop() local 196 TIM_Enable(tim, DISABLE); in n32_timer_stop() 198 TIM_SetCnt(tim, 0); in n32_timer_stop() 203 TIM_Module *tim = RT_NULL; in n32_timer_counter_get() local [all …]
|
| /bsp/stm32/libraries/HAL_Drivers/drivers/ |
| A D | drv_tim.c | 482 HAL_TIM_Base_Stop_IT(tim); in timer_stop() 514 || tim->Instance == TIM1 in timer_ctrl() 517 || tim->Instance == TIM8 in timer_ctrl() 520 || tim->Instance == TIM9 in timer_ctrl() 523 || tim->Instance == TIM10 in timer_ctrl() 526 || tim->Instance == TIM11 in timer_ctrl() 532 || tim->Instance == TIM15 in timer_ctrl() 535 || tim->Instance == TIM16 in timer_ctrl() 538 || tim->Instance == TIM17 in timer_ctrl() 544 || tim->Instance == TIM16 in timer_ctrl() [all …]
|
| A D | drv_lptim.c | 79 if(tim == RT_NULL) in timer_init() 100 tim->Init.Clock.Prescaler = LPTIM_PRESCALER_DIV32; in timer_init() 103 tim->Init.UpdateMode = LPTIM_UPDATE_IMMEDIATE; in timer_init() 106 HAL_StatusTypeDef ret = HAL_LPTIM_Init(tim); in timer_init() 137 if(tim == RT_NULL) in timer_start() 172 if(tim == RT_NULL) in timer_stop() 178 HAL_StatusTypeDef ret = HAL_LPTIM_TimeOut_Stop_IT(tim); in timer_stop() 189 static rt_uint32_t timer_get_freq(LPTIM_HandleTypeDef *tim) in timer_get_freq() argument 199 return HAL_LPTIM_ReadCounter(tim); in timer_counter_get() 218 if(tim == RT_NULL) in timer_ctrl() [all …]
|
| A D | drv_pwm.c | 365 TIM_HandleTypeDef *tim = RT_NULL; in stm32_hw_pwm_init() local 372 tim = (TIM_HandleTypeDef *)&device->tim_handle; in stm32_hw_pwm_init() 375 tim->Init.Prescaler = 0; in stm32_hw_pwm_init() 376 tim->Init.CounterMode = TIM_COUNTERMODE_UP; in stm32_hw_pwm_init() 377 tim->Init.Period = 1; in stm32_hw_pwm_init() 382 if (HAL_TIM_Base_Init(tim) != HAL_OK) in stm32_hw_pwm_init() 389 stm32_tim_enable_clock(tim); in stm32_hw_pwm_init() 399 if (HAL_TIM_PWM_Init(tim) != HAL_OK) in stm32_hw_pwm_init() 406 if(IS_TIM_MASTER_INSTANCE(tim->Instance)) in stm32_hw_pwm_init() 468 HAL_TIM_MspPostInit(tim); in stm32_hw_pwm_init() [all …]
|
| /bsp/renesas/libraries/HAL_Drivers/ |
| A D | drv_hwtimer.c | 57 struct ra_hwtimer *tim; in timer_init() local 64 fsp_err = R_GPT_Open(tim->g_ctrl, tim->g_cfg); in timer_init() 78 struct ra_hwtimer *tim; in timer_start() local 83 R_GPT_CounterSet(tim->g_ctrl, 0); in timer_start() 85 err = R_GPT_PeriodSet(tim->g_ctrl, pr); in timer_start() 93 err = R_GPT_Start(tim->g_ctrl); in timer_start() 100 struct ra_hwtimer *tim = RT_NULL; in timer_stop() local 106 R_GPT_Stop(tim->g_ctrl); in timer_stop() 109 R_GPT_CounterSet(tim->g_ctrl, 0); in timer_stop() 114 struct ra_hwtimer *tim = RT_NULL; in timer_counter_get() local [all …]
|
| /bsp/bluetrum/libraries/hal_drivers/ |
| A D | drv_hwtimer.c | 105 hal_sfr_t tim = RT_NULL; in timer_init() local 121 tim[TMRxCON] = BIT(7); in timer_init() 126 tim[TMRxCON] = 0; in timer_init() 133 hal_sfr_t tim = RT_NULL; in timer_start() local 140 tim[TMRxCNT] = 0; in timer_start() 150 tim[TMRxCON] |= BIT(0); in timer_start() 157 hal_sfr_t tim = RT_NULL; in timer_stop() local 164 tim[TMRxCON] &= ~BIT(0); in timer_stop() 167 tim[TMRxCNT] = 0; in timer_stop() 172 hal_sfr_t tim = RT_NULL; in timer_ctrl() local [all …]
|
| /bsp/nxp/lpc/lpc55sxx/Libraries/drivers/ |
| A D | drv_pwm.c | 52 CTIMER_Type * tim; member 62 .tim = CTIMER1, 71 .tim = CTIMER2, 249 CTIMER_Type *tim = RT_NULL; in rt_hw_pwm_init() local 257 tim = device->tim; in rt_hw_pwm_init() 260 if(tim == CTIMER1) in rt_hw_pwm_init() 277 else if (tim == CTIMER2) in rt_hw_pwm_init() 307 … CTIMER_SetupPwmPeriod(tim, kCTIMER_Match_3 , kCTIMER_Match_0, pwmPeriod, pulsePeriod, false); in rt_hw_pwm_init() 311 … CTIMER_SetupPwmPeriod(tim, kCTIMER_Match_3 , kCTIMER_Match_1, pwmPeriod, pulsePeriod, false); in rt_hw_pwm_init() 315 … CTIMER_SetupPwmPeriod(tim, kCTIMER_Match_3 , kCTIMER_Match_2, pwmPeriod, pulsePeriod, false); in rt_hw_pwm_init() [all …]
|
| /bsp/stm32/stm32mp157a-st-ev1/board/ports/ |
| A D | timer_sample.c | 158 MSH_CMD_EXPORT(tim_sample, tim sample);
|
| /bsp/stm32/stm32mp157a-st-discovery/board/ports/ |
| A D | timer_sample.c | 158 MSH_CMD_EXPORT(tim_sample, tim sample);
|
| /bsp/stm32/stm32l4r5-st-nucleo/board/CubeMX_Config/ |
| A D | .mxproject | 3 …x_it.h;stm32l4xx_hal_conf.h;main.h;gpio.h;adc.h;iwdg.h;lptim.h;usart.h;rtc.h;spi.h;tim.h;usb_otg.h; 5 …xx_it.c;stm32l4xx_hal_msp.c;main.c;gpio.c;adc.c;iwdg.c;lptim.c;usart.c;rtc.c;spi.c;tim.c;usb_otg.c;
|
| /bsp/stm32/stm32l4r9-st-sensortile-box/board/CubeMX_Config/ |
| A D | .mxproject | 5 …\i2c.c;..\Core\Src\rtc.c;..\Core\Src\sdmmc.c;..\Core\Src\spi.c;..\Core\Src\tim.c;..\Core\Src\usart… 25 …:/04_git_repo/GITEE/rt-thread_github/bsp/stm32/stm32l4r9-st-eval/board/CubeMX_Config/Core/Inc/tim.h 54 …:/04_git_repo/GITEE/rt-thread_github/bsp/stm32/stm32l4r9-st-eval/board/CubeMX_Config/Core/Src/tim.c
|
| /bsp/ESP32_C3/ |
| A D | README_ZH.md | 80 wcx@tim ~/rt-thread/bsp/ESP32_C3 esp32 ± sudo riscv32-esp-elf-gdb # 进入gdb调试
|
| A D | README.md | 73 wcx@tim ~/rt-thread/bsp/ESP32_C3 esp32 ± sudo riscv32-esp-elf-gdb # Enter gdb debugging
|