diff options
Diffstat (limited to 'firmware/export/config')
-rw-r--r-- | firmware/export/config/android.h | 99 | ||||
-rw-r--r-- | firmware/export/config/nokian8xx.h | 97 | ||||
-rw-r--r-- | firmware/export/config/nokian900.h (renamed from firmware/export/config/application.h) | 36 | ||||
-rw-r--r-- | firmware/export/config/sdlapp.h | 101 |
4 files changed, 300 insertions, 33 deletions
diff --git a/firmware/export/config/android.h b/firmware/export/config/android.h new file mode 100644 index 0000000000..db214d28b1 --- /dev/null +++ b/firmware/export/config/android.h | |||
@@ -0,0 +1,99 @@ | |||
1 | /* | ||
2 | * This config file is for Rockbox as an application on Android | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* We don't run on hardware directly */ | ||
7 | #define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_ANDROID) | ||
8 | |||
9 | /* For Rolo and boot loader */ | ||
10 | #define MODEL_NUMBER 100 | ||
11 | |||
12 | #define MODEL_NAME "Rockbox" | ||
13 | |||
14 | #define USB_NONE | ||
15 | |||
16 | /* define this if you have a bitmap LCD display */ | ||
17 | #define HAVE_LCD_BITMAP | ||
18 | |||
19 | /* define this if you have a colour LCD */ | ||
20 | #define HAVE_LCD_COLOR | ||
21 | |||
22 | /* define this if you want album art for this target */ | ||
23 | #define HAVE_ALBUMART | ||
24 | |||
25 | /* define this to enable bitmap scaling */ | ||
26 | #define HAVE_BMP_SCALING | ||
27 | |||
28 | /* define this to enable JPEG decoding */ | ||
29 | #define HAVE_JPEG | ||
30 | |||
31 | /* define this if you have access to the quickscreen */ | ||
32 | #define HAVE_QUICKSCREEN | ||
33 | /* define this if you have access to the pitchscreen */ | ||
34 | #define HAVE_PITCHSCREEN | ||
35 | |||
36 | /* define this if you would like tagcache to build on this target */ | ||
37 | #define HAVE_TAGCACHE | ||
38 | |||
39 | /* LCD dimensions | ||
40 | * | ||
41 | * overriden by configure for application builds */ | ||
42 | #ifndef LCD_WIDTH | ||
43 | #define LCD_WIDTH 320 | ||
44 | #endif | ||
45 | |||
46 | #ifndef LCD_HEIGHT | ||
47 | #define LCD_HEIGHT 480 | ||
48 | #endif | ||
49 | |||
50 | #define LCD_DEPTH 16 | ||
51 | #define LCD_PIXELFORMAT 565 | ||
52 | |||
53 | #define HAVE_LCD_ENABLE | ||
54 | |||
55 | /* define this to indicate your device's keypad */ | ||
56 | #define HAVE_TOUCHSCREEN | ||
57 | #define HAVE_BUTTON_DATA | ||
58 | |||
59 | /* define this if you have RTC RAM available for settings */ | ||
60 | //#define HAVE_RTC_RAM | ||
61 | |||
62 | /* The number of bytes reserved for loadable codecs */ | ||
63 | #define CODEC_SIZE 0x100000 | ||
64 | |||
65 | /* The number of bytes reserved for loadable plugins */ | ||
66 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
67 | |||
68 | #define AB_REPEAT_ENABLE | ||
69 | |||
70 | /* Define this if you do software codec */ | ||
71 | #define CONFIG_CODEC SWCODEC | ||
72 | |||
73 | #define HAVE_MULTIMEDIA_KEYS | ||
74 | #define CONFIG_KEYPAD ANDROID_PAD | ||
75 | |||
76 | #define HAVE_SW_TONE_CONTROLS | ||
77 | |||
78 | /* Define current usage levels. */ | ||
79 | #define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */ | ||
80 | #define CURRENT_BACKLIGHT 30 /* TBD */ | ||
81 | #define CURRENT_RECORD 0 /* no recording yet */ | ||
82 | |||
83 | /* Define this to the CPU frequency */ | ||
84 | /* | ||
85 | #define CPU_FREQ 48000000 | ||
86 | */ | ||
87 | |||
88 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
89 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
90 | |||
91 | /* Offset ( in the firmware file's header ) to the real data */ | ||
92 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
93 | |||
94 | #define CONFIG_LCD LCD_COWOND2 | ||
95 | |||
96 | /* Define this if a programmable hotkey is mapped */ | ||
97 | //#define HAVE_HOTKEY | ||
98 | |||
99 | #define BOOTDIR "/.rockbox" | ||
diff --git a/firmware/export/config/nokian8xx.h b/firmware/export/config/nokian8xx.h new file mode 100644 index 0000000000..328d73145f --- /dev/null +++ b/firmware/export/config/nokian8xx.h | |||
@@ -0,0 +1,97 @@ | |||
1 | /* | ||
2 | * This config file is for Rockbox as an application on the Nokia N8xx | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* We don't run on hardware directly */ | ||
7 | #define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_MAEMO4) | ||
8 | |||
9 | /* For Rolo and boot loader */ | ||
10 | #define MODEL_NUMBER 100 | ||
11 | |||
12 | #define MODEL_NAME "Rockbox" | ||
13 | |||
14 | #define USB_NONE | ||
15 | |||
16 | /* define this if you have a bitmap LCD display */ | ||
17 | #define HAVE_LCD_BITMAP | ||
18 | |||
19 | /* define this if you have a colour LCD */ | ||
20 | #define HAVE_LCD_COLOR | ||
21 | |||
22 | /* define this if you want album art for this target */ | ||
23 | #define HAVE_ALBUMART | ||
24 | |||
25 | /* define this to enable bitmap scaling */ | ||
26 | #define HAVE_BMP_SCALING | ||
27 | |||
28 | /* define this to enable JPEG decoding */ | ||
29 | #define HAVE_JPEG | ||
30 | |||
31 | /* define this if you have access to the quickscreen */ | ||
32 | #define HAVE_QUICKSCREEN | ||
33 | /* define this if you have access to the pitchscreen */ | ||
34 | #define HAVE_PITCHSCREEN | ||
35 | |||
36 | /* define this if you would like tagcache to build on this target */ | ||
37 | #define HAVE_TAGCACHE | ||
38 | |||
39 | /* LCD dimensions */ | ||
40 | #define LCD_WIDTH 800 | ||
41 | #define LCD_HEIGHT 480 | ||
42 | #define LCD_DEPTH 16 | ||
43 | #define LCD_PIXELFORMAT 565 | ||
44 | |||
45 | /* define this to indicate your device's keypad */ | ||
46 | #define HAVE_TOUCHSCREEN | ||
47 | #define HAVE_BUTTON_DATA | ||
48 | |||
49 | /* define this if you have RTC RAM available for settings */ | ||
50 | //#define HAVE_RTC_RAM | ||
51 | |||
52 | /* The number of bytes reserved for loadable codecs */ | ||
53 | #define CODEC_SIZE 0x100000 | ||
54 | |||
55 | /* The number of bytes reserved for loadable plugins */ | ||
56 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
57 | |||
58 | #define AB_REPEAT_ENABLE | ||
59 | |||
60 | /* Define this if you do software codec */ | ||
61 | #define CONFIG_CODEC SWCODEC | ||
62 | |||
63 | /* Work around debug macro expansion of strncmp in scratchbox */ | ||
64 | #define _HAVE_STRING_ARCH_strncmp | ||
65 | |||
66 | #define HAVE_MULTIMEDIA_KEYS | ||
67 | #define HAVE_SCROLLWHEEL | ||
68 | #define CONFIG_KEYPAD SDL_PAD | ||
69 | |||
70 | /* Use SDL audio/pcm in a SDL app build */ | ||
71 | #define HAVE_SDL | ||
72 | #define HAVE_SDL_AUDIO | ||
73 | |||
74 | #define HAVE_SW_TONE_CONTROLS | ||
75 | |||
76 | /* Define current usage levels. */ | ||
77 | #define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */ | ||
78 | #define CURRENT_BACKLIGHT 30 /* TBD */ | ||
79 | #define CURRENT_RECORD 0 /* no recording yet */ | ||
80 | |||
81 | /* Define this to the CPU frequency */ | ||
82 | /* | ||
83 | #define CPU_FREQ 48000000 | ||
84 | */ | ||
85 | |||
86 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
87 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
88 | |||
89 | /* Offset ( in the firmware file's header ) to the real data */ | ||
90 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
91 | |||
92 | #define CONFIG_LCD LCD_COWOND2 | ||
93 | |||
94 | /* Define this if a programmable hotkey is mapped */ | ||
95 | //#define HAVE_HOTKEY | ||
96 | |||
97 | #define BOOTDIR "/.rockbox" | ||
diff --git a/firmware/export/config/application.h b/firmware/export/config/nokian900.h index 0aa4a3f54d..a65dc7260b 100644 --- a/firmware/export/config/application.h +++ b/firmware/export/config/nokian900.h | |||
@@ -1,18 +1,11 @@ | |||
1 | /* | 1 | /* |
2 | * This config file is for Rockbox as an application! | 2 | * This config file is for Rockbox as an application on the Nokia N900 |
3 | */ | 3 | */ |
4 | #define TARGET_TREE /* this target is using the target tree system */ | 4 | #define TARGET_TREE /* this target is using the target tree system */ |
5 | 5 | ||
6 | /* We don't run on hardware directly */ | 6 | /* We don't run on hardware directly */ |
7 | #ifdef ANDROID | ||
8 | #define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_ANDROID) | ||
9 | #elif MAEMO5 | ||
10 | #define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_MAEMO5) | 7 | #define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_MAEMO5) |
11 | #elif MAEMO4 | 8 | |
12 | #define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_MAEMO4) | ||
13 | #else | ||
14 | #define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_SDL) | ||
15 | #endif | ||
16 | /* For Rolo and boot loader */ | 9 | /* For Rolo and boot loader */ |
17 | #define MODEL_NUMBER 100 | 10 | #define MODEL_NUMBER 100 |
18 | 11 | ||
@@ -46,21 +39,11 @@ | |||
46 | /* LCD dimensions | 39 | /* LCD dimensions |
47 | * | 40 | * |
48 | * overriden by configure for application builds */ | 41 | * overriden by configure for application builds */ |
49 | #ifndef LCD_WIDTH | 42 | #define LCD_WIDTH 800 |
50 | #define LCD_WIDTH 320 | ||
51 | #endif | ||
52 | |||
53 | #ifndef LCD_HEIGHT | ||
54 | #define LCD_HEIGHT 480 | 43 | #define LCD_HEIGHT 480 |
55 | #endif | ||
56 | |||
57 | #define LCD_DEPTH 16 | 44 | #define LCD_DEPTH 16 |
58 | #define LCD_PIXELFORMAT 565 | 45 | #define LCD_PIXELFORMAT 565 |
59 | 46 | ||
60 | #if (CONFIG_PLATFORM & PLATFORM_ANDROID) | ||
61 | #define HAVE_LCD_ENABLE | ||
62 | #endif | ||
63 | |||
64 | /* define this to indicate your device's keypad */ | 47 | /* define this to indicate your device's keypad */ |
65 | #define HAVE_TOUCHSCREEN | 48 | #define HAVE_TOUCHSCREEN |
66 | #define HAVE_BUTTON_DATA | 49 | #define HAVE_BUTTON_DATA |
@@ -80,28 +63,15 @@ | |||
80 | #define CONFIG_CODEC SWCODEC | 63 | #define CONFIG_CODEC SWCODEC |
81 | 64 | ||
82 | /* Work around debug macro expansion of strncmp in scratchbox */ | 65 | /* Work around debug macro expansion of strncmp in scratchbox */ |
83 | #if (CONFIG_PLATFORM & PLATFORM_MAEMO) | ||
84 | #define _HAVE_STRING_ARCH_strncmp | 66 | #define _HAVE_STRING_ARCH_strncmp |
85 | #endif | ||
86 | 67 | ||
87 | #if (CONFIG_PLATFORM & (PLATFORM_ANDROID|PLATFORM_MAEMO)) | ||
88 | #define HAVE_MULTIMEDIA_KEYS | 68 | #define HAVE_MULTIMEDIA_KEYS |
89 | #endif | ||
90 | |||
91 | #if (CONFIG_PLATFORM & PLATFORM_ANDROID) | ||
92 | #define CONFIG_KEYPAD ANDROID_PAD | ||
93 | #elif (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO)) | ||
94 | #define HAVE_SCROLLWHEEL | 69 | #define HAVE_SCROLLWHEEL |
95 | #define CONFIG_KEYPAD SDL_PAD | 70 | #define CONFIG_KEYPAD SDL_PAD |
96 | #else | ||
97 | #error unknown platform | ||
98 | #endif | ||
99 | 71 | ||
100 | #if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO)) | ||
101 | /* Use SDL audio/pcm in a SDL app build */ | 72 | /* Use SDL audio/pcm in a SDL app build */ |
102 | #define HAVE_SDL | 73 | #define HAVE_SDL |
103 | #define HAVE_SDL_AUDIO | 74 | #define HAVE_SDL_AUDIO |
104 | #endif | ||
105 | 75 | ||
106 | #define HAVE_SW_TONE_CONTROLS | 76 | #define HAVE_SW_TONE_CONTROLS |
107 | 77 | ||
diff --git a/firmware/export/config/sdlapp.h b/firmware/export/config/sdlapp.h new file mode 100644 index 0000000000..ef2710c999 --- /dev/null +++ b/firmware/export/config/sdlapp.h | |||
@@ -0,0 +1,101 @@ | |||
1 | /* | ||
2 | * This config file is for the SDL application | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* We don't run on hardware directly */ | ||
7 | #define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_SDL) | ||
8 | |||
9 | /* For Rolo and boot loader */ | ||
10 | #define MODEL_NUMBER 100 | ||
11 | |||
12 | #define MODEL_NAME "Rockbox" | ||
13 | |||
14 | #define USB_NONE | ||
15 | |||
16 | /* define this if you have a bitmap LCD display */ | ||
17 | #define HAVE_LCD_BITMAP | ||
18 | |||
19 | /* define this if you have a colour LCD */ | ||
20 | #define HAVE_LCD_COLOR | ||
21 | |||
22 | /* define this if you want album art for this target */ | ||
23 | #define HAVE_ALBUMART | ||
24 | |||
25 | /* define this to enable bitmap scaling */ | ||
26 | #define HAVE_BMP_SCALING | ||
27 | |||
28 | /* define this to enable JPEG decoding */ | ||
29 | #define HAVE_JPEG | ||
30 | |||
31 | /* define this if you have access to the quickscreen */ | ||
32 | #define HAVE_QUICKSCREEN | ||
33 | /* define this if you have access to the pitchscreen */ | ||
34 | #define HAVE_PITCHSCREEN | ||
35 | |||
36 | /* define this if you would like tagcache to build on this target */ | ||
37 | #define HAVE_TAGCACHE | ||
38 | |||
39 | /* LCD dimensions | ||
40 | * | ||
41 | * overriden by configure for application builds */ | ||
42 | #ifndef LCD_WIDTH | ||
43 | #define LCD_WIDTH 320 | ||
44 | #endif | ||
45 | |||
46 | #ifndef LCD_HEIGHT | ||
47 | #define LCD_HEIGHT 480 | ||
48 | #endif | ||
49 | |||
50 | #define LCD_DEPTH 16 | ||
51 | #define LCD_PIXELFORMAT 565 | ||
52 | |||
53 | /* define this to indicate your device's keypad */ | ||
54 | #define HAVE_TOUCHSCREEN | ||
55 | #define HAVE_BUTTON_DATA | ||
56 | |||
57 | /* define this if you have RTC RAM available for settings */ | ||
58 | //#define HAVE_RTC_RAM | ||
59 | |||
60 | /* The number of bytes reserved for loadable codecs */ | ||
61 | #define CODEC_SIZE 0x100000 | ||
62 | |||
63 | /* The number of bytes reserved for loadable plugins */ | ||
64 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
65 | |||
66 | #define AB_REPEAT_ENABLE | ||
67 | |||
68 | /* Define this if you do software codec */ | ||
69 | #define CONFIG_CODEC SWCODEC | ||
70 | |||
71 | #define HAVE_SCROLLWHEEL | ||
72 | #define CONFIG_KEYPAD SDL_PAD | ||
73 | |||
74 | /* Use SDL audio/pcm in a SDL app build */ | ||
75 | #define HAVE_SDL | ||
76 | #define HAVE_SDL_AUDIO | ||
77 | |||
78 | #define HAVE_SW_TONE_CONTROLS | ||
79 | |||
80 | /* Define current usage levels. */ | ||
81 | #define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */ | ||
82 | #define CURRENT_BACKLIGHT 30 /* TBD */ | ||
83 | #define CURRENT_RECORD 0 /* no recording yet */ | ||
84 | |||
85 | /* Define this to the CPU frequency */ | ||
86 | /* | ||
87 | #define CPU_FREQ 48000000 | ||
88 | */ | ||
89 | |||
90 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
91 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
92 | |||
93 | /* Offset ( in the firmware file's header ) to the real data */ | ||
94 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
95 | |||
96 | #define CONFIG_LCD LCD_COWOND2 | ||
97 | |||
98 | /* Define this if a programmable hotkey is mapped */ | ||
99 | //#define HAVE_HOTKEY | ||
100 | |||
101 | #define BOOTDIR "/.rockbox" | ||