RaaA: Enable plugins for application builds
[maemo-rb.git] / firmware / export / config / application.h
blob0aa4a3f54db4329270300b5e2055b3abac757da5
1 /*
2 * This config file is for Rockbox as an application!
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
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)
11 #elif MAEMO4
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 */
17 #define MODEL_NUMBER 100
19 #define MODEL_NAME "Rockbox"
21 #define USB_NONE
23 /* define this if you have a bitmap LCD display */
24 #define HAVE_LCD_BITMAP
26 /* define this if you have a colour LCD */
27 #define HAVE_LCD_COLOR
29 /* define this if you want album art for this target */
30 #define HAVE_ALBUMART
32 /* define this to enable bitmap scaling */
33 #define HAVE_BMP_SCALING
35 /* define this to enable JPEG decoding */
36 #define HAVE_JPEG
38 /* define this if you have access to the quickscreen */
39 #define HAVE_QUICKSCREEN
40 /* define this if you have access to the pitchscreen */
41 #define HAVE_PITCHSCREEN
43 /* define this if you would like tagcache to build on this target */
44 #define HAVE_TAGCACHE
46 /* LCD dimensions
48 * overriden by configure for application builds */
49 #ifndef LCD_WIDTH
50 #define LCD_WIDTH 320
51 #endif
53 #ifndef LCD_HEIGHT
54 #define LCD_HEIGHT 480
55 #endif
57 #define LCD_DEPTH 16
58 #define LCD_PIXELFORMAT 565
60 #if (CONFIG_PLATFORM & PLATFORM_ANDROID)
61 #define HAVE_LCD_ENABLE
62 #endif
64 /* define this to indicate your device's keypad */
65 #define HAVE_TOUCHSCREEN
66 #define HAVE_BUTTON_DATA
68 /* define this if you have RTC RAM available for settings */
69 //#define HAVE_RTC_RAM
71 /* The number of bytes reserved for loadable codecs */
72 #define CODEC_SIZE 0x100000
74 /* The number of bytes reserved for loadable plugins */
75 #define PLUGIN_BUFFER_SIZE 0x80000
77 #define AB_REPEAT_ENABLE
79 /* Define this if you do software codec */
80 #define CONFIG_CODEC SWCODEC
82 /* Work around debug macro expansion of strncmp in scratchbox */
83 #if (CONFIG_PLATFORM & PLATFORM_MAEMO)
84 #define _HAVE_STRING_ARCH_strncmp
85 #endif
87 #if (CONFIG_PLATFORM & (PLATFORM_ANDROID|PLATFORM_MAEMO))
88 #define HAVE_MULTIMEDIA_KEYS
89 #endif
91 #if (CONFIG_PLATFORM & PLATFORM_ANDROID)
92 #define CONFIG_KEYPAD ANDROID_PAD
93 #elif (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO))
94 #define HAVE_SCROLLWHEEL
95 #define CONFIG_KEYPAD SDL_PAD
96 #else
97 #error unknown platform
98 #endif
100 #if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO))
101 /* Use SDL audio/pcm in a SDL app build */
102 #define HAVE_SDL
103 #define HAVE_SDL_AUDIO
104 #endif
106 #define HAVE_SW_TONE_CONTROLS
108 /* Define current usage levels. */
109 #define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */
110 #define CURRENT_BACKLIGHT 30 /* TBD */
111 #define CURRENT_RECORD 0 /* no recording yet */
113 /* Define this to the CPU frequency */
115 #define CPU_FREQ 48000000
118 /* Offset ( in the firmware file's header ) to the file CRC */
119 #define FIRMWARE_OFFSET_FILE_CRC 0
121 /* Offset ( in the firmware file's header ) to the real data */
122 #define FIRMWARE_OFFSET_FILE_DATA 8
124 #define CONFIG_LCD LCD_COWOND2
126 /* Define this if a programmable hotkey is mapped */
127 //#define HAVE_HOTKEY
129 #define BOOTDIR "/.rockbox"