UDB SDIO for Wi-Fi Host Driver¶
This library provides a UDB based SDIO interface that allows for communicating between a PSoC 6 and a wireless device such as the CYW4343W, CYW43438, or CYW43012. This library allows PSoC 6 devices that do not have a dedicated SDHC hardware block, but do have UDBs, to work with the Wi-Fi Host Driver (WHD) library.
NOTE: This library does not provide a complete SDIO implementation. It is only intended for use with a wireless device.
NOTE: This library is only compatible with PSoC 6 Board Support Packages (BSPs) version 1.2.0 and later. Prior to this version, portions of this library were directly included as part of the BSP.
There are three configurations of this library to choose from based on what PSoC 6 pins are intended for SDIO communication. Selection of which port to use is done by specifying the appropriate component to the makefile. Details for this are described in the Quick Start section below. The table below shows the supported ports and which pins on that port map to which SDIO function.
Update the application or BSP makefile to indicate which port to use for SDIO communication
For Port 2: COMPONENTS+=UDB_SDIO_P2
For Port 9: COMPONENTS+=UDB_SDIO_P9
For Port 12: COMPONENTS+=UDB_SDIO_P12
Update the application or BSP makefile to indicate that Wi-Fi is supported DEFINES+=CYBSP_WIFI_CAPABLE
Add the WHD and associated wireless libraries to the application
Refer to the WHD documentation for setting up the networking interface
To use this library, the following must be true:
ClkSlow & ClkPeri must both run at the same speed
ClkSlow & ClkPeri must run at 4x the desired SDIO speed
The SDIO clock must run at between 20-25MHz
The first 8-bit peripheral clock divider must be reserved for use by this driver
The following DMA channels must be reserved for use by this driver
DataWire 0 channel 0
DataWire 0 channel 1
DataWire 1 channel 1
DataWire 1 channel 3
NOTE: The optimal configuration is to have ClkSlow and ClkPeri running at 100 MHz and for the SDIO to run at 25 MHz.