diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-13 14:00:30 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-13 14:00:30 +0000 |
commit | a8c073216d63abf2ee42ef4f42e16d109c3f5791 (patch) | |
tree | f467ecddc233c1bd7bac27905634c4b48aca51d6 | |
parent | 21cbdac55fc0894dba81cd3d81ba3eba86d1c60e (diff) |
cowond2: make the code consistent with the comments and really clear the bits
Untested on target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26832 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/tcc780x/cowond2/lcd-cowond2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/tcc780x/cowond2/lcd-cowond2.c b/firmware/target/arm/tcc780x/cowond2/lcd-cowond2.c index c2800727b9..3f1e2e0312 100644 --- a/firmware/target/arm/tcc780x/cowond2/lcd-cowond2.c +++ b/firmware/target/arm/tcc780x/cowond2/lcd-cowond2.c @@ -261,8 +261,8 @@ void lcd_init_device(void) LCDC_CLKDIV = (LCDC_CLKDIV &~ 0xFF00FF) | (1<<16) | 2; /* and this means? */ /* set and clear various flags - not investigated yet */ - LCDC_CTRL &~ 0x090006AA; /* clear bits 1,3,5,7,9,10,24,27 */ - LCDC_CTRL |= 0x02800144; /* set bits 2,6,8,25,23 */ + LCDC_CTRL &= ~(0x090006AA); /* clear bits 1,3,5,7,9,10,24,27 */ + LCDC_CTRL |= 0x02800144; /* set bits 2,6,8,25,23 */ LCDC_CTRL = (LCDC_CTRL &~ 0xF0000) | 0x20000; LCDC_CTRL = (LCDC_CTRL &~ 0x700000) | 0x700000; |