mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Sansa clip zip: update mkamsboot and fix various drivers to make it boot to the main firmware
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30853 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a8cde851fb
commit
e90f961593
11 changed files with 53 additions and 47 deletions
|
|
@ -71,13 +71,13 @@ int button_read_device(void)
|
|||
udelay(500);
|
||||
|
||||
if (GPIOC_PIN(3)) {
|
||||
buttons |= BUTTON_LEFT;
|
||||
buttons |= BUTTON_RIGHT;
|
||||
}
|
||||
if (GPIOC_PIN(4)) {
|
||||
buttons |= BUTTON_SELECT;
|
||||
}
|
||||
if (GPIOC_PIN(5)) {
|
||||
buttons |= BUTTON_RIGHT;
|
||||
buttons |= BUTTON_UP;
|
||||
}
|
||||
|
||||
/* key matrix buttons, second row */
|
||||
|
|
@ -86,14 +86,14 @@ int button_read_device(void)
|
|||
udelay(500);
|
||||
|
||||
if (GPIOC_PIN(3)) {
|
||||
buttons |= BUTTON_UP;
|
||||
}
|
||||
if (GPIOC_PIN(4)) {
|
||||
buttons |= BUTTON_HOME;
|
||||
}
|
||||
if (GPIOC_PIN(5)) {
|
||||
if (GPIOC_PIN(4)) {
|
||||
buttons |= BUTTON_DOWN;
|
||||
}
|
||||
if (GPIOC_PIN(5)) {
|
||||
buttons |= BUTTON_LEFT;
|
||||
}
|
||||
|
||||
/* deselect scan rows */
|
||||
GPIOC_PIN(2) = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue