Skip to content

Strange Timing in SPI #330

Discussion options

You must be logged in to vote

Interesting observation! I imagine the clock startup time could be pretty long.

Maybe we can only call spi_init() when the SPI clock frequency changes, and never disable the SPI block until a SPI.end()! It feels like a simple tweak, do you think you could give it a try? Basically, cache the last clock and options and if they're the same as before we might be able to skip the init. OTW, call the spi deinit/spi reinit and cache these new settings...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@earlephilhower
Comment options

Answer selected by earlephilhower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants