This code sets up such a routing from one pin, sending it inverted to another pin:
Code: Select all
#define sigA 224
gpio_matrix_in(14, sigA, 0); // the "input" of signal 224 comes from D14
gpio_matrix_out(22, sigA, 1, 0); // and appears, inverted, out on pin 22.
Two questions:
1) there are very few "free-to-use" signal pads - 224-228 - to explore this feature. i.e.not even enough to route an 8-bit bus through the matrix. Why are there no signals 229-255? No underlying silicon, or what gives? Am I missing some way to take back signals from peripherals that are not in use?
2) What is the correct way to disconnect / undo my GPIOs 14 and 22, if I want to return them to "normal use".
Thanks
Peter