-
Notifications
You must be signed in to change notification settings - Fork 2
/
Kconfig.projbuild
executable file
·228 lines (180 loc) · 4 KB
/
Kconfig.projbuild
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
menu "LittleV Graphics Library"
config USE_LVGL_LIBRARY
bool "Use LVGL library"
config USE_LVGL
int
default 1 if USE_LVGL_LIBRARY
endmenu
menu "Hardware configuration"
choice NOFRENDO_HARDWARE
prompt "Hardware to run on"
default ESP_MICRO_NES_HW
help
This emulator can run on various types of hardware. Select what you have here.
config ESP_MICRO_NES_HW
bool "MicroNES Hardware"
config HW_CUSTOM
bool "Custom hardware"
endchoice
choice HW_LCD_TYPE_SEL
prompt "LCD type"
depends on HW_CUSTOM
config HW_LCD_TYPE_ILI
bool "ILI9341 LCD"
config HW_LCD_TYPE_ST
bool "ST7735R LCD"
endchoice
config HW_LCD_TYPE
int
default 1 if ESP_MICRO_NES_HW
default 0 if HW_LCD_TYPE_ILI
default 1 if HW_LCD_TYPE_ST
config HW_LCD_MOSI_GPIO_CUST
int "LCD MOSI pin"
depends on HW_CUSTOM
range 1 35
default 23
config HW_LCD_CLK_GPIO_CUST
int "LCD CLK pin"
depends on HW_CUSTOM
range 1 35
default 18
config HW_LCD_CS_GPIO_CUST
int "LCD CS pin"
depends on HW_CUSTOM
range 1 35
default 17
config HW_LCD_DC_GPIO_CUST
int "LCD DC pin"
depends on HW_CUSTOM
range 1 35
default 16
config HW_LCD_RESET_GPIO_CUST
int "LCD RESET pin"
depends on HW_CUSTOM
range 1 35
default 19
config HW_LCD_BL_GPIO_CUST
int "LCD Backlight Enable pin"
depends on HW_CUSTOM
range 1 35
default 5
config HW_INV_BL_CUST
bool "Invert backlight output"
default n
depends on HW_CUSTOM
config HW_INV_BL
bool
default HW_INBV_BL_CUST if HW_CUSTOM
default n if ESP_MICRO_NES_HW
config HW_LCD_MOSI_GPIO
int
default HW_LCD_MOSI_GPIO_CUST if HW_CUSTOM
default 23 if ESP_MICRO_NES_HW
config HW_LCD_CLK_GPIO
int
default HW_LCD_CLK_GPIO_CUST if HW_CUSTOM
default 18 if ESP_MICRO_NES_HW
config HW_LCD_CS_GPIO
int
default HW_LCD_CS_GPIO_CUST if HW_CUSTOM
default 17 if ESP_MICRO_NES_HW
config HW_LCD_DC_GPIO
int
default HW_LCD_DC_GPIO_CUST if HW_CUSTOM
default 16 if ESP_MICRO_NES_HW
config HW_LCD_RESET_GPIO
int
default HW_LCD_RESET_GPIO_CUST if HW_CUSTOM
default 19 if ESP_MICRO_NES_HW
config HW_LCD_BL_GPIO
int
default HW_LCD_BL_GPIO_CUST if HW_CUSTOM
default 5 if ESP_MICRO_NES_HW
config SOUND_ENA
bool "Analog audio on GPIO26"
default n
help
ESP32 will output 0-3.3V analog audio signal on GPIO26.
config GAMEPAD_A_CUST
int "Gamepad A GPIO pin number"
depends on HW_CUSTOM
range 0 33
default 0
config GAMEPAD_B_CUST
int "Gamepad B GPIO pin number"
depends on HW_CUSTOM
range 0 33
default 13
config GAMEPAD_START_CUST
int "Gamepad START GPIO pin number"
depends on HW_CUSTOM
range 0 33
default 12
config GAMEPAD_SELECT_CUST
int "Gamepad SELECT GPIO pin number"
depends on HW_CUSTOM
range 0 33
default 14
config GAMEPAD_UP_CUST
int "Gamepad UP GPIO pin number"
depends on HW_CUSTOM
range 0 33
default 33
config GAMEPAD_DOWN_CUST
int "Gamepad DOWN GPIO pin number"
depends on HW_CUSTOM
range 0 33
default 15
config GAMEPAD_LEFT_CUST
int "Gamepad LEFT GPIO pin number"
depends on HW_CUSTOM
range 0 33
default 32
config GAMEPAD_RIGHT_CUST
int "Gamepad RIGHT GPIO pin number"
depends on HW_CUSTOM
range 0 33
default 27
config GAMEPAD_MENU_CUST
int "Gamepad MENU GPIO pin number"
depends on HW_CUSTOM
range 0 33
default 2
config GAMEPAD_A
int
default GAMEPAD_A_CUST if HW_CUSTOM
default 0 if ESP_MICRO_NES_HW
config GAMEPAD_B
int
default GAMEPAD_B_CUST if HW_CUSTOM
default 13 if ESP_MICRO_NES_HW
config GAMEPAD_START
int
default GAMEPAD_START_CUST if HW_CUSTOM
default 12 if ESP_MICRO_NES_HW
config GAMEPAD_SELECT
int
default GAMEPAD_SELECT_CUST if HW_CUSTOM
default 14 if ESP_MICRO_NES_HW
config GAMEPAD_UP
int
default GAMEPAD_UP_CUST if HW_CUSTOM
default 33 if ESP_MICRO_NES_HW
config GAMEPAD_DOWN
int
default GAMEPAD_DOWN_CUST if HW_CUSTOM
default 15 if ESP_MICRO_NES_HW
config GAMEPAD_LEFT
int
default GAMEPAD_LEFT_CUST if HW_CUSTOM
default 32 if ESP_MICRO_NES_HW
config GAMEPAD_RIGHT
int
default GAMEPAD_RIGHT_CUST if HW_CUSTOM
default 27 if ESP_MICRO_NES_HW
config GAMEPAD_MENU
int
default GAMEPAD_MENU_CUST if HW_CUSTOM
default 2 if ESP_MICRO_NES_HW
endmenu