Forum Discussion
Altera_Forum
Honored Contributor
16 years agoProblem with developing custom device driver.
Hello, I have problem developing custom device driver. I've read the documentation, but I only got confused. Is there a simple tutorial on how to write device drivers ?
My device has one write, one read register and it's capable of generating IRQ signal. It should work likt this: programmer writes data to write register using standard IOWR macro, my device processes data and returns it into read register generating interrupt. My question is how to write interrupt service routine ? Sorry for simple questions, but I'm beginner in NIOS II systems (I've created some systems based on Xilinx Microblaze processor only).2 Replies
- Altera_Forum
Honored Contributor
For the documentation, you have information in Nios II Software Developer’s Handbook chapter 5, 6 and 7, and in Quartus II Handbook volume 4 : SOPC Builder chapter 9 and 10.
In the chapter 10, you will find a design example, and the files associated can be found here (http://www.altera.com/literature/hb/qts/altera_avalon_checksum.zip) (http://www.altera.com/literature/hb/qts/altera_avalon_checksum.zip%29). I hope that will help you. - Altera_Forum
Honored Contributor
Thanks, problem solved and everything works properly =)