So, I had to choose a forum :P
I have added a GPIO to my PL, and I am pretty sure it's done properly; I can read my inputs and write my outputs (...) from the PS side of things.
I have used the GPIO output port for some control lines; I need to set these in overlapping sequences;
Trying to get that working I realised I don't get the value I wrote to the output; I get zero.
That's fine, but the BSP function XGpio_DiscreteSet does read/modify/write; which of course doesn't work right if the gpio returns zero (you get the last thing you set).
I wonder if I'm doing something wrong in the GPIO configuration either on the PS side or the PL side? Maybe it's expected behaviour?
It's not the end of the world to maintain the state of the outputs separately, but it would be nice if the source of the state was the actual output register.