Altera_Forum
Honored Contributor
16 years agoPIO
Hi all,
I'm trying to write/read to and from some PIO. I have read as much as I can find about this topic on the forums and nios wiki but im not having much luck. Ive made a little test program: <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>#include <stdio.h># include <asm/io.h> int main(void) { printf("writing to port:\n"); writew(0xFFFF,0x10402020); //data return 0; }</div> where 0x10402020 is the address of my PIO. The code doesn't do anything really... ive tried a few other methods, none seemed to work. Can anyone help!?!?!?