Forum Discussion
Altera_Forum
Honored Contributor
13 years agoHi Daixiwen,
It's funny you should mention using the macros, becuase I have just been trying to sort out how to write to the PIO ports I set up and was playing with pointers!! The only downside to the macros is that the names are a bit large and I may re-write the defines to be a little shorter and easier on the typing! One question ergarding the macros: If in my CPU i make a PIO port that is out only, are the read and direction registers still in the address map when I generate the BSP? If so are the registers that would have followed the read and direction registers shunted further up the address map? I would assume that they are always there regardless of whether they are implemented or not otherwise if the CPU was to change to include a read register and a new BSP generated all sorts of hell could break loose in the existing code! I hope my question makes sense! thank you once again! D