44
55#ifdef PINMAP_IEC_D32PRO
66
7- #include "d32-common.h"
7+ /* SD Card */
8+ // pins 12-15 are used to interface with the JTAG debugger
9+ // so leave them alone if we're using JTAG
10+ #ifndef JTAG
11+ #define PIN_CARD_DETECT GPIO_NUM_12 // fnSystem.h
12+ #define PIN_CARD_DETECT_FIX GPIO_NUM_15 // fnSystem.h
13+ #endif
14+
15+ #define PIN_SD_HOST_CS GPIO_NUM_4 // LOLIN D32 Pro
16+ #define PIN_SD_HOST_MISO GPIO_NUM_19
17+ #define PIN_SD_HOST_MOSI GPIO_NUM_23
18+ #define PIN_SD_HOST_SCK GPIO_NUM_18
19+
20+ /* UART */
21+ #define PIN_UART0_RX GPIO_NUM_3 // fnUART.cpp
22+ #define PIN_UART0_TX GPIO_NUM_1
23+ #define PIN_UART1_RX GPIO_NUM_9
24+ #define PIN_UART1_TX GPIO_NUM_10
25+ #define PIN_UART2_RX GPIO_NUM_33
26+ #define PIN_UART2_TX GPIO_NUM_21
27+
28+ /* Buttons */
29+ #define PIN_BUTTON_A GPIO_NUM_NC // keys.cpp
30+ #define PIN_BUTTON_B GPIO_NUM_NC
31+ #define PIN_BUTTON_C GPIO_NUM_NC
32+
33+ /* LEDs */
34+ #define PIN_LED_WIFI GPIO_NUM_2 // led.cpp
35+ #define PIN_LED_BUS GPIO_NUM_5 // 4 FN
36+
37+ // pins 12-15 are used to interface with the JTAG debugger
38+ // so leave them alone if we're using JTAG
39+ #ifndef JTAG
40+ #define PIN_LED_BT GPIO_NUM_13
41+ #else
42+ #define PIN_LED_BT GPIO_NUM_5 // LOLIN D32 PRO
43+ #endif
44+
45+ /* Audio Output */
46+ #define PIN_DAC1 GPIO_NUM_25 // samlib.h
847
948/* Commodore IEC Pins */
1049#define IEC_HAS_RESET // Reset line is available
2766#define PIN_SERIAL_TX GPIO_NUM_10
2867
2968#endif // PINMAP_IEC_D32PRO
30- #endif // PINMAP_LOLIN_D32_PRO_H
69+ #endif // PINMAP_LOLIN_D32_PRO_H
0 commit comments