Skip to content

Commit

Permalink
apple2: Move PHA0/PHA1 to original pins UART1_RX/TX, resp.
Browse files Browse the repository at this point in the history
  • Loading branch information
keirf committed May 24, 2024
1 parent 47e67fe commit b5ba3d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/gotek/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions src/gotek/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5ba3d1

Please sign in to comment.