TMU: Also set the underflow flag. Fixes KOS.

This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis 2015-01-07 03:12:28 +02:00
parent 6ad25b8f53
commit d055dbd7cb
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@ int sched_tmu_cb(int ch, int sch_cycl, int jitter)
//this is not 100% correct
if (abs((s32)tcnt) <= jitter) {
//raise interrupt, timer counted down
TMU_TCR(ch) |= tmu_underflow;
InterruptPend(tmu_intID[ch], 1);
//printf("Interrupt for %d, %d cycles\n", ch, sch_cycl);