Forum Discussion
Altera_Forum
Honored Contributor
20 years agotry:# man inl
or# man outl .... it basicaly reads a long (inl) or a byte (inb) from the port you pass as an argument or writes a long (outl) or a byte (outb). for example:outb(inb(GPIO1),GPIO2); where GPIO1 and GPIO2 are defined as base-addresses of your GPIO components. reads a byte from the base address of one GPIO and outputs this no a second GPIO.