Forum Discussion
Altera_Forum
Honored Contributor
20 years agoVery simple question about PIO
typedef volatile struct { int np_piodata; // read/write, up to 32 bits int np_piodirection; // write/readable, up to 32 bits, 1->output bit int np_piointerruptmask; // write...
Altera_Forum
Honored Contributor
20 years agoHi,
in general if you want learn something about the peripherials, you might want to read "Altera Embeeded Peripherals Handbook" (n2cpu_nii5v3.pdf). However you should use inl(...) for reading and outl(...) for writing the hardware register. Accessing the hardware register with such a structure is a "Nios speciality".