forked from len0rd/rockbox
Use TIMER_FREQ for timers in plugins. Fixes timer speed on iPod.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9427 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
139acd9c57
commit
1be25a4d71
4 changed files with 10 additions and 7 deletions
|
|
@ -219,8 +219,8 @@ void timer_init(unsigned hz, unsigned to)
|
|||
{
|
||||
rb->memset(&gTimer, 0, sizeof(gTimer));
|
||||
|
||||
gTimer.transmit = FREQ / hz; /* time for bit transitions */
|
||||
gTimer.timeout = FREQ / to; /* time for receive timeout */
|
||||
gTimer.transmit = TIMER_FREQ / hz; /* time for bit transitions */
|
||||
gTimer.timeout = TIMER_FREQ / to; /* time for receive timeout */
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue