mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Sansa e200v2: use = instead of |= when setting GPIO level
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21224 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
90382c852d
commit
3589be4bdd
1 changed files with 5 additions and 5 deletions
|
@ -208,11 +208,11 @@ int button_read_device(void)
|
||||||
/* set dir so we can read our buttons (but reset the C pins first) */
|
/* set dir so we can read our buttons (but reset the C pins first) */
|
||||||
GPIOB_DIR &= ~(1<<4);
|
GPIOB_DIR &= ~(1<<4);
|
||||||
GPIOC_DIR |= (1<<2|1<<3|1<<4|1<<5|1<<6);
|
GPIOC_DIR |= (1<<2|1<<3|1<<4|1<<5|1<<6);
|
||||||
GPIOC_PIN(2) |= (1<<2);
|
GPIOC_PIN(2) = (1<<2);
|
||||||
GPIOC_PIN(3) |= (1<<3);
|
GPIOC_PIN(3) = (1<<3);
|
||||||
GPIOC_PIN(4) |= (1<<4);
|
GPIOC_PIN(4) = (1<<4);
|
||||||
GPIOC_PIN(5) |= (1<<5);
|
GPIOC_PIN(5) = (1<<5);
|
||||||
GPIOC_PIN(6) |= (1<<6);
|
GPIOC_PIN(6) = (1<<6);
|
||||||
|
|
||||||
GPIOC_DIR &= ~(1<<2|1<<3|1<<4|1<<5|1<<6);
|
GPIOC_DIR &= ~(1<<2|1<<3|1<<4|1<<5|1<<6);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue