Making strange changes to #BL602 #NuttX SPI Driver ... Hope this works for ST7789 Display 🙏
https://github.com/lupyuen/incubator-nuttx/blob/st7789/arch/risc-v/src/bl602/bl602_spi.c#L678-L729
To flip the ST7789 Data / Command Pin on #BL602 #NuttX: We reconfigure SPI MISO as a GPIO Pin ... On the fly!
https://github.com/lupyuen/incubator-nuttx/blob/st7789/arch/risc-v/src/bl602/bl602_spi.c#L678-L731
After every ST7789 SPI Transfer on #BL602 #NuttX, we revert MISO from GPIO Pin back to SPI Pin ... In case other drivers need MISO
https://github.com/lupyuen/incubator-nuttx/blob/st7789/arch/risc-v/src/bl602/bl602_spi.c#L414-L454
SPI Driver for #ESP32 #NuttX flips the ST7789 Data / Command Pin as though it was GPIO ... But actually the pin is designated as SPI MISO ... Let's do the same for BL602
https://github.com/apache/incubator-nuttx/blob/master/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_board_spi.c#L64-L84