Skip to content

Commit c7a3c76

Browse files
committed
SFRKC30.AT4.35: Rotary input pins are always routed to EXTI.
There is never a conflict with the Motor input pin at PB12.
1 parent 6ada2a8 commit c7a3c76

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/gotek/board.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,12 @@ void board_setup_rotary_exti(void)
130130
exti_route_pc(11);
131131
m |= m(10) | m(11);
132132
}
133-
if (has_kc30_header) {
133+
if (((has_kc30_header == 1) && (ff_cfg.motor_delay == MOTOR_ignore))
134+
|| (has_kc30_header == 2) /* No conflict with motor on PB12 */) {
134135
/* KC30 rotary pins PA6, PA15. */
135-
if (ff_cfg.motor_delay == MOTOR_ignore) {
136-
exti_route_pa(6);
137-
exti_route_pa(15);
138-
m |= m(6) | m(15);
139-
}
136+
exti_route_pa(6);
137+
exti_route_pa(15);
138+
m |= m(6) | m(15);
140139
}
141140
board_rotary_exti_mask = m;
142141
exti->rtsr |= m;

0 commit comments

Comments
 (0)