Skip to content

Commit 2d68e12

Browse files
committed
Revert the move of PH0/1
1 parent d55a8e1 commit 2d68e12

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/gotek/board.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,12 @@ void board_init(void)
283283

284284
}
285285

286+
#if defined(APPLE2)
287+
/* HACK: Move two phases to the KC30 header. */
288+
pa_skip |= m(6) | m(15);
289+
has_kc30_header = 0;
290+
#endif
291+
286292
gpio_pull_up_pins(gpioa, ~pa_skip);
287293
gpio_pull_up_pins(gpiob, ~pb_skip);
288294
}

src/gotek/floppy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
/* Input pins: DIR=PB0, STEP=PA1, SELA=PA0, SELB=PA3, WGATE=PB9, SIDE=PB4,
1616
* MOTOR=PA15/PB15 */
1717
#if defined(APPLE2)
18-
#define pin_pha0 10 /* PA10 */
19-
#define pin_pha1 9 /* PA9 */
18+
#define pin_pha0 6 /* PA6 */
19+
#define pin_pha1 15 /* PA15 */
2020
#define pin_pha2 0 /* PB0 */
2121
#define pin_pha3 1 /* PA1 */
2222
#else

0 commit comments

Comments
 (0)