diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2011-04-08 21:51:46 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2011-04-08 21:51:46 +0000 |
commit | 67a4e9befcd13750dabf53418682d277b8a351e7 (patch) | |
tree | 56e95ac2923a4779500c79871a3ef9e71bfbe84a | |
parent | e7c6ba66aa971456829a485239178fb4185e6b6a (diff) |
Sansa Clip v2: there's no need to use |= or &= to manipulate a GPIO for the button light
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29695 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipv2/backlight-target.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipv2/backlight-target.h b/firmware/target/arm/as3525/sansa-clipv2/backlight-target.h index 3000b575c7..b2da63dbff 100644 --- a/firmware/target/arm/as3525/sansa-clipv2/backlight-target.h +++ b/firmware/target/arm/as3525/sansa-clipv2/backlight-target.h @@ -36,12 +36,12 @@ static inline bool _backlight_init(void) static inline void _buttonlight_on(void) { - GPIOA_PIN(5) |= 1<<5; + GPIOA_PIN(5) = 1<<5; } static inline void _buttonlight_off(void) { - GPIOA_PIN(5) &= ~(1<<5); + GPIOA_PIN(5) = 0; } |