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
This commit is contained in:
Rafaël Carré 2008-12-05 14:37:28 +00:00
parent f577cd1fdb
commit f07aa65117
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ void tick_start(unsigned int interval_in_ms)
panicf("%s : interval too big", __func__);
CGU_PERI |= CGU_TIMER2_CLOCK_ENABLE; /* enable peripheral */
VIC_INT_ENABLE = INTERRUPT_TIMER2; /* enable interrupt */
VIC_INT_ENABLE |= INTERRUPT_TIMER2; /* enable interrupt */
TIMER2_LOAD = TIMER2_BGLOAD = cycles; /* timer period */