Page 1 of 1

Set SPI speed globally

Posted: Tue Aug 16, 2022 11:45 am
by STM32_Newbbe
Hi,

is there a way to set SPI speed globally?
Or do I have to set it in every library I use?

I have not quite found out how this is managed

I found

Code: Select all

// Safe for all chips
#define SPI_ETHERNET_SETTINGS SPISettings(14000000, MSBFIRST, SPI_MODE0)
in W5100.h of the Ethernet ibrary, but actual CLK frequency is only 7,5MHz (measured on scope), so there must be something limiting the speed elsewhere in the libraries or drivers