Skip to content

Commit

Permalink
fix compile error for OLED
Browse files Browse the repository at this point in the history
  • Loading branch information
solosky committed Apr 23, 2024
1 parent 6fd8e63 commit e3c972b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fw/application/src/hal/hal_spi_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e3c972b

Please sign in to comment.