diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2008-10-27 17:18:01 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2008-10-27 17:18:01 +0000 |
| commit | 623cd1cb0dcb78b2dfc92e50de34b1d72737c3d8 (patch) | |
| tree | de354652f4593a83ab5c949970e4d7943eb92c4a /firmware/export/kernel.h | |
| parent | a9e69d935cb5c2e5ffca1bbc977252ce7661d343 (diff) | |
| download | rockbox-623cd1cb0dcb78b2dfc92e50de34b1d72737c3d8.zip rockbox-623cd1cb0dcb78b2dfc92e50de34b1d72737c3d8.tar.gz rockbox-623cd1cb0dcb78b2dfc92e50de34b1d72737c3d8.tar.bz2 rockbox-623cd1cb0dcb78b2dfc92e50de34b1d72737c3d8.tar.xz | |
Fix red-- it should.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18894 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/kernel.h')
| -rw-r--r-- | firmware/export/kernel.h | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h index 9438f6d..beba58e 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h @@ -191,8 +191,24 @@ struct wakeup /* We don't enable interrupts in the iPod bootloader, so we need to fake the current_tick variable */ #define current_tick (signed)(USEC_TIMER/10000) + +static inline void call_tick_tasks(void) +{ +} #else extern volatile long current_tick; + +/* inline helper for implementing target interrupt handler */ +static inline void call_tick_tasks(void) +{ + extern void (*tick_funcs[MAX_NUM_TICK_TASKS+1])(void); + int i; + + current_tick++; + + for (i = 0; tick_funcs[i] != NULL; i++) + tick_funcs[i](); +} #endif #ifdef SIMULATOR @@ -207,18 +223,6 @@ int tick_add_task(void (*f)(void)); int tick_remove_task(void (*f)(void)); extern void tick_start(unsigned int interval_in_ms); -/* inline helper for implementing target interrupt handler */ -static inline void call_tick_tasks(void) -{ - extern void (*tick_funcs[MAX_NUM_TICK_TASKS+1])(void); - int i; - - current_tick++; - - for (i = 0; tick_funcs[i] != NULL; i++) - tick_funcs[i](); -} - struct timeout; /* timeout callback type |