mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-03 16:49:31 +08:00
9032365ea1
old-commit-hash: 983120bfed09ad9331fa96be3143a604c9a1a179
8 lines
137 B
C
8 lines
137 B
C
void timer_init(TIM_TypeDef *TIM, int psc) {
|
|
TIM->PSC = psc-1;
|
|
TIM->DIER = TIM_DIER_UIE;
|
|
TIM->CR1 = TIM_CR1_CEN;
|
|
TIM->SR = 0;
|
|
}
|
|
|