Forum Discussion
Altera_Forum
Honored Contributor
16 years ago<div class='quotetop'>QUOTE (nacide @ Jul 10 2009, 02:00 AM) <{post_snapback}> (index.php?act=findpost&pid=23058)</div>
--- Quote Start --- IOWR ,IORD the equivalent are outb, inb and alike the makros are defined in uClinux-dist\linux-2.6.x\include\asm-nios2nommu\io.h[/b] --- Quote End --- Thanks for your reply but I finally used the equivalent defined on the section "IO programming in user space" of the NIOS Wiki : # define IORD(address,offset) (*(volatile unsigned *)(((address)|0x80000000)+4*(offset)))# define IOWR(address,offset,value) (*(volatile unsigned *)(((address)|0x80000000)+4*(offset)))=(value) in order to have uncached defines for the Nios II Full version with Data Cache (-f). However, when I scope on the SDA/SCL lines, I can successfully see the I2C sequences send by the master but it seems that the interrupts for the ACK bit and for the data read from registers (send by the slave) don't work at all... Is there a link between the use of IORD/IOWR definitions (always uncached) and the fact that I cannot use interrupts ? Thanks ! Papy