1
0
Fork 0
forked from len0rd/rockbox

Xduoo_X3 Fix timer_set_period fail to reenable

when timer_set_period is called timer is stopped but never reenabled

Change-Id: I5cfc7a2d5620ff998005e013952b25f1e0a52754
This commit is contained in:
William Wilgus 2020-08-28 11:11:03 -04:00
parent 1aee168398
commit 77019c2c3c

View file

@ -78,10 +78,10 @@ bool timer_set(long cycles, bool start)
if(start)
{
system_enable_irq(IRQ_TCU1);
__tcu_start_counter(5);
}
restore_irq(old_irq);
__tcu_start_counter(5);
return true;
}