mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
rk27xx: substitute magic constants with meaningful names for INTC
Change-Id: Ic93114db351a9940a53d0c1df6439d82ada044e1
This commit is contained in:
parent
15818bef55
commit
efe1042759
6 changed files with 49 additions and 12 deletions
|
|
@ -46,9 +46,9 @@ void tick_start(unsigned int interval_in_ms)
|
|||
TMR0CON = (1<<8) | (1<<7) | (1<<1); /* periodic, 1/1, interrupt enable */
|
||||
|
||||
/* unmask timer0 interrupt */
|
||||
INTC_IMR |= 0x04;
|
||||
INTC_IMR |= IRQ_ARM_TIMER0;
|
||||
|
||||
/* enable timer0 interrupt */
|
||||
INTC_IECR |= 0x04;
|
||||
INTC_IECR |= IRQ_ARM_TIMER0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue