Reading and writing to Pins in Eclipse


I am using the NIOSII soft processor in eclipse and I am having a difficult time figuring out how to read and write to a pin.  Does anyone have any sample code they could share to show how this is done.
Thank you in advanced.

More questions in this forum