Support new Fuzev2 revisions (fuzev2_variant == 1)

- Revert BUTTON_HOME
- Modifications to SD driver (µSD not working yet)

TODO: µSD and FM radio

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27492 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-07-19 15:29:28 +00:00
parent a083b9a9e0
commit e44b65c806
5 changed files with 61 additions and 26 deletions

View file

@ -257,6 +257,9 @@ int button_read_device(void)
btn |= BUTTON_RIGHT;
if (GPIOB_PIN(1) & 1<<1)
btn |= BUTTON_HOME;
if (fuzev2_variant == 1)
btn ^= BUTTON_HOME;
if (gpiod6 & 1<<6)
{ /* power/hold is on the same pin. we know it's hold if the bit isn't
* set now anymore */