Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Using PIO in uClinux and PIO driver

In uClinux, I want to read/write pio. Is it possible to read/write the pio port using read(pio_name),write(pio_name)??

I am trying to find the driver for pio.But in the directory uClinux, I cannot find it ....Any hints? Thanks!

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hehe, I got one.But It has only read operation ..So I have to add a write operation

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hello,

    to write and read PIO it's very easy.

    juste copy the pio base address from SOPC builder and the u can use a pointer in a C code to write/read pio !

    regards