TIM4 runs at 96MHz, not 48MHz
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user