Forum Discussion
Altera_Forum
Honored Contributor
16 years agoarch/nios2/.../gpio.h versus PIO peripheral
I am looking at the file in linux-2.6/include/nios2/include/asm/gpio.h in the source code I downloaded from the NiosWiki. See https://www.alteraforum.com/forum/attachment.php?attachmentid=1945 ...
Altera_Forum
Honored Contributor
16 years agoI think I figured out my own problem. I had been using the PIO peripheral provided by Altera with SOPC Builder. I needed to download the Linux-specific gpio block from the ip library that is on the nioswiki. It has a completely different register map that is more amenable to bit-banging. (It uses one register to handle all the functions for each GPIO pin, not one register that handles a single function for up to 32 pins.)