1
0
Fork 0
forked from len0rd/rockbox

Initial commit of work-in-progress iPod port

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7781 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-11-07 23:07:19 +00:00
parent 3cd5c646d0
commit 77372d1218
24 changed files with 2178 additions and 21 deletions

View file

@ -20,6 +20,7 @@
#define _KERNEL_H_
#include <stdbool.h>
#include "config.h"
/* wrap-safe macros for tick comparison */
#define TIME_AFTER(a,b) ((long)(b) - (long)(a) < 0)
@ -65,7 +66,12 @@ struct mutex
};
/* global tick variable */
#if (CONFIG_CPU==PP5020)
/* A temporary hack until timer interrupt is enabled - use the RTC */
#define current_tick ((*((volatile unsigned long*)0x60005010))/10000)
#else
extern long current_tick;
#endif
#ifdef SIMULATOR
#define sleep(x) sim_sleep(x)