Skip to content

Commit

Permalink
Adds use of the ECODE_EMDRV_SPIDRV status instead of generic ECODE
Browse files Browse the repository at this point in the history
  • Loading branch information
rosahay-silabs committed Jun 21, 2023
1 parent ae9f3af commit d720788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/platform/silabs/efr32/rs911x/hal/efx_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ sl_status_t sl_wfx_host_spi_cs_deassert(void)
{
if (spi_enabled)
{
if (ECODE_OK != SPIDRV_DeInit(SL_SPIDRV_HANDLE))
if (ECODE_EMDRV_SPIDRV_OK != SPIDRV_DeInit(SL_SPIDRV_HANDLE))
{
xSemaphoreGive(spi_sem_sync_hdl);
return SL_STATUS_FAIL;
Expand Down Expand Up @@ -233,7 +233,7 @@ sl_status_t sl_wfx_host_pre_bootloader_spi_transfer(void)
xSemaphoreTake(spi_sem_sync_hdl, portMAX_DELAY);
if (spi_enabled)
{
if (ECODE_OK != SPIDRV_DeInit(SL_SPIDRV_HANDLE))
if (ECODE_EMDRV_SPIDRV_OK != SPIDRV_DeInit(SL_SPIDRV_HANDLE))
{
xSemaphoreGive(spi_sem_sync_hdl);
return SL_STATUS_FAIL;
Expand Down Expand Up @@ -273,7 +273,7 @@ sl_status_t sl_wfx_host_pre_lcd_spi_transfer(void)
xSemaphoreTake(spi_sem_sync_hdl, portMAX_DELAY);
if (spi_enabled)
{
if (ECODE_OK != SPIDRV_DeInit(SL_SPIDRV_HANDLE))
if (ECODE_EMDRV_SPIDRV_OK != SPIDRV_DeInit(SL_SPIDRV_HANDLE))
{
xSemaphoreGive(spi_sem_sync_hdl);
return SL_STATUS_FAIL;
Expand Down

0 comments on commit d720788

Please sign in to comment.