Skip to content

Commit

Permalink
Aligned the macros
Browse files Browse the repository at this point in the history
  • Loading branch information
rosahay-silabs committed May 24, 2023
1 parent c36e4bb commit 37526f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions examples/platform/silabs/efr32/spi_multiplex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions examples/platform/silabs/efr32/wf200/efr_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}

Expand All @@ -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*/
}

Expand Down

0 comments on commit 37526f0

Please sign in to comment.