Forum Discussion
Altera_Forum
Honored Contributor
20 years agomonkeyboy,
Thanks for your assistance. I can now access all of my PIO interfaced devices. FYI for anyone coming from MicroC/OS: You need to include the following header file. # include <cyg/hal/io.h> /* Additional HAL device IO support.*/ You will also need to replace all ALTERA AVALON PIO reads and writes Such as: IOWR_ALTERA_AVALON_PIO_DATA and IORD_ALTERA_AVALON_PIO_DATA With: IOWR_16DIRECT(BASE, OFFSET, DATA) and IORD_16DIRECT(BASE, OFFSET) You will need to use the appropriate size function i.e. 8,16,32 bits too. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif