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
This commit is contained in:
Bertrik Sikken 2011-04-08 21:51:46 +00:00
parent e7c6ba66aa
commit 67a4e9befc

View file

@ -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;
}