1
0
Fork 0
forked from len0rd/rockbox

as3525: no need to ack TIMER interrupt multiple times

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26330 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-05-27 13:42:39 +00:00
parent 2f0f3490d3
commit a71929b1a0

View file

@ -111,8 +111,6 @@ static inline void do_sw_pwm(void)
{
if (!timer2_pwm_on) {
do_scrollwheel(); /* Handle scrollwheel and tick tasks */
TIMER2_INTCLR = 0; /* clear interrupt */
return;
}
timer2_pwm_state ^= 1;
@ -133,8 +131,6 @@ static inline void do_sw_pwm(void)
if (!(timer2_cycles_pwmon > timer2_cycles_pwmoff))
do_scrollwheel(); /* Handle scrollwheel and tick tasks */
}
TIMER2_INTCLR = 0; /* clear interrupt */
}
#else
static inline void do_sw_pwm(void)