rust-embedded / embedded-hal

A Hardware Abstraction Layer (HAL) for embedded systems
Apache License 2.0
2.01k stars 202 forks source link

feature: QSPI trait #518

Closed rmsyn closed 1 year ago

rmsyn commented 1 year ago

After an initial review of the SpiBus and SpiDevice traits, it looks like HAL authors can provide a WORD generic type.

Is this sufficient to implement a QSPI driver?

Would it be preferable to extend the Spi* traits for QSPI, or would QspiBus/QspiDevice traits be better?

If a new trait is needed, what would other HAL authors/users want for invariants and interface functions?

I'm happy to work on a new trait if it's needed.