mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Ingenic Jz4740 timer driver: fix stupid mistake
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22096 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f3298a4612
commit
ddd82d6ab5
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ bool timer_set(long cycles, bool start)
|
|||
/* Increase prescale values starting from 0 to make the cycle count fit */
|
||||
while(divider > 65535 && prescaler <= 1024)
|
||||
{
|
||||
prescaler >>= 2; /* 1, 4, 16, 64, 256, 1024 */
|
||||
prescaler <<= 2; /* 1, 4, 16, 64, 256, 1024 */
|
||||
prescaler_bit++;
|
||||
divider = cycles / prescaler;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue