diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2009-03-30 21:15:15 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2009-03-30 21:15:15 +0000 |
commit | 75b37696fba2e0c5c1e9f28449fda7d6c7f9a9ac (patch) | |
tree | 30d308bcc748733e5eefd7684aafa2d7e62c67a1 /firmware/target/arm/tcc780x/timer-target.h | |
parent | 8739af490e03e243848720c5987f566a56479136 (diff) | |
download | rockbox-75b37696fba2e0c5c1e9f28449fda7d6c7f9a9ac.tar.gz rockbox-75b37696fba2e0c5c1e9f28449fda7d6c7f9a9ac.zip |
TCC78x: Implement the user timer, rework some of the timer register #defines, and use udelay() instead of the hacky sleep_ms() in the D2 LCD driver. Doom works now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20585 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc780x/timer-target.h')
-rw-r--r-- | firmware/target/arm/tcc780x/timer-target.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/tcc780x/timer-target.h b/firmware/target/arm/tcc780x/timer-target.h index 991d949447..10090ceddc 100644 --- a/firmware/target/arm/tcc780x/timer-target.h +++ b/firmware/target/arm/tcc780x/timer-target.h | |||
@@ -21,8 +21,8 @@ | |||
21 | #ifndef TIMER_TARGET_H | 21 | #ifndef TIMER_TARGET_H |
22 | #define TIMER_TARGET_H | 22 | #define TIMER_TARGET_H |
23 | 23 | ||
24 | /* timers are based on XIN (12Mhz) */ | 24 | /* Timer is based on PCK_TCT (set to 2Mhz in system.c) */ |
25 | #define TIMER_FREQ (12000000) | 25 | #define TIMER_FREQ (2000000) |
26 | 26 | ||
27 | bool __timer_set(long cycles, bool set); | 27 | bool __timer_set(long cycles, bool set); |
28 | bool __timer_register(void); | 28 | bool __timer_register(void); |