diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-01-10 22:20:46 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-01-10 22:20:46 +0000 |
| commit | 01c484c5d27906f30f7fd9f2cc3f1d9073269c95 (patch) | |
| tree | e3054b1be5d8abbcb2c3851bdab3a7624d96d085 /firmware/kernel.c | |
| parent | ed69c36cdf557e2d0bd81c9ec599a903e511995f (diff) | |
| download | rockbox-01c484c5d27906f30f7fd9f2cc3f1d9073269c95.zip rockbox-01c484c5d27906f30f7fd9f2cc3f1d9073269c95.tar.gz rockbox-01c484c5d27906f30f7fd9f2cc3f1d9073269c95.tar.bz2 rockbox-01c484c5d27906f30f7fd9f2cc3f1d9073269c95.tar.xz | |
Jean-Philippe Bernardy: minor correction
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5558 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.c')
| -rw-r--r-- | firmware/kernel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c index 7ca165c..7c02264 100644 --- a/firmware/kernel.c +++ b/firmware/kernel.c @@ -276,7 +276,7 @@ void TIMER0(void) static void tick_start(unsigned int interval_in_ms) { - u32 count; + long count; count = (long)FREQ * (long)interval_in_ms / 1000 / 16; if(count > 0xffffL) @@ -288,7 +288,7 @@ static void tick_start(unsigned int interval_in_ms) /* Use timer A */ TAPRE = 0x0; - TADATA = (u16)count; + TADATA = count; TACON = 0x89; /* counter clear; */ @@ -298,7 +298,7 @@ static void tick_start(unsigned int interval_in_ms) /* enable */ /* enable the interrupt */ - interruptVector[2] = TIMER0; + interrupt_vector[2] = TIMER0; IMR0 |= (1<<2); } |