Fix bug in earlier commit of FS#10317: don't mix TIMER1 and TIMER2 settings

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21273 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2009-06-13 15:01:25 +00:00
parent 73f9bde908
commit 52c46f2ec6

View file

@ -184,7 +184,7 @@ static bool timer_set(long cycles, bool start)
TIMER1_LOAD = TIMER1_BGLOAD = cycles;
/* /!\ bit 4 (reserved) must not be modified
* periodic mode, interrupt enabled, no prescale, 32 bits counter */
TIMER1_CONTROL = (TIMER2_CONTROL & (1<<4)) |
TIMER1_CONTROL = (TIMER1_CONTROL & (1<<4)) |
TIMER_ENABLE |
TIMER_PERIODIC |
TIMER_INT_ENABLE |