From d72078846f7d94f2ff7718402ec278c13686c0db Mon Sep 17 00:00:00 2001 From: rosahay-silabs Date: Wed, 21 Jun 2023 11:02:13 +0530 Subject: [PATCH] Adds use of the ECODE_EMDRV_SPIDRV status instead of generic ECODE --- examples/platform/silabs/efr32/rs911x/hal/efx_spi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/platform/silabs/efr32/rs911x/hal/efx_spi.c b/examples/platform/silabs/efr32/rs911x/hal/efx_spi.c index addf05d9c66c65..62b14e0bd34b51 100644 --- a/examples/platform/silabs/efr32/rs911x/hal/efx_spi.c +++ b/examples/platform/silabs/efr32/rs911x/hal/efx_spi.c @@ -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; @@ -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; @@ -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;