Skip to content

Commit 202a979

Browse files
Update Cypress udb-sdio-whd to 1.1.1
1 parent d3e940d commit 202a979

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/common/udb-sdio-whd/COMPONENT_UDB_SDIO_P12/SDIO_HOST_cfg.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -860,9 +860,6 @@ void SDIO_Host_Config_UDBs(void);
860860
#define SDIO_HOST_Write_Int_INTC_CORTEXM4_PRIORITY 7u
861861
#define SDIO_HOST_Write_Int_INTC_NUMBER 67u
862862

863-
// ****************************SDIO Port**************************************
864-
#define SDIO_HOST_GPIO_PORT GPIO_PRT12
865-
866863
#if defined(__cplusplus)
867864
}
868865
#endif

targets/TARGET_Cypress/TARGET_PSOC6/common/udb-sdio-whd/COMPONENT_UDB_SDIO_P2/SDIO_HOST_cfg.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -921,9 +921,6 @@ void SDIO_Host_Config_UDBs(void);
921921
#define SDIO_HOST_Write_Int_INTC_CORTEXM4_PRIORITY 7u
922922
#define SDIO_HOST_Write_Int_INTC_NUMBER 67u
923923

924-
// ****************************SDIO Port**************************************
925-
#define SDIO_HOST_GPIO_PORT GPIO_PRT2
926-
927924
#if defined(__cplusplus)
928925
}
929926
#endif

targets/TARGET_Cypress/TARGET_PSOC6/common/udb-sdio-whd/COMPONENT_UDB_SDIO_P9/SDIO_HOST_cfg.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -856,9 +856,6 @@ void SDIO_Host_Config_UDBs(void);
856856
#define SDIO_HOST_Write_Int_INTC_CORTEXM4_PRIORITY 7u
857857
#define SDIO_HOST_Write_Int_INTC_NUMBER 67u
858858

859-
// ****************************SDIO Port**************************************
860-
#define SDIO_HOST_GPIO_PORT GPIO_PRT9
861-
862859
#if defined(__cplusplus)
863860
}
864861
#endif

targets/TARGET_Cypress/TARGET_PSOC6/common/udb-sdio-whd/SDIO_HOST.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "SDIO_HOST.h"
2626
#include "cy_utils.h"
2727
#include "cy_gpio.h"
28+
#include "cybsp.h"
2829

2930
#if defined(CYHAL_UDB_SDIO)
3031

@@ -717,7 +718,9 @@ en_sdio_result_t SDIO_SendCommandAndWait(stc_sdio_cmd_t* pstcCmd)
717718

718719
// Check DAT[0] to ensure it isn't low, if it is wait
719720
uint32_t count = 0;
720-
while (0UL == Cy_GPIO_Read(SDIO_HOST_GPIO_PORT, 0) && count < SDIO_DAT_BUSY_TIMEOUT_MS)
721+
while (0UL ==
722+
Cy_GPIO_Read(Cy_GPIO_PortToAddr(CYHAL_GET_PORT(CYBSP_WIFI_SDIO_D0)),
723+
CYHAL_GET_PIN(CYBSP_WIFI_SDIO_D0)) && count < SDIO_DAT_BUSY_TIMEOUT_MS)
721724
{
722725
#if defined(CY_RTOS_AWARE) || defined(COMPONENT_RTOS_AWARE)
723726
cy_rtos_delay_milliseconds(1);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<version>.19214</version>
1+
<version>.19666</version>

0 commit comments

Comments
 (0)