Lines Matching refs:timer
46 …be set to either 1 or 0 in FreeRTOSConfig.h to use either the Watchdog or timer 2 to generate the …
336 TIM_InitTypeDef timer; in prvSetupTimerInterrupt() local
340 TIM_StructInit(&timer); in prvSetupTimerInterrupt()
343 timer.TIM_Mode = TIM_OCM_CHANNEL_1; in prvSetupTimerInterrupt()
344 timer.TIM_OC1_Modes = TIM_TIMING; in prvSetupTimerInterrupt()
345 timer.TIM_Clock_Source = TIM_CLK_APB; in prvSetupTimerInterrupt()
346 timer.TIM_Clock_Edge = TIM_CLK_EDGE_RISING; in prvSetupTimerInterrupt()
347 timer.TIM_Prescaler = a-1; in prvSetupTimerInterrupt()
348 timer.TIM_Pulse_Level_1 = TIM_HIGH; in prvSetupTimerInterrupt()
349 timer.TIM_Pulse_Length_1 = s_nPulseLength = b-1; in prvSetupTimerInterrupt()
351 TIM_Init (TIM2, &timer); in prvSetupTimerInterrupt()