diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2008-12-05 14:37:28 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-12-05 14:37:28 +0000 |
commit | f07aa65117a196ecfd5ef097dc432d6f5d49c743 (patch) | |
tree | 750485cbfad9072aeddd2753645f556ee4832fe6 /firmware/target/arm | |
parent | f577cd1fdbc24a3ffcd1f96204f862746b2362c5 (diff) | |
download | rockbox-f07aa65117a196ecfd5ef097dc432d6f5d49c743.tar.gz rockbox-f07aa65117a196ecfd5ef097dc432d6f5d49c743.zip |
Sansa AMS: correct VIC registers usage
* Do not use |= on write only registers
* Do use it in when setting kernel tick timer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19350 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/as3525/kernel-as3525.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/kernel-as3525.c b/firmware/target/arm/as3525/kernel-as3525.c index 3a4a067b6c..3252e5abd1 100644 --- a/firmware/target/arm/as3525/kernel-as3525.c +++ b/firmware/target/arm/as3525/kernel-as3525.c | |||
@@ -48,7 +48,7 @@ void tick_start(unsigned int interval_in_ms) | |||
48 | panicf("%s : interval too big", __func__); | 48 | panicf("%s : interval too big", __func__); |
49 | 49 | ||
50 | CGU_PERI |= CGU_TIMER2_CLOCK_ENABLE; /* enable peripheral */ | 50 | CGU_PERI |= CGU_TIMER2_CLOCK_ENABLE; /* enable peripheral */ |
51 | VIC_INT_ENABLE = INTERRUPT_TIMER2; /* enable interrupt */ | 51 | VIC_INT_ENABLE |= INTERRUPT_TIMER2; /* enable interrupt */ |
52 | 52 | ||
53 | TIMER2_LOAD = TIMER2_BGLOAD = cycles; /* timer period */ | 53 | TIMER2_LOAD = TIMER2_BGLOAD = cycles; /* timer period */ |
54 | 54 | ||