How this works
Most SPI peripherals only support power-of-two dividers (2, 4, 8, ... 256) rather than an arbitrary value, so the achievable frequency is often not exactly what you asked for. This checks all standard dividers and picks the closest match, showing the resulting frequency and error.