diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-01-14 22:04:48 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-01-14 22:04:48 +0000 |
commit | 47ea030e2e68a51f91a2c2302b7ea4d3ee1a2a07 (patch) | |
tree | 0a48ce653e22ec9a2673474f718217d9659e0c6b /apps/plugins | |
parent | b30ca8ca5ab6c8ea27b8fe1f5fb38ebad09b7e62 (diff) | |
download | rockbox-47ea030e2e68a51f91a2c2302b7ea4d3ee1a2a07.tar.gz rockbox-47ea030e2e68a51f91a2c2302b7ea4d3ee1a2a07.zip |
Initial Cowon D2 commit:
* bootloader test program (basic LCD & button drivers, reads touchscreen)
* work-in-progress stubs for main build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16090 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/SOURCES | 2 | ||||
-rw-r--r-- | apps/plugins/lib/pluginlib_actions.c | 22 | ||||
-rw-r--r-- | apps/plugins/plugin.lds | 4 |
3 files changed, 27 insertions, 1 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index 392544dbbf..4444934e36 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES | |||
@@ -1,4 +1,4 @@ | |||
1 | #ifndef OLYMPUS_MROBE_100 | 1 | #if !defined(OLYMPUS_MROBE_100) |
2 | 2 | ||
3 | /* plugins common to all models */ | 3 | /* plugins common to all models */ |
4 | battery_bench.c | 4 | battery_bench.c |
diff --git a/apps/plugins/lib/pluginlib_actions.c b/apps/plugins/lib/pluginlib_actions.c index d277fe6d0d..e74ffc0315 100644 --- a/apps/plugins/lib/pluginlib_actions.c +++ b/apps/plugins/lib/pluginlib_actions.c | |||
@@ -130,6 +130,15 @@ const struct button_mapping generic_directions[] = | |||
130 | { PLA_DOWN_REPEAT, BUTTON_RC_DOWN|BUTTON_REPEAT, BUTTON_NONE}, | 130 | { PLA_DOWN_REPEAT, BUTTON_RC_DOWN|BUTTON_REPEAT, BUTTON_NONE}, |
131 | { PLA_LEFT_REPEAT, BUTTON_RC_REW|BUTTON_REPEAT, BUTTON_NONE}, | 131 | { PLA_LEFT_REPEAT, BUTTON_RC_REW|BUTTON_REPEAT, BUTTON_NONE}, |
132 | { PLA_RIGHT_REPEAT, BUTTON_RC_FF|BUTTON_REPEAT, BUTTON_NONE}, | 132 | { PLA_RIGHT_REPEAT, BUTTON_RC_FF|BUTTON_REPEAT, BUTTON_NONE}, |
133 | #elif (CONFIG_KEYPAD == COWOND2_PAD) | ||
134 | { PLA_UP, BUTTON_UP, BUTTON_NONE}, | ||
135 | { PLA_DOWN, BUTTON_DOWN, BUTTON_NONE}, | ||
136 | { PLA_LEFT, BUTTON_UP, BUTTON_MENU}, | ||
137 | { PLA_RIGHT, BUTTON_DOWN, BUTTON_MENU}, | ||
138 | { PLA_UP_REPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE}, | ||
139 | { PLA_DOWN_REPEAT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE}, | ||
140 | { PLA_LEFT_REPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_MENU}, | ||
141 | { PLA_RIGHT_REPEAT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_MENU}, | ||
133 | #else | 142 | #else |
134 | #error pluginlib_actions: Unsupported keypad | 143 | #error pluginlib_actions: Unsupported keypad |
135 | #endif | 144 | #endif |
@@ -209,6 +218,13 @@ const struct button_mapping generic_left_right_fire[] = | |||
209 | { PLA_RIGHT_REPEAT, BUTTON_RC_FF|BUTTON_REPEAT, BUTTON_NONE}, | 218 | { PLA_RIGHT_REPEAT, BUTTON_RC_FF|BUTTON_REPEAT, BUTTON_NONE}, |
210 | { PLA_FIRE, BUTTON_RC_HEART, BUTTON_NONE}, | 219 | { PLA_FIRE, BUTTON_RC_HEART, BUTTON_NONE}, |
211 | { PLA_FIRE_REPEAT, BUTTON_RC_HEART|BUTTON_REPEAT, BUTTON_NONE}, | 220 | { PLA_FIRE_REPEAT, BUTTON_RC_HEART|BUTTON_REPEAT, BUTTON_NONE}, |
221 | #elif (CONFIG_KEYPAD == COWOND2_PAD) | ||
222 | { PLA_LEFT, BUTTON_UP, BUTTON_NONE}, | ||
223 | { PLA_RIGHT, BUTTON_DOWN, BUTTON_NONE}, | ||
224 | { PLA_LEFT_REPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE}, | ||
225 | { PLA_RIGHT_REPEAT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE}, | ||
226 | { PLA_FIRE, BUTTON_MENU, BUTTON_NONE}, | ||
227 | { PLA_FIRE_REPEAT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE}, | ||
212 | #else | 228 | #else |
213 | #error pluginlib_actions: Unsupported keypad | 229 | #error pluginlib_actions: Unsupported keypad |
214 | #endif | 230 | #endif |
@@ -307,6 +323,12 @@ const struct button_mapping generic_actions[] = | |||
307 | {PLA_MENU, BUTTON_RC_MODE, BUTTON_NONE}, | 323 | {PLA_MENU, BUTTON_RC_MODE, BUTTON_NONE}, |
308 | {PLA_FIRE, BUTTON_RC_HEART, BUTTON_NONE}, | 324 | {PLA_FIRE, BUTTON_RC_HEART, BUTTON_NONE}, |
309 | {PLA_FIRE_REPEAT, BUTTON_RC_HEART|BUTTON_REPEAT, BUTTON_NONE}, | 325 | {PLA_FIRE_REPEAT, BUTTON_RC_HEART|BUTTON_REPEAT, BUTTON_NONE}, |
326 | #elif (CONFIG_KEYPAD == COWOND2_PAD) | ||
327 | {PLA_QUIT, BUTTON_POWER, BUTTON_NONE}, | ||
328 | {PLA_START, BUTTON_UP, BUTTON_NONE}, | ||
329 | {PLA_MENU, BUTTON_DOWN, BUTTON_NONE}, | ||
330 | {PLA_FIRE, BUTTON_MENU, BUTTON_NONE}, | ||
331 | {PLA_FIRE_REPEAT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE}, | ||
310 | #else | 332 | #else |
311 | #error pluginlib_actions: Unsupported keypad | 333 | #error pluginlib_actions: Unsupported keypad |
312 | #endif | 334 | #endif |
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index e877811365..a08a4a8a54 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds | |||
@@ -60,6 +60,10 @@ OUTPUT_FORMAT(elf32-sh) | |||
60 | #define IRAMORIG DRAMORIG | 60 | #define IRAMORIG DRAMORIG |
61 | #define IRAMSIZE 0x4000 | 61 | #define IRAMSIZE 0x4000 |
62 | #define IRAM DRAM | 62 | #define IRAM DRAM |
63 | #elif defined(CPU_TCC780X) | ||
64 | #define DRAMORIG 0x20000000 | ||
65 | #define IRAMORIG 0x1000c000 | ||
66 | #define IRAMSIZE 0xc000 | ||
63 | #else | 67 | #else |
64 | #define DRAMORIG 0x09000000 + STUBOFFSET | 68 | #define DRAMORIG 0x09000000 + STUBOFFSET |
65 | #endif | 69 | #endif |