mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
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:
parent
e7c6ba66aa
commit
67a4e9befc
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue