uBlaze ISR : Steps to write/implement an ISR...

Hi all.

At the moment I never implement a ISR on uBlaze system.

I have seen, I know I have to use the INTC IP driver routines, but I have seen also there are some commands in uBlaze interface Header.

For example: microblaze_enable_interrupts(void); microblaze_disable_interrupts(void);

I imagine before of all I HAVE to use microblaze_enable_interrupts(void); that it has priority and works directly on uBlaze CPU.

After it I should instance INTC structure/object, initialize it, enable it.

After I have to connect my ISR with proper instruction but I don't know very well how to do it... Please someone could write me a list of steps (in order) and if possible write a little example?

Thanks in advance.

Al.

Reply to
Alfmyk
Loading thread data ...

"Alfmyk" schrieb im Newsbeitrag news: snipped-for-privacy@webx.sUNCHnE...

step by step

Optional Step 0: learn to read Step 1: browse in EDK\ and open some example that uses INTC Step 2: read and study the example Step 3: implement your code base on the example

Antti

Reply to
Antti Lukats

Ok, thank again Antti ! I didn't know and suppose in EDK Examples was present a project oriented to iterrupt driven example.

Anyway I'd like to ask you: 1) In generally what are different between static ISR (ISR assigned via XPS Softaware Menu) and dynamic ISR? The only different is just the possibility to change ISR Routine is it was assigned (dinamically)?

2) Moreover in generally taking a look to EDK example I have seen that ISR has a input parameter like ( (void *) baseAddress_p ) is it always the baseAddress related to IP Peripheral or not ?

Thanks in advance.

Cheers, Al.

Reply to
Alfmyk

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.