Set SPI speed globally

Post here first, or if you can't find a relevant section!
Post Reply
STM32_Newbbe
Posts: 50
Joined: Thu Nov 05, 2020 10:26 am

Set SPI speed globally

Post 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
Post Reply

Return to “General discussion”