Forum Discussion
Altera_Forum
Honored Contributor
19 years agoBase addresses and system.h #define
I have an SOPC system with some custom components and 2 Altera PIO components. I am trying to write to a PIO using this function, for example: IOWR(PIO_0_BASE, 3, 0x0); // Clear edge capture r...
Altera_Forum
Honored Contributor
19 years agoLook at the software templates/examples. Any that need base addresses, always# include "system.h".
What's more, for the PIO, you'll probably want to be including altera_avalon_pio_regs.h. Cheers, - slacker