You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
260: add spi traits r=richardeoin a=andrewgazelka
# Background
SPIs didn't have proper traits, so it was hard/impossible to be generic overall SPis.
# Description
- Added `SpiEnabledExt` for enabled SPIs
- Added `SpiDisabledExt` for disabled SPIs
- Added `SpiAllExt` which `SpiEnabledExt` and `SpiDisabledExt` must implement.
# Questions
- These changes are breaking as people previously using the Spi will need to `use Spi{Enabled,Disabled,All}Ext`. We could also make the traits delegate to the previously existing implementations, but this might not be as clean in terms of hal code imo—and the version is `< 1.x.y` anyway. Thoughts?
Co-authored-by: Andrew Gazelka <andrew.gazelka@gmail.com>
0 commit comments