Forum Discussion
Altera_Forum
Honored Contributor
12 years ago1. you may do PIO directly in uClinux without device driver. you already know about uncache acccess with 0x80000000 adress mask. But you should know that you are working in user space, which may be sleeped and you can not control the timing.
2. the address map is count by 4 bytes word. so it should be +4 instead of +1. Please list your address map. You may set the uncache mask in your address rather than do it in your in()/out(). 3. Please stick to outl() and inl(). there is no address translation in altera pio core. please do not use outb()/inb(). 4. Please watch out for bus contention, ie, two output pins short together. The fpga chip will fail in this case. Please design our protocol carefully to avoid contention. 5. Please clarify why you use NONE-WR etc, they are not good value or symbol name. Regards, Hippo