Update pulse_counter.c

That's what happens when I copy/paste code without triple checking it first...
pull/20/head
Manoel 2022-08-14 15:30:03 +02:00
rodzic ac4a79feeb
commit 4fe44a4da5
1 zmienionych plików z 0 dodań i 1 usunięć

Wyświetl plik

@ -37,7 +37,6 @@ void TIM2init_counter(void) { // counting from ETR
TIM_TimeBaseInitStructure.TIM_CounterMode = TIM_CounterMode_Up; // 7
TIM_TimeBaseInitStructure.TIM_Period = 100000; // 8
TIM_TimeBaseInitStructure.TIM_ClockDivision = TIM_CKD_DIV1; // 9
Timer counting pulses 4
TIM_TimeBaseInit(TIM2, &TIM_TimeBaseInitStructure); // 10
TIM_ETRClockMode2Config(TIM2, TIM_ExtTRGPSC_OFF, TIM_ExtTRGPolarity_NonInverted, 0x00); // 12
TIM_Cmd(TIM2, ENABLE); // 14