Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generic: spi: Assign discriminant values to clock rate enum
To simplify some clock calculation code in the future, assign the divider power-of-two as the discriminant values in the `SerialClockRate` enum. Additionally, provide an `into_divider()` method to get the numeric clock divider value for a given clock rate.
- Loading branch information