lupyuen edited a comment on issue #5810: URL: https://github.com/apache/incubator-nuttx/issues/5810#issuecomment-1077355494
Cool thanks! BL602 MISO / MOSI Swap is in the master branch here: [bl602_spi.c](https://github.com/apache/incubator-nuttx/blob/master/arch/risc-v/src/bl602/bl602_spi.c#L1137-L1141) BTW The ST7789 Data/Command Pin has been tested OK on BL602. MISO goes Low when we send an ST7789 Command...  And MISO goes High when we send ST7789 Data...  We implemented this by reconfiguring MISO from SPI Pin to GPIO on the fly: [bl602_spi.c](https://github.com/lupyuen/incubator-nuttx/blob/st7789/arch/risc-v/src/bl602/bl602_spi.c#L709-L735) Just found out that [`bl602_spi_poll_exchange()`](https://github.com/lupyuen/incubator-nuttx/blob/st7789/arch/risc-v/src/bl602/bl602_spi.c#L932-L977) works for SPI Transfer but [`bl602_spi_poll_send()`](https://github.com/lupyuen/incubator-nuttx/blob/st7789/arch/risc-v/src/bl602/bl602_spi.c#L811-L850) doesn't send any SPI data, which affects the ST7789 Driver. I'm checking through the code now. UPDATE: The fix for SPI Poll Send is here: https://github.com/lupyuen/incubator-nuttx/pull/42 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org