aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader/Config.h
blob: 474c10b074e882afb13ec7b33994261af2f4b602 (plain)
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
/********************************************************************
                    Open Source Cartridge Reader
********************************************************************/

#ifndef CONFIG_H_
#define CONFIG_H_

/***** FIRMWARE CONFIGURATION **************************************

    Add or remove the "//" in front of items to toggle them.

    Disabled:
      //#define HW5

    Enabled:
      #define HW5

    Things in ** blocks like this are comments. Changing them doesn't
    affect the firmware that is flashed to your OSCR.

    If you only get a blank screen or "Press Button" message after
    flashing you have enabled too many modules.

********************************************************************/

/*==== HARDWARE VERSION ===========================================*/

/*
    Choose your hardware version:
*/

//#define HW5
//#define HW4
//#define HW3
//#define HW2
//#define HW1
//#define SERIAL_MONITOR

/****/

/*==== HARDWARE MODULES ===========================================*/

/* [ Automatic Voltage Selection ---------------------------------- ]
    Enable this if you have the VSELECT module.
*/

//#define ENABLE_VSELECT

/****/

/* [ Clock Generator ---------------------------------------------- ]
    Enable this if you have the clock generator module. This will
    automatically be enabled if you selected HW2 or newer above.
*/

//#define ENABLE_CLOCKGEN

/****/

/* [ Real Time Clock ---------------------------------------------- ]
    Enable this if you have the RTC module. You can configure the
    type later in this file.
*/

//#define ENABLE_RTC

/****/

/*==== GAME SYSTEM CORES ==========================================*/

/* [ Atari 2600 --------------------------------------------------- ]
*/

//#define ENABLE_2600

/****/

/* [ Atari 5200 --------------------------------------------------- ]
*/

//#define ENABLE_5200

/****/

/* [ Atari 7800 --------------------------------------------------- ]
*/

//#define ENABLE_7800

/****/

/* [ Benesse Pocket Challenge W ----------------------------------- ]
*/

//#define ENABLE_PCW

/****/

/* [ C64 --------------------------------------------------- ]
*/

//#define ENABLE_C64

/****/

/* [ ColecoVision ------------------------------------------------- ]
*/

//#define ENABLE_COLV

/****/

/* [ Emerson Arcadia 2001 ----------------------------------------- ]
*/

//#define ENABLE_ARC

/****/

/* [ Fairchild Channel F ------------------------------------------ ]
*/

//#define ENABLE_FAIRCHILD

/****/

/* [ Flashrom Programmer for SNES repros -------------------------- ]
*/

#define ENABLE_FLASH
//#define ENABLE_FLASH16

/****/

/* [ Game Boy (Color) and Advance --------------------------------- ]
*/

#define ENABLE_GBX

/****/

/* [ Intellivision ------------------------------------------------ ]
*/

//#define ENABLE_INTV

/****/

/* [ Neo Geo Pocket ----------------------------------------------- ]
*/

//#define ENABLE_NGP

/****/

/* [ Nintendo 64 -------------------------------------------------- ]
*/

#define ENABLE_N64

/****/

/* [ Nintendo Entertainment System/Family Computer ---------------- ]
*/

#define ENABLE_NES

/****/

/* [ Magnavox Odyssey 2 ------------------------------------------- ]
*/

//#define ENABLE_ODY2

/****/

/* [ MSX ------------------------------------------- ]
*/

//#define ENABLE_MSX

/****/

/* [ PC Engine/TurboGrafx 16 -------------------------------------- ]
*/

//#define ENABLE_PCE

/****/

/* [ Pokemon Mini -------------------------------------- ]
*/

//#define ENABLE_POKE

/****/

/* [ Sega Master System/Mark III/Game Gear/SG-1000 ---------------- ]
*/

#define ENABLE_SMS

/****/

/* [ Sega Mega Drive/Genesis -------------------------------------- ]
*/

#define ENABLE_MD

/****/

/* [ Super Famicom SF Memory Cassette ----------------------------- ]
*/

#define ENABLE_SFM

/****/

/* [ Super Famicom Satellaview ------------------------------------ ]
*/

//#define ENABLE_SV

/****/

/* [ Super Famicom Sufami Turbo ----------------------------------- ]
*/

//#define ENABLE_ST

/****/

/* [ Super Famicom Game Processor RAM Cassette -------------------- ]
*/

//#define ENABLE_GPC

/****/

/* [ Super Nintendo ----------------------------------------------- ]
*/

#define ENABLE_SNES

/****/

/* [ Vectrex --------------------------------------------------- ]
*/

//#define ENABLE_VECTREX

/****/

/* [ Virtual Boy -------------------------------------------------- ]
*/

//#define ENABLE_VBOY

/****/

/* [ Watara Supervision ------------------------------------------- ]
*/

//#define ENABLE_WSV

/****/

/* [ WonderSwan and Benesse Pocket Challenge v2 ------------------- ]
*/

//#define ENABLE_WS

/****/

/* [ Super A'can -------------------------------------------------- ]
*/

//#define ENABLE_SUPRACAN

/****/

/* [ Casio Loopy -------------------------------------------------- ]
*/

//#define ENABLE_LOOPY

/****/

/*==== FIRMWARE OPTIONS ===========================================*/

/* [ Config File -------------------------------------------------- ]
    Allow changing some configuration values via a config file. You
    generally can only use the config to set options or disable
    certain featuress. It cannot be used to toggle firmware options
    on, only off.

    Note For Developers: See OSCR.* for info.

    Filename: config.txt
*/

//#define ENABLE_CONFIG

/****/

/* [ LCD: Background Color ---------------------------------------- ]
    Set the backlight color of the LCD if you have one.

    Can be set using config:
      lcd.confColor=1
      lcd.red=0
      lcd.green=0
      lcd.blue=0

    PARAMETERS:
      Green, Red, Blue
*/

#define OPTION_LCD_BG_COLOR 100, 0, 0

/****/

/* [ 3.3V Stability Fix (3V3FIX) ---------------------------------- ]
    Enable this if you are having stability issues when using 3.3V,
    works best with VSELECT.

    If not using VSELECT, always turn the cart reader on with the
    voltage switch set to 5V and switch to 5V before selecting a
    cartridge from the menu.
*/

//#define ENABLE_3V3FIX

/****/

/* [ Updater ------------------------------------------------------ ]
    Disable this if you don't plan to/want to use the firmware
    updater utility. This setting is ignored on hardware versions
    other than HW5 and HW3.
*/

#define ENABLE_UPDATER

/****/

/* [ Self Test ---------------------------------------------------- ]
    Tests for shorts and other issues in your OSCR build.
*/

#define ENABLE_SELFTEST

/****/

/* [ Logging ------------------------------------------------------ ]
    Write all info to OSCR_LOG.txt in root dir

    Can be toggled off using config:
      oscr.logging=0
*/

#define ENABLE_GLOBAL_LOG

/****/

/* [ RTC: IC Type ------------------------------------------------- ]
    When the RTC module is installed, choose the type here. This
    setting is ignored if the RTC option is not enabled.
*/

#define DS3231
//#define DS1307

/****/

/* [ SNES Core/CLOCKGEN: Read Clock Generator Calibration Data ---- ]
    Toggle clock calibration menu and whether or not to use calibration data from snes_clk.txt
*/

//#define OPTION_CLOCKGEN_CALIBRATION
//#define OPTION_CLOCKGEN_USE_CALIBRATION

/****/

/* [ MegaDrive/Genesis Core: Compatibility Settings --------------- ]
    Allows you to create a text file on the SD card called
    "mdconf.txt" which you should place the following into:

    [segaSram16bit] N

    Where N is:
      0: Output each byte once. Not supported by emulators. (default)
      1: Duplicate each byte. Usable by Kega Fusion.
      2: Same as 1 + pad with 0xFF so that the file size is 64KB.

    **
    ** DEPRECATED: Use the config file instead. See below.
    **
*/

//#define use_md_conf

/*
    Configure how the MD core saves are formatted.

    Can be set using config:
      md.saveType=0

    If config is enabled, this option does nothing -- use the config.

    Options:
      0: Output each byte once. Not supported by emulators. (default)
      1: Duplicate each byte. Usable by Kega Fusion.
      2: Same as 1 + pad with 0xFF so that the file size is 64KB.
*/

//#define OPTION_MD_DEFAULT_SAVE_TYPE 0

/****/

/* [ N64 Core: Fast CRC ------------------------------------------- ]
    Toggle so the CRC for N64 Roms will be calculated during dumping
    from memory instead of after dumping from SD card, not compatible
    with all Cart Readers
*/

//#define OPTION_N64_FASTCRC

/****/

/* [ N64 Core: Log Summary ---------------------------------------- ]
    Enable to save a n64log.txt file with rom info in /N64/ROM
*/

//#define OPTION_N64_SAVESUMMARY

/****/

/*==== PROCESSING =================================================*/

/*
              You probably shouldn't change this stuff!
*/

#if defined(ENABLE_CONFIG)
# define CONFIG_FILE       "config.txt"
// Define the max length of the key=value pairs
// Do your best not to have to increase these.
# define CONFIG_KEY_MAX    32
# define CONFIG_VALUE_MAX  32
#endif

#if (defined(HW4) || defined(HW5))
# define ENABLE_LCD
# define ENABLE_NEOPIXEL
# define ENABLE_ROTARY
//# define rotate_counter_clockwise
# define ENABLE_CLOCKGEN
# define OPTION_N64_FASTCRC
# define OPTION_WS_ADAPTER_V2
#endif

#if (defined(HW2) || defined(HW3))
# define ENABLE_OLED
# define ENABLE_BUTTON2
# define ENABLE_CLOCKGEN
# define ENABLE_CA_LED
# define OPTION_N64_FASTCRC
#endif

#if defined(HW1)
# define ENABLE_OLED
//#define ENABLE_CLOCKGEN
//#define OPTION_N64_FASTCRC
#endif

#if defined(SERIAL_MONITOR)
# define ENABLE_SERIAL
//#define ENABLE_CLOCKGEN
//#define OPTION_N64_FASTCRC
#endif

/* Firmware updater only works with HW3 and HW5 */
#if !(defined(HW5) || defined(HW3))
# undef ENABLE_UPDATER
#endif

/* End of settings */

#endif /* CONFIG_H_ */