1
0
Fork 0
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:
Jens Arnold 2006-04-02 12:45:30 +00:00
parent 139acd9c57
commit 1be25a4d71
4 changed files with 10 additions and 7 deletions

View file

@ -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 */
}