[bsp] format drivers code
This commit is contained in:
parent
6a9c42a19d
commit
3782127116
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (C) 2012-2022, Shanghai Real-Thread Technology Co., Ltd
|
* COPYRIGHT (C) 2012-2024, Shanghai Real-Thread Technology Co., Ltd
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Change Logs:
|
* Change Logs:
|
||||||
* Date Author Notes
|
* Date Author Notes
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (C) 2012-2022, Shanghai Real-Thread Technology Co., Ltd
|
* COPYRIGHT (C) 2012-2024, Shanghai Real-Thread Technology Co., Ltd
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Change Logs:
|
* Change Logs:
|
||||||
* Date Author Notes
|
* Date Author Notes
|
||||||
|
|
|
@ -598,7 +598,7 @@ int rthw_sdctrl_init(void)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
normalIrqFlgs |= NORMAL_IRQ_CC;
|
normalIrqFlgs |= NORMAL_IRQ_CC;
|
||||||
/* register handler、irq enable bit and wait callback */
|
/* register handler irq enable bit and wait callback */
|
||||||
FSdCtrl_SetHandler(ft_sdctrl_p, FTSDCTRL_CMDIRQID, rthw_sdctrl_nomarl_callback, ft_sdctrl_p);
|
FSdCtrl_SetHandler(ft_sdctrl_p, FTSDCTRL_CMDIRQID, rthw_sdctrl_nomarl_callback, ft_sdctrl_p);
|
||||||
FSdCtrl_NormalIrqSet(ft_sdctrl_p, normalIrqFlgs);
|
FSdCtrl_NormalIrqSet(ft_sdctrl_p, normalIrqFlgs);
|
||||||
FSdCtrl_CmdWaitRegister(ft_sdctrl_p, rthw_sdctrl_cmd_wait);
|
FSdCtrl_CmdWaitRegister(ft_sdctrl_p, rthw_sdctrl_cmd_wait);
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#define LOG_TAG "drv.sdio"
|
#define LOG_TAG "drv.sdio"
|
||||||
#include "drv_log.h"
|
#include "drv_log.h"
|
||||||
|
|
||||||
#define SDIO_DMA_USE_IPC 0//1:使用ipc做同步
|
#define SDIO_DMA_USE_IPC 0//1:使用ipc做同步
|
||||||
|
|
||||||
/* card status of R1 definitions */
|
/* card status of R1 definitions */
|
||||||
#define SD_R1_OUT_OF_RANGE BIT(31) /* command's argument was out of the allowed range */
|
#define SD_R1_OUT_OF_RANGE BIT(31) /* command's argument was out of the allowed range */
|
||||||
|
|
Loading…
Reference in New Issue