Sansa Clip simulator

First draft at keymapping based on e200

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18948 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2008-10-31 18:54:37 +00:00
parent c5685ed72d
commit cd9b1379ff
10 changed files with 390 additions and 22 deletions

View file

@ -50,10 +50,10 @@ int button_read_device(void)
/* C4B0 is unused */
if (GPIOB_PIN(1))
result |= BUTTON_VOLUP;
result |= BUTTON_VOL_UP;
if (GPIOB_PIN(2))
result |= BUTTON_PLAY;
result |= BUTTON_UP;
GPIOC_PIN(4) = 0x00;
@ -76,7 +76,7 @@ int button_read_device(void)
result |= BUTTON_DOWN;
if (GPIOB_PIN(1))
result |= BUTTON_VOLDOWN;
result |= BUTTON_VOL_DOWN;
if (GPIOB_PIN(2))
result |= BUTTON_HOME;