1
0
Fork 0
forked from len0rd/rockbox

Add interrupt handler for iPod. Add timer tick support. Remove temporary thread sleep solution. Remove temporary iPod current_tick solution.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8224 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thom Johansen 2005-12-12 13:53:22 +00:00
parent 07a2ad2a22
commit 544b03cf9a
5 changed files with 53 additions and 17 deletions

View file

@ -66,12 +66,7 @@ struct mutex
};
/* global tick variable */
#if (CONFIG_CPU==PP5020)
/* A temporary hack until timer interrupt is enabled - use the RTC */
#define current_tick ((*((volatile long*)0x60005010))/10000)
#else
extern long current_tick;
#endif
#ifdef SIMULATOR
#define sleep(x) sim_sleep(x)