TIM4 runs at 96MHz, not 48MHz

This commit is contained in:
Alexander Heldt
2024-12-30 11:45:04 +01:00
parent 8f3285072b
commit a1c43ad21c
5 changed files with 4 additions and 4 deletions

View File

@@ -2137,7 +2137,7 @@ void tim4_init(void) {
((struct timer *) (0x40000800U))->PSC = (uint16_t) 48000 - 1;
((struct timer *) (0x40000800U))->PSC = (uint16_t) 96000 - 1;
((struct timer *) (0x40000800U))->ARR = (uint16_t) 0xFFFF;