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) | |
download | rockbox-67a4e9befcd13750dabf53418682d277b8a351e7.tar.gz rockbox-67a4e9befcd13750dabf53418682d277b8a351e7.zip |
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) | |||
36 | 36 | ||
37 | static inline void _buttonlight_on(void) | 37 | static inline void _buttonlight_on(void) |
38 | { | 38 | { |
39 | GPIOA_PIN(5) |= 1<<5; | 39 | GPIOA_PIN(5) = 1<<5; |
40 | } | 40 | } |
41 | 41 | ||
42 | static inline void _buttonlight_off(void) | 42 | static inline void _buttonlight_off(void) |
43 | { | 43 | { |
44 | GPIOA_PIN(5) &= ~(1<<5); | 44 | GPIOA_PIN(5) = 0; |
45 | } | 45 | } |
46 | 46 | ||
47 | 47 | ||