sajattack / bitbang-hal

Implements embedded-hal traits by bitbanging
MIT License
41 stars 11 forks source link

Implement clock stretching #25

Open TheButlah opened 1 year ago

TheButlah commented 1 year ago

Clock stretching tends to be a failure case for a lot of hal implementations. It would be cool if this library supported controlling clock stretching timeouts as master or allowed intentionally stretching out the clock as a slave. The use case I originally thought of was to use this crate as a way to test any other microcontroller's hal implementation.