diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/config-gmini120.h | 22 | ||||
-rw-r--r-- | firmware/export/config.h | 8 |
2 files changed, 24 insertions, 6 deletions
diff --git a/firmware/export/config-gmini120.h b/firmware/export/config-gmini120.h index 20804c5007..1a835be3e8 100644 --- a/firmware/export/config-gmini120.h +++ b/firmware/export/config-gmini120.h | |||
@@ -12,17 +12,31 @@ | |||
12 | #define LCD_HEIGHT 64 | 12 | #define LCD_HEIGHT 64 |
13 | 13 | ||
14 | /* When button.h is updated with gmini details, then fix this: */ | 14 | /* When button.h is updated with gmini details, then fix this: */ |
15 | #define CONFIG_KEYPAD /*GMINI_PAD */ IRIVER_H100_PAD | 15 | #define CONFIG_KEYPAD GMINI100_PAD |
16 | |||
17 | #define CONFIG_LCD GMINI100_LCD | ||
16 | 18 | ||
17 | #ifndef SIMULATOR | 19 | #ifndef SIMULATOR |
18 | 20 | ||
19 | /* Define this if you have a CalmRISC16 */ | 21 | /* Define this if you have a TCC730 (CalmRISC16) */ |
20 | #define CONFIG_CPU CR16 | 22 | #define CONFIG_CPU TCC730 |
23 | |||
24 | /* Define this if you have a gmini 100 style LCD */ | ||
25 | #define CONFIG_LCD LCD_GMINI100 | ||
21 | 26 | ||
22 | /* Type of mobile power, FIXME: probably different, make new type */ | 27 | /* Type of mobile power, FIXME: probably different, make new type */ |
23 | #define CONFIG_BATTERY | 28 | #define CONFIG_BATTERY BATT_LIION2200 |
29 | #define BATTERY_SCALE_FACTOR 6465 | ||
30 | /* chosen values at random -- jyp */ | ||
24 | 31 | ||
25 | /* Define this if the platform can charge batteries */ | 32 | /* Define this if the platform can charge batteries */ |
26 | #define HAVE_CHARGING 1 | 33 | #define HAVE_CHARGING 1 |
27 | 34 | ||
35 | #define CPU_FREQ 30000000 | ||
36 | /* approximate value (and false in general since freq is variable) */ | ||
37 | |||
38 | /* Always enable debug till we stabilize */ | ||
39 | #define EMULATOR | ||
40 | #define DEBUG | ||
41 | |||
28 | #endif | 42 | #endif |
diff --git a/firmware/export/config.h b/firmware/export/config.h index 45e8d890e3..75a1b3ff67 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -34,20 +34,24 @@ | |||
34 | /* CONFIG_CPU */ | 34 | /* CONFIG_CPU */ |
35 | #define SH7034 7034 | 35 | #define SH7034 7034 |
36 | #define MCF5249 5249 | 36 | #define MCF5249 5249 |
37 | #define CR16 16 /* lacking a proper abbrivation */ | 37 | #define TCC730 730 /* lacking a proper abbrivation */ |
38 | 38 | ||
39 | /* CONFIG_KEYPAD */ | 39 | /* CONFIG_KEYPAD */ |
40 | #define PLAYER_PAD 0 | 40 | #define PLAYER_PAD 0 |
41 | #define RECORDER_PAD 1 | 41 | #define RECORDER_PAD 1 |
42 | #define ONDIO_PAD 2 | 42 | #define ONDIO_PAD 2 |
43 | #define IRIVER_H100_PAD 3 | 43 | #define IRIVER_H100_PAD 3 |
44 | #define GMINI_PAD 4 | 44 | #define GMINI100_PAD 4 |
45 | 45 | ||
46 | /* CONFIG_BATTERY */ | 46 | /* CONFIG_BATTERY */ |
47 | #define BATT_LIION2200 2200 /* FM/V2 recorder type */ | 47 | #define BATT_LIION2200 2200 /* FM/V2 recorder type */ |
48 | #define BATT_4AA_NIMH 1500 | 48 | #define BATT_4AA_NIMH 1500 |
49 | #define BATT_3AAA_ALKALINE 1000 | 49 | #define BATT_3AAA_ALKALINE 1000 |
50 | 50 | ||
51 | /* CONFIG_LCD */ | ||
52 | #define LCD_GMINI100 0 | ||
53 | #define LCD_SSD1815 1 /* as used by Archos Recorders and Ondios */ | ||
54 | |||
51 | /* CONFIG_BACKLIGHT */ | 55 | /* CONFIG_BACKLIGHT */ |
52 | #define BL_PA14_LO 0 /* Player, PA14 low active */ | 56 | #define BL_PA14_LO 0 /* Player, PA14 low active */ |
53 | #define BL_RTC 1 /* Recorder, RTC square wave output */ | 57 | #define BL_RTC 1 /* Recorder, RTC square wave output */ |