Forum Discussion
Altera_Forum
Honored Contributor
15 years agoIf you're using the altera_avalon_pio_regs.h header you can use the ALTERA_AVALON_PIO_DATA(base) to read and ALTERA_AVALON_PIO_DATA(base, value) to write.
Alternatively, you could use the <io.h> header and use the IORD(base, offset) and IOWR(base, offset, value) directly if you wanted. Altera has a pdf on their PIO core somewhere on their website as well if you need more info. Hope that helps.