Skip to content

Commit 9659601

Browse files
committed
Fix bug - wrong bit mask was used when reference Timer CMS register
1 parent 270e5fb commit 9659601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/timer/stm32_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ static void stm32_timer_tick(void *opaque)
216216
stm32_timer_set_count(s, s->arr);
217217
}
218218

219-
if (s->cr1 & 0x0300) /* CMS */
219+
if (s->cr1 & 0x0060) /* CMS */
220220
{
221221
if (s->countMode == TIMER_UP_COUNT)
222222
{

0 commit comments

Comments
 (0)