diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2018-11-05 13:01:55 +0100 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-04-06 18:15:41 +0200 |
commit | 180cef835bf40d0081895773aaa637ac926bb0ac (patch) | |
tree | 48c380d76c0ea40931cb5e863b40fc5dfa1ecba4 /apps/plugins/zxbox | |
parent | ced3a20aacf26642ccc3ffd136f64247c67e5769 (diff) | |
download | rockbox-180cef835bf40d0081895773aaa637ac926bb0ac.tar.gz rockbox-180cef835bf40d0081895773aaa637ac926bb0ac.zip |
xDuoo X3II and X20 port
Provided by Roman Stolyarov
Integration, Refactoring, and Upstreaming by Solomon Peachy
X3II confirmed working by forum tester, X20 is nearly identical.
This includes bootloader, main firmware, and the flash image patcher.
Eventual Todo:
* Further refactor AGPTek Rocker & xduoo hiby bootloaders
* Further refactor AGPTek Rocker & xduoo hosted platform code
Change-Id: I34a674051d368efcc75d1d18c725971fe46c3eee
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r-- | apps/plugins/zxbox/keymaps.h | 16 | ||||
-rw-r--r-- | apps/plugins/zxbox/zxbox_keyb.c | 18 |
2 files changed, 34 insertions, 0 deletions
diff --git a/apps/plugins/zxbox/keymaps.h b/apps/plugins/zxbox/keymaps.h index ce527c561e..53dd9e8d88 100644 --- a/apps/plugins/zxbox/keymaps.h +++ b/apps/plugins/zxbox/keymaps.h | |||
@@ -290,6 +290,22 @@ | |||
290 | #define ZX_UP BUTTON_HOME | 290 | #define ZX_UP BUTTON_HOME |
291 | #define ZX_DOWN BUTTON_OPTION | 291 | #define ZX_DOWN BUTTON_OPTION |
292 | 292 | ||
293 | #elif CONFIG_KEYPAD == XDUOO_X3II_PAD | ||
294 | #define ZX_SELECT BUTTON_PLAY | ||
295 | #define ZX_MENU BUTTON_POWER | ||
296 | #define ZX_LEFT BUTTON_PREV | ||
297 | #define ZX_RIGHT BUTTON_NEXT | ||
298 | #define ZX_UP BUTTON_HOME | ||
299 | #define ZX_DOWN BUTTON_OPTION | ||
300 | |||
301 | #elif CONFIG_KEYPAD == XDUOO_X20_PAD | ||
302 | #define ZX_SELECT BUTTON_PLAY | ||
303 | #define ZX_MENU BUTTON_POWER | ||
304 | #define ZX_LEFT BUTTON_PREV | ||
305 | #define ZX_RIGHT BUTTON_NEXT | ||
306 | #define ZX_UP BUTTON_HOME | ||
307 | #define ZX_DOWN BUTTON_OPTION | ||
308 | |||
293 | #elif CONFIG_KEYPAD == IHIFI_770_PAD | 309 | #elif CONFIG_KEYPAD == IHIFI_770_PAD |
294 | #define ZX_SELECT BUTTON_PLAY | 310 | #define ZX_SELECT BUTTON_PLAY |
295 | #define ZX_MENU BUTTON_POWER | 311 | #define ZX_MENU BUTTON_POWER |
diff --git a/apps/plugins/zxbox/zxbox_keyb.c b/apps/plugins/zxbox/zxbox_keyb.c index b3f1ca70e8..4a26accc8a 100644 --- a/apps/plugins/zxbox/zxbox_keyb.c +++ b/apps/plugins/zxbox/zxbox_keyb.c | |||
@@ -287,6 +287,24 @@ | |||
287 | #define KBD_UP BUTTON_HOME | 287 | #define KBD_UP BUTTON_HOME |
288 | #define KBD_DOWN BUTTON_OPTION | 288 | #define KBD_DOWN BUTTON_OPTION |
289 | 289 | ||
290 | #elif CONFIG_KEYPAD == XDUOO_X3II_PAD | ||
291 | |||
292 | #define KBD_SELECT BUTTON_PLAY | ||
293 | #define KBD_ABORT BUTTON_POWER | ||
294 | #define KBD_LEFT BUTTON_PREV | ||
295 | #define KBD_RIGHT BUTTON_NEXT | ||
296 | #define KBD_UP BUTTON_HOME | ||
297 | #define KBD_DOWN BUTTON_OPTION | ||
298 | |||
299 | #elif CONFIG_KEYPAD == XDUOO_X20_PAD | ||
300 | |||
301 | #define KBD_SELECT BUTTON_PLAY | ||
302 | #define KBD_ABORT BUTTON_POWER | ||
303 | #define KBD_LEFT BUTTON_PREV | ||
304 | #define KBD_RIGHT BUTTON_NEXT | ||
305 | #define KBD_UP BUTTON_HOME | ||
306 | #define KBD_DOWN BUTTON_OPTION | ||
307 | |||
290 | #elif CONFIG_KEYPAD == IHIFI_770_PAD | 308 | #elif CONFIG_KEYPAD == IHIFI_770_PAD |
291 | 309 | ||
292 | #define KBD_SELECT BUTTON_PLAY | 310 | #define KBD_SELECT BUTTON_PLAY |