File tree Expand file tree Collapse file tree 5 files changed +5
-11
lines changed
targets/TARGET_Cypress/TARGET_PSOC6/common/udb-sdio-whd Expand file tree Collapse file tree 5 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -860,9 +860,6 @@ void SDIO_Host_Config_UDBs(void);
860
860
#define SDIO_HOST_Write_Int_INTC_CORTEXM4_PRIORITY 7u
861
861
#define SDIO_HOST_Write_Int_INTC_NUMBER 67u
862
862
863
- // ****************************SDIO Port**************************************
864
- #define SDIO_HOST_GPIO_PORT GPIO_PRT12
865
-
866
863
#if defined(__cplusplus )
867
864
}
868
865
#endif
Original file line number Diff line number Diff line change @@ -921,9 +921,6 @@ void SDIO_Host_Config_UDBs(void);
921
921
#define SDIO_HOST_Write_Int_INTC_CORTEXM4_PRIORITY 7u
922
922
#define SDIO_HOST_Write_Int_INTC_NUMBER 67u
923
923
924
- // ****************************SDIO Port**************************************
925
- #define SDIO_HOST_GPIO_PORT GPIO_PRT2
926
-
927
924
#if defined(__cplusplus )
928
925
}
929
926
#endif
Original file line number Diff line number Diff line change @@ -856,9 +856,6 @@ void SDIO_Host_Config_UDBs(void);
856
856
#define SDIO_HOST_Write_Int_INTC_CORTEXM4_PRIORITY 7u
857
857
#define SDIO_HOST_Write_Int_INTC_NUMBER 67u
858
858
859
- // ****************************SDIO Port**************************************
860
- #define SDIO_HOST_GPIO_PORT GPIO_PRT9
861
-
862
859
#if defined(__cplusplus )
863
860
}
864
861
#endif
Original file line number Diff line number Diff line change 25
25
#include "SDIO_HOST.h"
26
26
#include "cy_utils.h"
27
27
#include "cy_gpio.h"
28
+ #include "cybsp.h"
28
29
29
30
#if defined(CYHAL_UDB_SDIO )
30
31
@@ -717,7 +718,9 @@ en_sdio_result_t SDIO_SendCommandAndWait(stc_sdio_cmd_t* pstcCmd)
717
718
718
719
// Check DAT[0] to ensure it isn't low, if it is wait
719
720
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 )
721
724
{
722
725
#if defined(CY_RTOS_AWARE ) || defined(COMPONENT_RTOS_AWARE )
723
726
cy_rtos_delay_milliseconds (1 );
Original file line number Diff line number Diff line change 1
- <version >.19214 </version >
1
+ <version >.19666 </version >
You can’t perform that action at this time.
0 commit comments