rk27xx: substitute magic constants with meaningful names for INTC

Change-Id: Ic93114db351a9940a53d0c1df6439d82ada044e1
This commit is contained in:
Marcin Bukat 2012-12-17 09:51:08 +01:00
parent 15818bef55
commit efe1042759
6 changed files with 49 additions and 12 deletions

View file

@ -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;
}