GP32 Gp_installswiirq


M-.-n

Member
Joined
May 28, 2005
Messages
160
Location
Brussels, Belgium
Website
discodirt.10pm.org
I am parsing the IRQ install code from Mr. Mirko's sound routine. Everything seems pretty ok except for the following code:

Code:
	gp_installSWIIRQ(14,(void *)TIMERIRQ);

What is the first parameter ? I was expecting to find 4 or so (since it is the number of the interrupt that is installed) but why 14 ?

Thanks !
Marc
 
14 is the timer4 as Squidge said.. afaik Mirko's code uses timer4 for mixer etc. IRQ numbers as well as other lowlevel information is documented in s3c2400x PDF.
 
Which can be found on Spiv's webpages :)

Meanwhile, here's a handy table for you:

ADC = 31
RTC = 30
UTXD1 = 29
UTXD0 = 28
IIC = 27
USBH = 26
USBD = 25
URXD1 = 24
URXD0 = 23
SPI = 22
MMC = 21
DMA3 = 20
DMA2 = 19
DMA1 = 18
DMA0 = 17
UERR0/1 = 15
TIMER4 = 14
TIMER3 = 13
TIMER2 = 12
TIMER1 = 11
TIMER0 = 10
WDT = 9
TICK = 8
EINT7 = 7
EINT6 = 6
EINT5 = 5
EINT4 = 4
EINT3 = 3
EINT2 = 2
EINT1 = 1
EINT0 = 0
 
Cool .. thanks !

I have the doc but I didn't know what the parameter in the function was related to. Precisely because he's using IRQ4, I needed to install my own interrupt on IRQ1 and wondered what to put in there !

(BTW, installing IRQ1 does disable the auto-turn off of the LCD when pressing select which is pretty nice coz I wanted to use this little bugger)
 
Back
Top