apache / nuttx-apps

Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX RTOS
https://nuttx.apache.org/
Apache License 2.0
263 stars 488 forks source link

system/spi: Set SPI delay characteristics to zero when enabled. #2392

Closed g2gps closed 1 month ago

g2gps commented 1 month ago

Summary

Previously, when delay control was enabled, spi_transfer would pass junk values down to the underlying driver because these values where not initialized.

Setting them to zero provides a predictable result considering they are not controlled by this tool.

Impact

SPI tool provides consistent value to the underlying driver's delay characteristics when enabled.

Testing

SPI tool with custom SPI driver.

xiaoxiang781216 commented 1 month ago

let's ignore the temp download error happened on xtensa arch.