summaryrefslogtreecommitdiff
path: root/apps/plugins/minesweeper.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-01-14 13:48:09 +0000
committerDave Chapman <dave@dchapman.com>2007-01-14 13:48:09 +0000
commitd64e626387e21dc6a7ab374f17dec1e902cd9779 (patch)
tree6a16bbf5de0becfd6588bff30c11c8ed9fd25c9e /apps/plugins/minesweeper.c
parent72f1027b3edae94ad9962c654519c2cab8566078 (diff)
downloadrockbox-d64e626387e21dc6a7ab374f17dec1e902cd9779.tar.gz
rockbox-d64e626387e21dc6a7ab374f17dec1e902cd9779.zip
Start of work on a port to the Archos 'AV300' (AV320/340/380) - a working UI simulator (but with a dummy background image for now) and the beginnings of the target-specific firmare code. Port is temporarily using a 2bpp LCD buffer format - the AV300 has a 320x240 colour (YCbCr-based) LCD which will need a new framebuffer format and drawing routines, but the LCD is also capable of various paletted bitmap modes, one of which has an identical framebuffer format to the greyscale ipods. Buttons (and hence the button mappings) are identical to the Archos Recorder, with the exception that the PLAY button on the Recorder is replaced by pressing the joystick on the AV300 (which I call BUTTON_SELECT). The initial port will begin by being strictly HWCODEC, but will evolve to be a hybrid SWCODEC/HWCODEC platform - it has a MAS3587F but also a main CPU (54MHz arm7tdmi plus DSP) capable of software decoding of at least some formats.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12008 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/minesweeper.c')
-rw-r--r--apps/plugins/minesweeper.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c
index 4859e4772f..2500fed8ce 100644
--- a/apps/plugins/minesweeper.c
+++ b/apps/plugins/minesweeper.c
@@ -45,6 +45,19 @@ enum minesweeper_status {
45# define MINESWP_RIGHT (BUTTON_F1 | BUTTON_RIGHT) 45# define MINESWP_RIGHT (BUTTON_F1 | BUTTON_RIGHT)
46# define MINESWP_LEFT (BUTTON_F1 | BUTTON_LEFT) 46# define MINESWP_LEFT (BUTTON_F1 | BUTTON_LEFT)
47 47
48#elif CONFIG_KEYPAD == ARCHOS_AV300_PAD
49# define MINESWP_UP BUTTON_UP
50# define MINESWP_DOWN BUTTON_DOWN
51# define MINESWP_QUIT BUTTON_OFF
52# define MINESWP_START BUTTON_ON
53# define MINESWP_TOGGLE BUTTON_SELECT
54# define MINESWP_TOGGLE2 BUTTON_F1
55# define MINESWP_DISCOVER BUTTON_ON
56# define MINESWP_DISCOVER2 BUTTON_F2
57# define MINESWP_INFO BUTTON_F3
58# define MINESWP_RIGHT (BUTTON_F1 | BUTTON_RIGHT)
59# define MINESWP_LEFT (BUTTON_F1 | BUTTON_LEFT)
60
48#elif CONFIG_KEYPAD == ONDIO_PAD 61#elif CONFIG_KEYPAD == ONDIO_PAD
49# define MINESWP_UP BUTTON_UP 62# define MINESWP_UP BUTTON_UP
50# define MINESWP_DOWN BUTTON_DOWN 63# define MINESWP_DOWN BUTTON_DOWN
@@ -423,6 +436,8 @@ enum minesweeper_status menu( void )
423 rb->lcd_puts( 0, 6, 436 rb->lcd_puts( 0, 6,
424#if CONFIG_KEYPAD == RECORDER_PAD 437#if CONFIG_KEYPAD == RECORDER_PAD
425 "ON to start" 438 "ON to start"
439#elif CONFIG_KEYPAD == ARCHOS_AV300_PAD
440 "ON to start"
426#elif CONFIG_KEYPAD == ONDIO_PAD 441#elif CONFIG_KEYPAD == ONDIO_PAD
427 "MODE to start" 442 "MODE to start"
428#elif (CONFIG_KEYPAD == IRIVER_H100_PAD) \ 443#elif (CONFIG_KEYPAD == IRIVER_H100_PAD) \