mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
iPod Classic: minor modifications in TIMER
The current behaviour should not change. Change-Id: Ia8f44cdccf41dbc3881722f9aebab91de51a9bc5
This commit is contained in:
parent
8618f2c227
commit
bfb63f8017
3 changed files with 24 additions and 23 deletions
|
|
@ -134,7 +134,7 @@ void INT_TIMER32(void) ICODE_ATTR;
|
|||
void INT_TIMER32()
|
||||
{
|
||||
uint32_t tstat = TSTAT;
|
||||
/*if ((TECON >> 12) & 0x7 & (tstat >> 24)) INT_TIMERE();*/
|
||||
if ((TECON >> 12) & 0x7 & (tstat >> 24)) INT_TIMERE();
|
||||
if ((TFCON >> 12) & 0x7 & (tstat >> 16)) INT_TIMERF();
|
||||
if ((TGCON >> 12) & 0x7 & (tstat >> 8)) INT_TIMERG();
|
||||
if ((THCON >> 12) & 0x7 & tstat) INT_TIMERH();
|
||||
|
|
@ -226,6 +226,7 @@ void system_init(void)
|
|||
VIC0INTENABLE = 1 << IRQ_WHEEL;
|
||||
VIC0INTENABLE = 1 << IRQ_ATA;
|
||||
VIC1INTENABLE = 1 << (IRQ_MMC - 32);
|
||||
VIC0INTENABLE = 1 << IRQ_TIMER;
|
||||
VIC0INTENABLE = 1 << IRQ_TIMER32;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue