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:
parent
2f0f3490d3
commit
a71929b1a0
1 changed files with 0 additions and 4 deletions
|
@ -111,8 +111,6 @@ static inline void do_sw_pwm(void)
|
||||||
{
|
{
|
||||||
if (!timer2_pwm_on) {
|
if (!timer2_pwm_on) {
|
||||||
do_scrollwheel(); /* Handle scrollwheel and tick tasks */
|
do_scrollwheel(); /* Handle scrollwheel and tick tasks */
|
||||||
TIMER2_INTCLR = 0; /* clear interrupt */
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
timer2_pwm_state ^= 1;
|
timer2_pwm_state ^= 1;
|
||||||
|
@ -133,8 +131,6 @@ static inline void do_sw_pwm(void)
|
||||||
if (!(timer2_cycles_pwmon > timer2_cycles_pwmoff))
|
if (!(timer2_cycles_pwmon > timer2_cycles_pwmoff))
|
||||||
do_scrollwheel(); /* Handle scrollwheel and tick tasks */
|
do_scrollwheel(); /* Handle scrollwheel and tick tasks */
|
||||||
}
|
}
|
||||||
|
|
||||||
TIMER2_INTCLR = 0; /* clear interrupt */
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static inline void do_sw_pwm(void)
|
static inline void do_sw_pwm(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue