mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
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:
parent
3cd5c646d0
commit
77372d1218
24 changed files with 2178 additions and 21 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue