The qspi.rs driver was initially written somewhat hastily and the API was a bit different than other bus drivers like serial.rs and spi.rs. This PR modifies the API to provide some consistency with the other drivers - the biggest change is making the API non-blocking: This allows the caller to decide when to wait for the DMA transfer to finish.
Also APIs are renamed to write_all, read_all for DMA and simply write and read for polling variants.
The
qspi.rs
driver was initially written somewhat hastily and the API was a bit different than other bus drivers likeserial.rs
andspi.rs
. This PR modifies the API to provide some consistency with the other drivers - the biggest change is making the API non-blocking: This allows the caller to decide when towait
for the DMA transfer to finish.Also APIs are renamed to
write_all
,read_all
for DMA and simplywrite
andread
for polling variants.The example is modified to accommodate this.