diff --git a/fw/application/src/hal/hal_spi_bus.c b/fw/application/src/hal/hal_spi_bus.c index 672392f8..b266d05b 100644 --- a/fw/application/src/hal/hal_spi_bus.c +++ b/fw/application/src/hal/hal_spi_bus.c @@ -25,7 +25,11 @@ void hal_spi_bus_init() { spi_oled_config.sck_pin = NRFX_SPIM_SCK_PIN; spi_oled_config.mosi_pin = NRFX_SPIM_MOSI_PIN; spi_oled_config.miso_pin = NRFX_SPIM_MISO_PIN; + #if defined(SPIM_FREQUENCY_FREQUENCY_M32) spi_oled_config.frequency = NRF_SPIM_FREQ_32M; // The SSD1326 can go up to 10 MHz clock + #else + spi_oled_config.frequency = NRF_SPIM_FREQ_8M; + #endif spi_oled_config.mode = NRF_SPIM_MODE_0; spi_oled_config.ss_active_high = false;