Closed ghismary closed 8 months ago
Hi, thanks for your comments. I had not seen this stuff about hardware CS management, and had not taken a look to embedded-hal-bus yet. It makes sense, I'll rework on that.
I made the changes for the problems reported in the previous comments. I also adapted an arduino example to the usage of this SpiBus trait implementation via the ExclusiveDevice from embedded-hal-bus.
@ghismary, thanks a lot for your work on this. @rubend056 picked up your changeset and incorporated my review comments over in #517. We'll continue work there - but I'll make sure you will keep appropriate credit for your work in the merged changes.
Here is the implementation of the embedded-hal 1.0 traits for SPI. I need to do further testing, but from what I have seen up to now, it seems to work quite well.