With a simple modification in 2 files in Mister firmware, and adding a one new SPI code in the Framework , we can get that
The changes are in the GITHUB --> https://github.com/benitoss/MiSTer_project
In Menu Framework
menu.sv --> inside the instance hps_io , we add new variable .joy_db9(joy_db9)
sys/hps_io.v -->
- we add the new variable input [15:0] joy_db9
line 489 we add a new SPI code to send data to the firmware: 'h37: io_dout <= joy_db9;
user_io.h --> Added the new SPI code 0x37 : #define UIO_DB9_GET 0x37
user_io.cpp -->
- Line 40 --> added variables
Line 1587 -> added uint16_t check_DB9_change() function
Line 2206 --> added in the poling the function check_DB9_change();
We have until 16 bits to asotiate more functions with a simple modification inside check_DB9_change() function
The question is, please could the official code reserve the SPI code 0x37 for the handle the menu with the USER_IO pins of the Mister ???
Thansks


