Forum Discussion
Altera_Forum
Honored Contributor
21 years agoPIO devices under uClinux
I'm having a problem getting the PIO ports to work under uClinux. If I try to access the PIO by reading or writing to the memory location, pointed to by the pio struct, then nothing seems t...
Altera_Forum
Honored Contributor
21 years agoHi trk_golf,
Glad you have things working :-) > When trying to use the "outl" and "inl" macros, there is a problem. > These only expect an address of size short. They expect the full 32-bit address. They are macros with inline assembly that use register parameters -- the full 32-bits, unmodified. When used with the inline string io functions, these are traditionally defined as unsigned long. You shouldn't have observed any problems. Best Regards, --Scott