From b5ba3d13174937cd182950e63be76d8bd0f40ca1 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 24 May 2024 07:53:42 +0100 Subject: [PATCH] apple2: Move PHA0/PHA1 to original pins UART1_RX/TX, resp. --- src/gotek/board.c | 6 ------ src/gotek/floppy.c | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/gotek/board.c b/src/gotek/board.c index 3c7cf4aa..e140073d 100644 --- a/src/gotek/board.c +++ b/src/gotek/board.c @@ -283,12 +283,6 @@ void board_init(void) } -#if defined(APPLE2) - /* HACK: Move two phases to the KC30 header. */ - pa_skip |= m(6) | m(15); - has_kc30_header = 0; -#endif - gpio_pull_up_pins(gpioa, ~pa_skip); gpio_pull_up_pins(gpiob, ~pb_skip); } diff --git a/src/gotek/floppy.c b/src/gotek/floppy.c index 80b6829b..cb551cc3 100644 --- a/src/gotek/floppy.c +++ b/src/gotek/floppy.c @@ -15,8 +15,8 @@ /* Input pins: DIR=PB0, STEP=PA1, SELA=PA0, SELB=PA3, WGATE=PB9, SIDE=PB4, * MOTOR=PA15/PB15 */ #if defined(APPLE2) -#define pin_pha0 6 /* PA6 */ -#define pin_pha1 15 /* PA15 */ +#define pin_pha0 10 /* PA10 */ +#define pin_pha1 9 /* PA9 */ #define pin_pha2 0 /* PB0 */ #define pin_pha3 1 /* PA1 */ #else