18#ifndef __HAL_DRIVER_GIGADEVICE_GD32H7XX_SDIO_H__
19#define __HAL_DRIVER_GIGADEVICE_GD32H7XX_SDIO_H__
25#if VSF_HAL_USE_SDIO == ENABLED
27#include "../__device.h"
31#define VSF_SDIO_CFG_REIMPLEMENT_TYPE_REQOP ENABLED
32#define VSF_SDIO_CFG_REIMPLEMENT_TYPE_IRQ_MASK ENABLED
33#define VSF_SDIO_CFG_REIMPLEMENT_TYPE_REQSTS ENABLED
61#define SDIO_RESP_NONE __SDIO_CMDOP_RESP_NONE
62#define SDIO_RESP_R1 (__SDIO_CMDOP_RESP | __SDIO_CMDOP_RESP_SHORT_CRC)
63#define SDIO_RESP_R1B (__SDIO_CMDOP_RESP | __SDIO_CMDOP_RESP_SHORT_CRC | SDIO_CMDOP_RESP_BUSY)
64#define SDIO_RESP_R2 (__SDIO_CMDOP_RESP | __SDIO_CMDOP_RESP_LONG_CRC)
65#define SDIO_RESP_R3 (__SDIO_CMDOP_RESP | __SDIO_CMDOP_RESP_SHORT)
66#define SDIO_RESP_R4 (__SDIO_CMDOP_RESP | __SDIO_CMDOP_RESP_SHORT)
67#define SDIO_RESP_R5 (__SDIO_CMDOP_RESP | __SDIO_CMDOP_RESP_SHORT_CRC)
68#define SDIO_RESP_R6 (__SDIO_CMDOP_RESP | __SDIO_CMDOP_RESP_SHORT_CRC)
69#define SDIO_RESP_R7 (__SDIO_CMDOP_RESP | __SDIO_CMDOP_RESP_SHORT_CRC)
vsf_sdio_reqop_t
Definition sdio.h:38
@ SDIO_CMDOP_SINGLE_BLOCK
Definition sdio.h:39
@ SDIO_CMDOP_TRANS_STOP
Definition sdio.h:53
@ __SDIO_CMDOP_RESP_SHORT
Definition sdio.h:47
@ SDIO_CMDOP_CLKHOLD
Definition sdio.h:52
@ SDIO_CMDOP_MULTI_BLOCK
Definition sdio.h:40
vsf_sdio_irq_mask_t
Definition sdio.h:78
vsf_sdio_reqsts_t
Definition sdio.h:85
vsf_sdio_reqop_t
Definition sdio.h:38
@ SDIO_CMDOP_READ
Definition sdio.h:51
@ __SDIO_CMDOP_DATADIR
Definition sdio.h:46
@ __SDIO_CMDOP_HOLD
Definition sdio.h:44
@ __SDIO_CMDOP_DATAEN
Definition sdio.h:45
@ __SDIO_CMDOP_TRSTOP
Definition sdio.h:43
@ SDIO_CMDOP_RESP_BUSY
Definition sdio.h:75
@ __SDIO_CMDOP_RESP
Definition sdio.h:55
@ __SDIO_CMDOP_TREN
Definition sdio.h:42
@ SDIO_CMDOP_BYTE
Definition sdio.h:47
@ __SDIO_CMDOP_RESP_NONE
Definition sdio.h:57
@ SDIO_CMDOP_STREAM
Definition sdio.h:48
@ __SDIO_CMDOP_RESP_LONG_CRC
Definition sdio.h:60
@ SDIO_CMDOP_WRITE
Definition sdio.h:52
@ __SDIO_CMDOP_RESP_SHORT_CRC
Definition sdio.h:58
vsf_sdio_irq_mask_t
Definition sdio.h:78
@ SDIO_IRQ_MASK_HOST_DATA_DONE
Definition sdio.h:82
@ SDIO_IRQ_MASK_HOST_RESP_DONE
Definition sdio.h:80
@ SDIO_IRQ_MASK_HOST_ALL
Definition sdio.h:85
@ SDIO_IRQ_MASK_HOST_DATA_ABORT
Definition sdio.h:84
vsf_sdio_reqsts_t
Definition sdio.h:90
@ SDIO_REQSTS_ERR_MASK
Definition sdio.h:102
@ SDIO_REQSTS_BUSY
Definition sdio.h:101
@ SDIO_REQSTS_DATA_BUSY
Definition sdio.h:99
@ SDIO_REQSTS_DONE
Definition sdio.h:91
@ SDIO_REQSTS_ERR_RESP_CRC
Definition sdio.h:95
@ SDIO_REQSTS_ERR_RESP_NONE
Definition sdio.h:93
@ SDIO_REQSTS_ERR_DATA_CRC
Definition sdio.h:97