mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
AMS: consistently use bitclr32/bitset32/bitmod32 for register CCU_IO (instead of using |= or &= )
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29748 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
79c6aca566
commit
8d1d2f8982
3 changed files with 6 additions and 7 deletions
|
|
@ -226,7 +226,7 @@ int button_read_device(void)
|
|||
while(delay--) nop;
|
||||
|
||||
bool ccu_io_bit12 = CCU_IO & (1<<12);
|
||||
CCU_IO &= ~(1<<12);
|
||||
bitclr32(&CCU_IO, 1<<12);
|
||||
|
||||
/* B1 is shared with FM i2c */
|
||||
bool gpiob_pin0_dir = GPIOB_DIR & (1<<1);
|
||||
|
|
@ -256,7 +256,7 @@ int button_read_device(void)
|
|||
GPIOB_DIR |= 1<<1;
|
||||
|
||||
if(ccu_io_bit12)
|
||||
CCU_IO |= 1<<12;
|
||||
bitset32(&CCU_IO, 1<<12);
|
||||
|
||||
#ifdef HAS_BUTTON_HOLD
|
||||
#ifndef BOOTLOADER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue