Skip to content

Commit

Permalink
update to correct max spi speed for esp32-wifi
Browse files Browse the repository at this point in the history
  • Loading branch information
Saydi committed Mar 22, 2024
1 parent d560685 commit 105b527
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static const char TAG[] = "FW_SPI";
#define GPIO_CS 6
#define DMA_CHAN SPI_DMA_CH_AUTO

#define SPI_CLK_MHZ 60
#define SPI_CLK_MHZ 20

#elif defined CONFIG_IDF_TARGET_ESP32C2

Expand Down Expand Up @@ -511,7 +511,7 @@ static interface_handle_t * esp_spi_init(void)

/* Configuration for the SPI slave interface */
spi_slave_interface_config_t slvcfg={
.mode=SPI_MODE_0,
.mode=SPI_MODE_3,
.spics_io_num=GPIO_CS,
.queue_size=SPI_QUEUE_SIZE,
.flags=0,
Expand Down

0 comments on commit 105b527

Please sign in to comment.