From 37526f051efb370c649d0af511392d0d4917df44 Mon Sep 17 00:00:00 2001 From: rosahay-silabs Date: Wed, 24 May 2023 10:40:19 +0530 Subject: [PATCH] Aligned the macros --- examples/platform/silabs/efr32/spi_multiplex.h | 10 +++++----- examples/platform/silabs/efr32/wf200/efr_spi.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/platform/silabs/efr32/spi_multiplex.h b/examples/platform/silabs/efr32/spi_multiplex.h index dfae0c5e9d1cac..9e8760b36e6a89 100644 --- a/examples/platform/silabs/efr32/spi_multiplex.h +++ b/examples/platform/silabs/efr32/spi_multiplex.h @@ -36,14 +36,14 @@ extern "C" { #include "em_eusart.h" #include "spidrv.h" -#define SL_BIT_RATE_LCD 1100000 +#define SL_SPIDRV_LCD_BITRATE 1100000 #ifdef WF200_WIFI -#define SL_BIT_RATE_EXP_HDR 10000000 +#define SL_SPIDRV_EXP_BITRATE 10000000 #else -#define SL_BIT_RATE_EXP_HDR SL_SPIDRV_EUSART_EXP_BITRATE +#define SL_SPIDRV_EXP_BITRATE SL_SPIDRV_EUSART_EXP_BITRATE #endif /* WF200_WIFI */ -#define SL_BIT_RATE_SPI_FLASH 16000000 -#define SL_BIT_RATE_UART_CONSOLE 16000000 +#define SL_SPIDRV_MX25_FLASH_BITRATE 16000000 +#define SL_SPIDRV_UART_CONSOLE_BITRATE 16000000 #ifdef RS911X_WIFI #define SL_SPIDRV_FRAME_LENGTH SL_SPIDRV_EUSART_EXP_FRAME_LENGTH diff --git a/examples/platform/silabs/efr32/wf200/efr_spi.c b/examples/platform/silabs/efr32/wf200/efr_spi.c index d8cc30442d5078..a9fd3ff6560400 100644 --- a/examples/platform/silabs/efr32/wf200/efr_spi.c +++ b/examples/platform/silabs/efr32/wf200/efr_spi.c @@ -144,7 +144,7 @@ sl_status_t sl_wfx_host_spi_cs_assert() { return SL_STATUS_TIMEOUT; } - SPIDRV_ReInit(SL_BIT_RATE_EXP_HDR); + SPIDRV_ReInit(SL_SPIDRV_EXP_BITRATE); #endif /* EFR32MG24 */ GPIO_PinOutClear(SL_SPIDRV_EXP_CS_PORT, SL_SPIDRV_EXP_CS_PIN); return SL_STATUS_OK; @@ -418,7 +418,7 @@ void sl_wfx_host_pre_bootloader_spi_transfer(void) /* * Assert CS pin for EXT SPI Flash */ - SPIDRV_ReInit(SL_BIT_RATE_SPI_FLASH); + SPIDRV_ReInit(SL_SPIDRV_MX25_FLASH_BITRATE); sl_wfx_host_spiflash_cs_assert(); } @@ -437,7 +437,7 @@ void sl_wfx_host_pre_lcd_spi_transfer(void) { return; } - SPIDRV_ReInit(SL_BIT_RATE_LCD); + SPIDRV_ReInit(SL_SPIDRV_LCD_BITRATE); /*LCD CS is handled as part of LCD gsdk*/ }