-
Notifications
You must be signed in to change notification settings - Fork 68
/
iec.h
58 lines (47 loc) · 1.95 KB
/
iec.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* FujiLoaf REV0 */
#ifdef PINMAP_IEC
/* SD Card */
#define PIN_CARD_DETECT GPIO_NUM_35 // fnSystem.h
#define PIN_CARD_DETECT_FIX GPIO_NUM_35 // fnSystem.h
#define PIN_SD_HOST_CS GPIO_NUM_5
#define PIN_SD_HOST_MISO GPIO_NUM_19
#define PIN_SD_HOST_MOSI GPIO_NUM_23
#define PIN_SD_HOST_SCK GPIO_NUM_18
/* UART */
#define PIN_UART0_RX GPIO_NUM_3 // fnUART.cpp
#define PIN_UART0_TX GPIO_NUM_1
#define PIN_UART1_RX GPIO_NUM_9
#define PIN_UART1_TX GPIO_NUM_10
#define PIN_UART2_RX GPIO_NUM_33
#define PIN_UART2_TX GPIO_NUM_21
/* Buttons */
#define PIN_BUTTON_A GPIO_NUM_0 // keys.cpp
#define PIN_BUTTON_B GPIO_NUM_NC // No Button B
#define PIN_BUTTON_C GPIO_NUM_36
/* LEDs */
#define PIN_LED_WIFI GPIO_NUM_2 // led.cpp
#define PIN_LED_BUS GPIO_NUM_12 // 4 FN
#define PIN_LED_BT GPIO_NUM_NC // No BT LED
/* Audio Output */
#define PIN_DAC1 GPIO_NUM_25 // samlib.h
// Reset line is available
#define IEC_HAS_RESET
#define PIN_IEC_RESET GPIO_NUM_14
#define PIN_IEC_ATN GPIO_NUM_32
#define PIN_IEC_CLK_IN GPIO_NUM_33
#define PIN_IEC_CLK_OUT GPIO_NUM_33
#define PIN_IEC_DATA_IN GPIO_NUM_26
#define PIN_IEC_DATA_OUT GPIO_NUM_26
#define PIN_IEC_SRQ GPIO_NUM_27 // FujiLoaf
/* Modem/Parallel Switch */
#define PIN_MODEM_ENABLE GPIO_NUM_2 // High = Modem enabled
#define PIN_MODEM_UP9600 GPIO_NUM_15 // High = UP9600 enabled
/* I2C GPIO Expander */
#define PIN_GPIOX_SDA GPIO_NUM_21
#define PIN_GPIOX_SCL GPIO_NUM_22
#define PIN_GPIOX_INT GPIO_NUM_34
//#define GPIOX_ADDRESS 0x20 // PCF8575
#define GPIOX_ADDRESS 0x24 // PCA9673
//#define GPIOX_SPEED 400 // PCF8575 - 400Khz
#define GPIOX_SPEED 1000 // PCA9673 - 1000Khz / 1Mhz
#endif // PINMAP_IEC