mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-31 15:50:26 +08:00
clean code
This commit is contained in:
parent
3c9da16d8d
commit
535aa894e8
@ -107,10 +107,6 @@ CONFIG_FINSH_ARG_MAX=10
|
|||||||
# Device virtual file system
|
# Device virtual file system
|
||||||
#
|
#
|
||||||
# CONFIG_RT_USING_DFS is not set
|
# CONFIG_RT_USING_DFS is not set
|
||||||
# CONFIG_RT_DFS_ELM_USE_LFN_0 is not set
|
|
||||||
# CONFIG_RT_DFS_ELM_USE_LFN_1 is not set
|
|
||||||
# CONFIG_RT_DFS_ELM_USE_LFN_2 is not set
|
|
||||||
# CONFIG_RT_DFS_ELM_USE_LFN_3 is not set
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Device Drivers
|
# Device Drivers
|
||||||
|
@ -192,6 +192,7 @@ static void rthw_sdio_send_command(struct rthw_sdio *sdio, struct sdio_pkg *pkg)
|
|||||||
/* data pre configuration */
|
/* data pre configuration */
|
||||||
if (data != RT_NULL)
|
if (data != RT_NULL)
|
||||||
{
|
{
|
||||||
|
|
||||||
SCB_CleanInvalidateDCache();
|
SCB_CleanInvalidateDCache();
|
||||||
|
|
||||||
reg_cmd |= SDMMC_CMD_CMDTRANS;
|
reg_cmd |= SDMMC_CMD_CMDTRANS;
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
#include "rtdevice.h"
|
#include "rtdevice.h"
|
||||||
#include <rthw.h>
|
#include <rthw.h>
|
||||||
#include <drv_common.h>
|
#include <drv_common.h>
|
||||||
//#include "drv_dma.h"
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <drivers/mmcsd_core.h>
|
#include <drivers/mmcsd_core.h>
|
||||||
#include <drivers/sdio.h>
|
#include <drivers/sdio.h>
|
||||||
@ -51,8 +50,10 @@
|
|||||||
SDMMC_STA_DTIMEOUT | SDMMC_STA_CTIMEOUT | \
|
SDMMC_STA_DTIMEOUT | SDMMC_STA_CTIMEOUT | \
|
||||||
SDMMC_STA_DCRCFAIL | SDMMC_STA_CCRCFAIL)
|
SDMMC_STA_DCRCFAIL | SDMMC_STA_CCRCFAIL)
|
||||||
|
|
||||||
//#define SDIO_MASKR_ALL (0x17E00FFF)
|
#define SDIO_MASKR_ALL \
|
||||||
#define SDIO_MASKR_ALL (0x11C003FF)
|
(SDMMC_MASK_CCRCFAILIE | SDMMC_MASK_DCRCFAILIE | SDMMC_MASK_CTIMEOUTIE |\
|
||||||
|
SDMMC_MASK_TXUNDERRIE | SDMMC_MASK_RXOVERRIE | SDMMC_MASK_CMDRENDIE | \
|
||||||
|
SDMMC_MASK_CMDSENTIE | SDMMC_MASK_DATAENDIE | SDMMC_MASK_ACKTIMEOUTIE)
|
||||||
|
|
||||||
#define HW_SDIO_DATATIMEOUT (0xFFFFFFFFU)
|
#define HW_SDIO_DATATIMEOUT (0xFFFFFFFFU)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user