mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Gigabeat: oops, forgot to set correct timer prescaler limit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13807 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4ae87c8b8a
commit
77789f0f8d
1 changed files with 3 additions and 2 deletions
|
|
@ -53,8 +53,9 @@ bool __timer_set(long cycles, bool start)
|
||||||
/* Find the minimum factor that puts the counter in range 1-65535 */
|
/* Find the minimum factor that puts the counter in range 1-65535 */
|
||||||
unsigned int prescaler = (cycles + 65534) / 65535;
|
unsigned int prescaler = (cycles + 65534) / 65535;
|
||||||
|
|
||||||
/* Maximum divider setting is x / 256 / 16 = x / 4096 */
|
/* Maximum divider setting is x / 256 / 16 = x / 4096 - min divider
|
||||||
if (prescaler <= 4096)
|
is x / 2 however */
|
||||||
|
if (prescaler <= 2048)
|
||||||
{
|
{
|
||||||
int oldlevel;
|
int oldlevel;
|
||||||
unsigned int divider;
|
unsigned int divider;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue