Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow can i handle the pio in uclinux?
I have upload the kernal and filesystem to flash,and the kernal runs very well.Then i build the example 'hello world',it runs very well too. Now i want to handle the PIO in uclinux,like...
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.