diff options
author | Vitja Makarov <vitja.makarov@gmail.com> | 2008-10-22 11:58:49 +0000 |
---|---|---|
committer | Vitja Makarov <vitja.makarov@gmail.com> | 2008-10-22 11:58:49 +0000 |
commit | 9004289a147460c3d2542a5f4a90c412bba30c8b (patch) | |
tree | f4c7db295c87035914827ec5fb657daf6d9d610b | |
parent | 7b77910de415d6156e9c4ab95f707a0b71020f30 (diff) | |
download | rockbox-9004289a147460c3d2542a5f4a90c412bba30c8b.tar.gz rockbox-9004289a147460c3d2542a5f4a90c412bba30c8b.zip |
iaudio7: simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18861 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/export/config-iaudio7.h | 16 | ||||
-rw-r--r-- | uisimulator/sdl/UI-iaudio7.bmp | bin | 0 -> 422918 bytes | |||
-rw-r--r-- | uisimulator/sdl/button.c | 28 | ||||
-rw-r--r-- | uisimulator/sdl/uisdl.h | 13 |
4 files changed, 48 insertions, 9 deletions
diff --git a/firmware/export/config-iaudio7.h b/firmware/export/config-iaudio7.h index 8934470537..cce357ec4b 100644 --- a/firmware/export/config-iaudio7.h +++ b/firmware/export/config-iaudio7.h | |||
@@ -14,6 +14,13 @@ | |||
14 | explicitly if different */ | 14 | explicitly if different */ |
15 | #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO) | 15 | #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO) |
16 | 16 | ||
17 | /* FM Tuner */ | ||
18 | #define CONFIG_TUNER LV24020LP | ||
19 | #define HAVE_TUNER_PWR_CTRL | ||
20 | |||
21 | /* Define this for FM radio input available */ | ||
22 | #define HAVE_FMRADIO_IN | ||
23 | |||
17 | /* define hardware samples rate caps mask */ | 24 | /* define hardware samples rate caps mask */ |
18 | #define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/) | 25 | #define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/) |
19 | 26 | ||
@@ -49,7 +56,7 @@ | |||
49 | 56 | ||
50 | #define HAVE_FAT16SUPPORT | 57 | #define HAVE_FAT16SUPPORT |
51 | 58 | ||
52 | #if 0 /* Enable for USB driver test */ | 59 | #if 0 && !defined(SIMULATOR) /* Enable for USB driver test */ |
53 | #define HAVE_USBSTACK | 60 | #define HAVE_USBSTACK |
54 | #define USE_HIGH_SPEED | 61 | #define USE_HIGH_SPEED |
55 | #define USB_VENDOR_ID 0x0e21 | 62 | #define USB_VENDOR_ID 0x0e21 |
@@ -144,13 +151,6 @@ | |||
144 | 151 | ||
145 | #define CONFIG_LCD LCD_IAUDIO67 | 152 | #define CONFIG_LCD LCD_IAUDIO67 |
146 | 153 | ||
147 | /* FM Tuner */ | ||
148 | #define CONFIG_TUNER LV24020LP | ||
149 | #define HAVE_TUNER_PWR_CTRL | ||
150 | |||
151 | /* Define this for FM radio input available */ | ||
152 | #define HAVE_FMRADIO_IN | ||
153 | |||
154 | #define BOOTFILE_EXT "iaudio" | 154 | #define BOOTFILE_EXT "iaudio" |
155 | #define BOOTFILE "rockbox." BOOTFILE_EXT | 155 | #define BOOTFILE "rockbox." BOOTFILE_EXT |
156 | #define BOOTDIR "/" | 156 | #define BOOTDIR "/" |
diff --git a/uisimulator/sdl/UI-iaudio7.bmp b/uisimulator/sdl/UI-iaudio7.bmp new file mode 100644 index 0000000000..c349477747 --- /dev/null +++ b/uisimulator/sdl/UI-iaudio7.bmp | |||
Binary files differ | |||
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 47ecb2b368..2a06f2e435 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c | |||
@@ -810,7 +810,33 @@ void button_event(int key, bool pressed) | |||
810 | case SDLK_KP_ENTER: | 810 | case SDLK_KP_ENTER: |
811 | new_btn = BUTTON_MENU; | 811 | new_btn = BUTTON_MENU; |
812 | break; | 812 | break; |
813 | 813 | #elif CONFIG_KEYPAD == IAUDIO67_PAD | |
814 | case SDLK_UP: | ||
815 | new_btn = BUTTON_RIGHT; | ||
816 | break; | ||
817 | case SDLK_DOWN: | ||
818 | new_btn = BUTTON_LEFT; | ||
819 | break; | ||
820 | case SDLK_LEFT: | ||
821 | new_btn = BUTTON_STOP; | ||
822 | break; | ||
823 | case SDLK_RETURN: | ||
824 | case SDLK_KP_ENTER: | ||
825 | case SDLK_RIGHT: | ||
826 | new_btn = BUTTON_PLAY; | ||
827 | break; | ||
828 | case SDLK_PLUS: | ||
829 | new_btn = BUTTON_VOLUP; | ||
830 | break; | ||
831 | case SDLK_MINUS: | ||
832 | new_btn = BUTTON_VOLDOWN; | ||
833 | break; | ||
834 | case SDLK_SPACE: | ||
835 | new_btn = BUTTON_MENU; | ||
836 | break; | ||
837 | case SDLK_BACKSPACE: | ||
838 | new_btn = BUTTON_POWER; | ||
839 | break; | ||
814 | #elif CONFIG_KEYPAD == CREATIVEZVM_PAD | 840 | #elif CONFIG_KEYPAD == CREATIVEZVM_PAD |
815 | case SDLK_KP1: | 841 | case SDLK_KP1: |
816 | new_btn = BUTTON_BACK; | 842 | new_btn = BUTTON_BACK; |
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index 625258a86f..88271eb81e 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h | |||
@@ -376,6 +376,19 @@ | |||
376 | #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ | 376 | #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ |
377 | #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ | 377 | #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ |
378 | 378 | ||
379 | #elif defined(IAUDIO_7) | ||
380 | #define UI_TITLE "iAudio7" | ||
381 | #define UI_WIDTH 494 /* width of GUI window */ | ||
382 | #define UI_HEIGHT 214 /* height of GUI window */ | ||
383 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ | ||
384 | #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ | ||
385 | #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ | ||
386 | #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ | ||
387 | #define UI_LCD_POSX 131 /* x position of lcd */ | ||
388 | #define UI_LCD_POSY 38 /* y position of lcd */ | ||
389 | #define UI_LCD_WIDTH 160 | ||
390 | #define UI_LCD_HEIGHT 128 | ||
391 | |||
379 | #elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB) | 392 | #elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB) |
380 | #ifdef CREATIVE_ZVM | 393 | #ifdef CREATIVE_ZVM |
381 | #define UI_TITLE "Creative Zen Vision:M 30GB" | 394 | #define UI_TITLE "Creative Zen Vision:M 30GB" |