Longduino icon indicating copy to clipboard operation
Longduino copied to clipboard

SPI prescaling wrong?

Open joba-1 opened this issue 5 years ago • 0 comments

Hi,

just in case someone is still working on this (would be great!) I just read the code to understand why SPI does not work for me and found this:

It seems the prescale parameter is set by calculating it from clock freq / bus freq, then directly use that to call the framework init function. But the framework init function seems to expect some 3-bit pattern which only allows distinct prescales of multiples of 2. So, the SPI configuration is destroyed by this

joba-1 avatar Oct 02 '20 11:10 joba-1