diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-19 15:29:28 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-19 15:29:28 +0000 |
commit | e44b65c806fa4fa7a30a9c2a4dce7f82d859ac09 (patch) | |
tree | a2ef06c69408bbed8847cc8e0b5c46fb46549482 /firmware/target/arm/as3525/sansa-fuzev2 | |
parent | a083b9a9e083f3c1fca35becdcbe25d606ed3dff (diff) |
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
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuzev2')
-rw-r--r-- | firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c index 060933d0ac..5ec2025667 100644 --- a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c +++ b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c @@ -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 */ |