mirror of https://github.com/ARMmbed/mbed-os.git
Fixup some documentation issues in SDIO_HOST driver
parent
ea1f164814
commit
85ee14b0fc
|
|
@ -23,6 +23,7 @@
|
|||
*******************************************************************************/
|
||||
|
||||
#include "SDIO_HOST.h"
|
||||
#include "cy_utils.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
|
|
@ -92,11 +93,22 @@ static void SDIO_RestoreConfig(void);
|
|||
*
|
||||
* Callback executed during Deep Sleep entry/exit
|
||||
*
|
||||
* \param params
|
||||
* Pointer to structure that holds callback parameters for this driver.
|
||||
*
|
||||
* \param mode
|
||||
* The state transition mode that is currently happening.
|
||||
*
|
||||
* \note
|
||||
* Saves/Restores SDIO UDB registers
|
||||
*
|
||||
* \return
|
||||
* CY_SYSPM_SUCCESS if the transition was successful, otherwise CY_SYSPM_FAIL
|
||||
*
|
||||
*******************************************************************************/
|
||||
cy_en_syspm_status_t SDIO_DeepSleepCallback(cy_stc_syspm_callback_params_t *params, cy_en_syspm_callback_mode_t mode)
|
||||
{
|
||||
CY_UNUSED_PARAMETER(params);
|
||||
cy_en_syspm_status_t status = CY_SYSPM_FAIL;
|
||||
|
||||
switch (mode)
|
||||
|
|
@ -358,7 +370,7 @@ en_sdio_result_t SDIO_GetResponse(uint8_t bCmdIndexCheck, uint8_t bCmdCrcCheck,
|
|||
* Configure the data channel for a data transfer. For a write this doesn't start
|
||||
* the write, that must be done separately after the response is received.
|
||||
*
|
||||
* \param stc_sdio_data_config_t
|
||||
* \param pstcDataConfig
|
||||
* Data configuration structure. See \ref stc_sdio_data_config_t
|
||||
*
|
||||
*
|
||||
|
|
@ -710,7 +722,6 @@ en_sdio_result_t SDIO_SendCommandAndWait(stc_sdio_cmd_t *pstcCmd)
|
|||
/*Wait for the command to finish*/
|
||||
do
|
||||
{
|
||||
//TODO: Use RTOS timeout
|
||||
u32CmdTimeout++;
|
||||
enRetTmp = SDIO_CheckForEvent(SdCmdEventCmdDone);
|
||||
|
||||
|
|
@ -986,7 +997,7 @@ void SDIO_SetBlockSize(uint8_t u8ByteCount)
|
|||
*
|
||||
* Sets the number of blocks to send
|
||||
*
|
||||
* \param u8ByteCount
|
||||
* \param u8BlockCount
|
||||
* Size of the block
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
|
@ -1300,6 +1311,14 @@ void SDIO_IRQ(void)
|
|||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* Function Name: SDIO_READ_DMA_IRQ
|
||||
****************************************************************************//**
|
||||
*
|
||||
* SDIO DMA Read interrupt, checks counts and toggles to other descriptor if
|
||||
* needed
|
||||
*
|
||||
*******************************************************************************/
|
||||
void SDIO_READ_DMA_IRQ(void)
|
||||
{
|
||||
/*Shouldn't have to change anything unless it is the last descriptor*/
|
||||
|
|
@ -1362,6 +1381,14 @@ void SDIO_READ_DMA_IRQ(void)
|
|||
yCounts--;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* Function Name: SDIO_WRITE_DMA_IRQ
|
||||
****************************************************************************//**
|
||||
*
|
||||
* SDIO DMA Write interrupt, checks counts and toggles to other descriptor if
|
||||
* needed
|
||||
*
|
||||
*******************************************************************************/
|
||||
void SDIO_WRITE_DMA_IRQ(void)
|
||||
{
|
||||
/*We shouldn't have to change anything unless it is the last descriptor*/
|
||||
|
|
@ -1423,6 +1450,13 @@ void SDIO_WRITE_DMA_IRQ(void)
|
|||
yCounts--;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* Function Name: SDIO_Free
|
||||
****************************************************************************//**
|
||||
*
|
||||
* Frees any system resources that were allocated by the SDIO driver.
|
||||
*
|
||||
*******************************************************************************/
|
||||
void SDIO_Free(void)
|
||||
{
|
||||
#ifdef CY_RTOS_AWARE
|
||||
|
|
|
|||
|
|
@ -21,51 +21,35 @@
|
|||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*******************************************************************************
|
||||
* \addtogroup group_udb_sdio_changelog
|
||||
* <table class="doxtable">
|
||||
* <tr><th>Version</th><th>Changes</th><th>Reason for Change</th></tr>
|
||||
* <tr>
|
||||
* <td>1.0</td>
|
||||
* <td>Initial version</td>
|
||||
* <td></td>
|
||||
* </tr>
|
||||
* </table>
|
||||
*******************************************************************************/
|
||||
|
||||
/**
|
||||
* \defgroup group_bsp_pin_state Pin States
|
||||
* \defgroup group_bsp_pins Pin Mappings
|
||||
* \defgroup group_bsp_macros Macros
|
||||
* \defgroup group_bsp_functions Functions
|
||||
*
|
||||
* \defgroup group_udb_sdio UDB_SDIO
|
||||
* \{
|
||||
* SDIO - Secure Digital Input Output Is a standard for communicating with various
|
||||
* SDIO - Secure Digital Input Output is a standard for communicating with various
|
||||
external devices such as Wifi and bluetooth devices.
|
||||
* \{
|
||||
* \defgroup group_udb_sdio_general_description General Description
|
||||
* \defgroup group_udb_sdio_changelog Changelog
|
||||
* \}
|
||||
* \defgroup group_udb_sdio_API API Reference
|
||||
* \{
|
||||
* \defgroup group_udb_sdio_macros Macros
|
||||
* \defgroup group_udb_sdio_functions Functions
|
||||
* \defgroup group_udb_sdio_data_structures Data Structures
|
||||
* \}
|
||||
*/
|
||||
|
||||
/**
|
||||
* \addtogroup group_udb_sdio_general_description
|
||||
* \section group_udb_sdio_section_overview Overview
|
||||
* This driver is currently designed to only support communication with certain
|
||||
* Broadcom Wifi and Bluetooth chipsets, it is not designed to work with a general
|
||||
* SDIO card, or even and SD card. Consult TDU#315 for information on limitations
|
||||
* <p>
|
||||
* The driver is currently designed to only support communication with certain
|
||||
* Cypress Wifi and Bluetooth chipsets, it is not designed to work with a general
|
||||
* SDIO card, or even and SD card. It is only intended to be used by the WiFi
|
||||
* driver for communication.
|
||||
* <p>
|
||||
* This is not intended to be used as a general purpose API.
|
||||
*
|
||||
* \section group_udb_sdio_section_configuration_considerations Configuration Considerations
|
||||
* Features:
|
||||
* * Always Four Wire Mode
|
||||
* * Supports Card Interrupt
|
||||
* * Uses DMA for command and data transfer
|
||||
**
|
||||
* \section group_udb_sdio_section_more_information More Information
|
||||
*
|
||||
* \} group_udb_sdio_general_description
|
||||
* \defgroup group_udb_sdio_macros Macros
|
||||
* \defgroup group_udb_sdio_functions Functions
|
||||
* \defgroup group_udb_sdio_data_structures Data Structures
|
||||
*/
|
||||
|
||||
#if !defined(CY_SDIO_H)
|
||||
|
|
@ -258,8 +242,6 @@ typedef struct stc_sdio_cmd
|
|||
* \{
|
||||
*/
|
||||
|
||||
/** \cond INTERNAL */
|
||||
|
||||
/* Main functions*/
|
||||
void SDIO_Init(stc_sdio_irq_cb_t* pfuCb);
|
||||
en_sdio_result_t SDIO_SendCommandAndWait(stc_sdio_cmd_t *pstcCmd);
|
||||
|
|
@ -281,7 +263,6 @@ en_sdio_result_t SDIO_CheckForEvent(en_sdio_event_t enEventType);
|
|||
uint8_t SDIO_CalculateCrc7(uint8_t* pu8Data, uint8_t pu8Size);
|
||||
void SDIO_SetBlockSize(uint8_t u8ByteCount);
|
||||
void SDIO_SetNumBlocks(uint8_t u8BlockCount);
|
||||
en_sdio_result_t SDIO_CheckReadCRC(void);
|
||||
|
||||
/*DMA setup function*/
|
||||
void SDIO_SetupDMA(void);
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
*******************************************************************************/
|
||||
|
||||
#include "SDIO_HOST.h"
|
||||
#include "cy_utils.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
|
|
@ -92,11 +93,22 @@ static void SDIO_RestoreConfig(void);
|
|||
*
|
||||
* Callback executed during Deep Sleep entry/exit
|
||||
*
|
||||
* \param params
|
||||
* Pointer to structure that holds callback parameters for this driver.
|
||||
*
|
||||
* \param mode
|
||||
* The state transition mode that is currently happening.
|
||||
*
|
||||
* \note
|
||||
* Saves/Restores SDIO UDB registers
|
||||
*
|
||||
* \return
|
||||
* CY_SYSPM_SUCCESS if the transition was successful, otherwise CY_SYSPM_FAIL
|
||||
*
|
||||
*******************************************************************************/
|
||||
cy_en_syspm_status_t SDIO_DeepSleepCallback(cy_stc_syspm_callback_params_t *params, cy_en_syspm_callback_mode_t mode)
|
||||
{
|
||||
CY_UNUSED_PARAMETER(params);
|
||||
cy_en_syspm_status_t status = CY_SYSPM_FAIL;
|
||||
|
||||
switch (mode)
|
||||
|
|
@ -358,7 +370,7 @@ en_sdio_result_t SDIO_GetResponse(uint8_t bCmdIndexCheck, uint8_t bCmdCrcCheck,
|
|||
* Configure the data channel for a data transfer. For a write this doesn't start
|
||||
* the write, that must be done separately after the response is received.
|
||||
*
|
||||
* \param stc_sdio_data_config_t
|
||||
* \param pstcDataConfig
|
||||
* Data configuration structure. See \ref stc_sdio_data_config_t
|
||||
*
|
||||
*
|
||||
|
|
@ -710,7 +722,6 @@ en_sdio_result_t SDIO_SendCommandAndWait(stc_sdio_cmd_t *pstcCmd)
|
|||
/*Wait for the command to finish*/
|
||||
do
|
||||
{
|
||||
//TODO: Use RTOS timeout
|
||||
u32CmdTimeout++;
|
||||
enRetTmp = SDIO_CheckForEvent(SdCmdEventCmdDone);
|
||||
|
||||
|
|
@ -986,7 +997,7 @@ void SDIO_SetBlockSize(uint8_t u8ByteCount)
|
|||
*
|
||||
* Sets the number of blocks to send
|
||||
*
|
||||
* \param u8ByteCount
|
||||
* \param u8BlockCount
|
||||
* Size of the block
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
|
@ -1300,6 +1311,14 @@ void SDIO_IRQ(void)
|
|||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* Function Name: SDIO_READ_DMA_IRQ
|
||||
****************************************************************************//**
|
||||
*
|
||||
* SDIO DMA Read interrupt, checks counts and toggles to other descriptor if
|
||||
* needed
|
||||
*
|
||||
*******************************************************************************/
|
||||
void SDIO_READ_DMA_IRQ(void)
|
||||
{
|
||||
/*Shouldn't have to change anything unless it is the last descriptor*/
|
||||
|
|
@ -1362,6 +1381,14 @@ void SDIO_READ_DMA_IRQ(void)
|
|||
yCounts--;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* Function Name: SDIO_WRITE_DMA_IRQ
|
||||
****************************************************************************//**
|
||||
*
|
||||
* SDIO DMA Write interrupt, checks counts and toggles to other descriptor if
|
||||
* needed
|
||||
*
|
||||
*******************************************************************************/
|
||||
void SDIO_WRITE_DMA_IRQ(void)
|
||||
{
|
||||
/*We shouldn't have to change anything unless it is the last descriptor*/
|
||||
|
|
@ -1423,6 +1450,13 @@ void SDIO_WRITE_DMA_IRQ(void)
|
|||
yCounts--;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* Function Name: SDIO_Free
|
||||
****************************************************************************//**
|
||||
*
|
||||
* Frees any system resources that were allocated by the SDIO driver.
|
||||
*
|
||||
*******************************************************************************/
|
||||
void SDIO_Free(void)
|
||||
{
|
||||
#ifdef CY_RTOS_AWARE
|
||||
|
|
|
|||
|
|
@ -21,51 +21,35 @@
|
|||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*******************************************************************************
|
||||
* \addtogroup group_udb_sdio_changelog
|
||||
* <table class="doxtable">
|
||||
* <tr><th>Version</th><th>Changes</th><th>Reason for Change</th></tr>
|
||||
* <tr>
|
||||
* <td>1.0</td>
|
||||
* <td>Initial version</td>
|
||||
* <td></td>
|
||||
* </tr>
|
||||
* </table>
|
||||
*******************************************************************************/
|
||||
|
||||
/**
|
||||
* \defgroup group_bsp_pin_state Pin States
|
||||
* \defgroup group_bsp_pins Pin Mappings
|
||||
* \defgroup group_bsp_macros Macros
|
||||
* \defgroup group_bsp_functions Functions
|
||||
*
|
||||
* \defgroup group_udb_sdio UDB_SDIO
|
||||
* \{
|
||||
* SDIO - Secure Digital Input Output Is a standard for communicating with various
|
||||
* SDIO - Secure Digital Input Output is a standard for communicating with various
|
||||
external devices such as Wifi and bluetooth devices.
|
||||
* \{
|
||||
* \defgroup group_udb_sdio_general_description General Description
|
||||
* \defgroup group_udb_sdio_changelog Changelog
|
||||
* \}
|
||||
* \defgroup group_udb_sdio_API API Reference
|
||||
* \{
|
||||
* \defgroup group_udb_sdio_macros Macros
|
||||
* \defgroup group_udb_sdio_functions Functions
|
||||
* \defgroup group_udb_sdio_data_structures Data Structures
|
||||
* \}
|
||||
*/
|
||||
|
||||
/**
|
||||
* \addtogroup group_udb_sdio_general_description
|
||||
* \section group_udb_sdio_section_overview Overview
|
||||
* This driver is currently designed to only support communication with certain
|
||||
* Broadcom Wifi and Bluetooth chipsets, it is not designed to work with a general
|
||||
* SDIO card, or even and SD card. Consult TDU#315 for information on limitations
|
||||
* <p>
|
||||
* The driver is currently designed to only support communication with certain
|
||||
* Cypress Wifi and Bluetooth chipsets, it is not designed to work with a general
|
||||
* SDIO card, or even and SD card. It is only intended to be used by the WiFi
|
||||
* driver for communication.
|
||||
* <p>
|
||||
* This is not intended to be used as a general purpose API.
|
||||
*
|
||||
* \section group_udb_sdio_section_configuration_considerations Configuration Considerations
|
||||
* Features:
|
||||
* * Always Four Wire Mode
|
||||
* * Supports Card Interrupt
|
||||
* * Uses DMA for command and data transfer
|
||||
**
|
||||
* \section group_udb_sdio_section_more_information More Information
|
||||
*
|
||||
* \} group_udb_sdio_general_description
|
||||
* \defgroup group_udb_sdio_macros Macros
|
||||
* \defgroup group_udb_sdio_functions Functions
|
||||
* \defgroup group_udb_sdio_data_structures Data Structures
|
||||
*/
|
||||
|
||||
#if !defined(CY_SDIO_H)
|
||||
|
|
@ -258,8 +242,6 @@ typedef struct stc_sdio_cmd
|
|||
* \{
|
||||
*/
|
||||
|
||||
/** \cond INTERNAL */
|
||||
|
||||
/* Main functions*/
|
||||
void SDIO_Init(stc_sdio_irq_cb_t* pfuCb);
|
||||
en_sdio_result_t SDIO_SendCommandAndWait(stc_sdio_cmd_t *pstcCmd);
|
||||
|
|
@ -281,7 +263,6 @@ en_sdio_result_t SDIO_CheckForEvent(en_sdio_event_t enEventType);
|
|||
uint8_t SDIO_CalculateCrc7(uint8_t* pu8Data, uint8_t pu8Size);
|
||||
void SDIO_SetBlockSize(uint8_t u8ByteCount);
|
||||
void SDIO_SetNumBlocks(uint8_t u8BlockCount);
|
||||
en_sdio_result_t SDIO_CheckReadCRC(void);
|
||||
|
||||
/*DMA setup function*/
|
||||
void SDIO_SetupDMA(void);
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
*******************************************************************************/
|
||||
|
||||
#include "SDIO_HOST.h"
|
||||
#include "cy_utils.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
|
|
@ -92,11 +93,22 @@ static void SDIO_RestoreConfig(void);
|
|||
*
|
||||
* Callback executed during Deep Sleep entry/exit
|
||||
*
|
||||
* \param params
|
||||
* Pointer to structure that holds callback parameters for this driver.
|
||||
*
|
||||
* \param mode
|
||||
* The state transition mode that is currently happening.
|
||||
*
|
||||
* \note
|
||||
* Saves/Restores SDIO UDB registers
|
||||
*
|
||||
* \return
|
||||
* CY_SYSPM_SUCCESS if the transition was successful, otherwise CY_SYSPM_FAIL
|
||||
*
|
||||
*******************************************************************************/
|
||||
cy_en_syspm_status_t SDIO_DeepSleepCallback(cy_stc_syspm_callback_params_t *params, cy_en_syspm_callback_mode_t mode)
|
||||
{
|
||||
CY_UNUSED_PARAMETER(params);
|
||||
cy_en_syspm_status_t status = CY_SYSPM_FAIL;
|
||||
|
||||
switch (mode)
|
||||
|
|
@ -358,7 +370,7 @@ en_sdio_result_t SDIO_GetResponse(uint8_t bCmdIndexCheck, uint8_t bCmdCrcCheck,
|
|||
* Configure the data channel for a data transfer. For a write this doesn't start
|
||||
* the write, that must be done separately after the response is received.
|
||||
*
|
||||
* \param stc_sdio_data_config_t
|
||||
* \param pstcDataConfig
|
||||
* Data configuration structure. See \ref stc_sdio_data_config_t
|
||||
*
|
||||
*
|
||||
|
|
@ -710,7 +722,6 @@ en_sdio_result_t SDIO_SendCommandAndWait(stc_sdio_cmd_t *pstcCmd)
|
|||
/*Wait for the command to finish*/
|
||||
do
|
||||
{
|
||||
//TODO: Use RTOS timeout
|
||||
u32CmdTimeout++;
|
||||
enRetTmp = SDIO_CheckForEvent(SdCmdEventCmdDone);
|
||||
|
||||
|
|
@ -986,7 +997,7 @@ void SDIO_SetBlockSize(uint8_t u8ByteCount)
|
|||
*
|
||||
* Sets the number of blocks to send
|
||||
*
|
||||
* \param u8ByteCount
|
||||
* \param u8BlockCount
|
||||
* Size of the block
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
|
@ -1300,6 +1311,14 @@ void SDIO_IRQ(void)
|
|||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* Function Name: SDIO_READ_DMA_IRQ
|
||||
****************************************************************************//**
|
||||
*
|
||||
* SDIO DMA Read interrupt, checks counts and toggles to other descriptor if
|
||||
* needed
|
||||
*
|
||||
*******************************************************************************/
|
||||
void SDIO_READ_DMA_IRQ(void)
|
||||
{
|
||||
/*Shouldn't have to change anything unless it is the last descriptor*/
|
||||
|
|
@ -1362,6 +1381,14 @@ void SDIO_READ_DMA_IRQ(void)
|
|||
yCounts--;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* Function Name: SDIO_WRITE_DMA_IRQ
|
||||
****************************************************************************//**
|
||||
*
|
||||
* SDIO DMA Write interrupt, checks counts and toggles to other descriptor if
|
||||
* needed
|
||||
*
|
||||
*******************************************************************************/
|
||||
void SDIO_WRITE_DMA_IRQ(void)
|
||||
{
|
||||
/*We shouldn't have to change anything unless it is the last descriptor*/
|
||||
|
|
@ -1423,6 +1450,13 @@ void SDIO_WRITE_DMA_IRQ(void)
|
|||
yCounts--;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* Function Name: SDIO_Free
|
||||
****************************************************************************//**
|
||||
*
|
||||
* Frees any system resources that were allocated by the SDIO driver.
|
||||
*
|
||||
*******************************************************************************/
|
||||
void SDIO_Free(void)
|
||||
{
|
||||
#ifdef CY_RTOS_AWARE
|
||||
|
|
|
|||
|
|
@ -21,51 +21,35 @@
|
|||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*******************************************************************************
|
||||
* \addtogroup group_udb_sdio_changelog
|
||||
* <table class="doxtable">
|
||||
* <tr><th>Version</th><th>Changes</th><th>Reason for Change</th></tr>
|
||||
* <tr>
|
||||
* <td>1.0</td>
|
||||
* <td>Initial version</td>
|
||||
* <td></td>
|
||||
* </tr>
|
||||
* </table>
|
||||
*******************************************************************************/
|
||||
|
||||
/**
|
||||
* \defgroup group_bsp_pin_state Pin States
|
||||
* \defgroup group_bsp_pins Pin Mappings
|
||||
* \defgroup group_bsp_macros Macros
|
||||
* \defgroup group_bsp_functions Functions
|
||||
*
|
||||
* \defgroup group_udb_sdio UDB_SDIO
|
||||
* \{
|
||||
* SDIO - Secure Digital Input Output Is a standard for communicating with various
|
||||
* SDIO - Secure Digital Input Output is a standard for communicating with various
|
||||
external devices such as Wifi and bluetooth devices.
|
||||
* \{
|
||||
* \defgroup group_udb_sdio_general_description General Description
|
||||
* \defgroup group_udb_sdio_changelog Changelog
|
||||
* \}
|
||||
* \defgroup group_udb_sdio_API API Reference
|
||||
* \{
|
||||
* \defgroup group_udb_sdio_macros Macros
|
||||
* \defgroup group_udb_sdio_functions Functions
|
||||
* \defgroup group_udb_sdio_data_structures Data Structures
|
||||
* \}
|
||||
*/
|
||||
|
||||
/**
|
||||
* \addtogroup group_udb_sdio_general_description
|
||||
* \section group_udb_sdio_section_overview Overview
|
||||
* This driver is currently designed to only support communication with certain
|
||||
* Broadcom Wifi and Bluetooth chipsets, it is not designed to work with a general
|
||||
* SDIO card, or even and SD card. Consult TDU#315 for information on limitations
|
||||
* <p>
|
||||
* The driver is currently designed to only support communication with certain
|
||||
* Cypress Wifi and Bluetooth chipsets, it is not designed to work with a general
|
||||
* SDIO card, or even and SD card. It is only intended to be used by the WiFi
|
||||
* driver for communication.
|
||||
* <p>
|
||||
* This is not intended to be used as a general purpose API.
|
||||
*
|
||||
* \section group_udb_sdio_section_configuration_considerations Configuration Considerations
|
||||
* Features:
|
||||
* * Always Four Wire Mode
|
||||
* * Supports Card Interrupt
|
||||
* * Uses DMA for command and data transfer
|
||||
**
|
||||
* \section group_udb_sdio_section_more_information More Information
|
||||
*
|
||||
* \} group_udb_sdio_general_description
|
||||
* \defgroup group_udb_sdio_macros Macros
|
||||
* \defgroup group_udb_sdio_functions Functions
|
||||
* \defgroup group_udb_sdio_data_structures Data Structures
|
||||
*/
|
||||
|
||||
#if !defined(CY_SDIO_H)
|
||||
|
|
@ -258,8 +242,6 @@ typedef struct stc_sdio_cmd
|
|||
* \{
|
||||
*/
|
||||
|
||||
/** \cond INTERNAL */
|
||||
|
||||
/* Main functions*/
|
||||
void SDIO_Init(stc_sdio_irq_cb_t* pfuCb);
|
||||
en_sdio_result_t SDIO_SendCommandAndWait(stc_sdio_cmd_t *pstcCmd);
|
||||
|
|
@ -281,7 +263,6 @@ en_sdio_result_t SDIO_CheckForEvent(en_sdio_event_t enEventType);
|
|||
uint8_t SDIO_CalculateCrc7(uint8_t* pu8Data, uint8_t pu8Size);
|
||||
void SDIO_SetBlockSize(uint8_t u8ByteCount);
|
||||
void SDIO_SetNumBlocks(uint8_t u8BlockCount);
|
||||
en_sdio_result_t SDIO_CheckReadCRC(void);
|
||||
|
||||
/*DMA setup function*/
|
||||
void SDIO_SetupDMA(void);
|
||||
|
|
|
|||
|
|
@ -825,9 +825,9 @@ extern cy_stc_dma_descriptor_config_t SDIO_HOST_Write_DMA_Write_DMA_Desc_config;
|
|||
extern cy_stc_dma_descriptor_t SDIO_HOST_Write_DMA_Write_DMA_Desc;
|
||||
|
||||
/***************************SDIO Clock**************************************/
|
||||
/* The peripheral clock divider number */
|
||||
/** The peripheral clock divider number */
|
||||
#define SDIO_HOST_Internal_Clock_DIV_NUM ((uint32_t)SDIO_HOST_Internal_Clock__DIV_NUM)
|
||||
/* The peripheral clock divider type */
|
||||
/** The peripheral clock divider type */
|
||||
#define SDIO_HOST_Internal_Clock_DIV_TYPE ((cy_en_divider_types_t)SDIO_HOST_Internal_Clock__DIV_TYPE)
|
||||
|
||||
/*Function for configuring TriggerMuxes*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue