Closed
Description
Changing the SPI frequency essentially goes to
esp-hal/esp-hal/src/spi/master.rs
Line 2576 in a20054c
which is a loop-based search. However in situations like multi-slave SPI bus with different clocks, this will need to be executed many times.
Don't know what is the best way, could
- add forced inlining to the logic
- add a shortcut when the clock speed is multiples of
clk_spi_mst/32
as this is the most common scenario - add a static cache for computed values?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done