update SDIO driver
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2027 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
7f98c2e5e9
commit
9c804a28a4
|
@ -622,6 +622,11 @@ struct rt_mmcsd_host *mmcsd_alloc_host(void)
|
||||||
|
|
||||||
rt_memset(host, 0, sizeof(struct rt_mmcsd_host));
|
rt_memset(host, 0, sizeof(struct rt_mmcsd_host));
|
||||||
|
|
||||||
|
host->max_seg_size = 65535;
|
||||||
|
host->max_dma_segs = 1;
|
||||||
|
host->max_blk_size = 512;
|
||||||
|
host->max_blk_count = 4096;
|
||||||
|
|
||||||
rt_sem_init(&host->bus_lock, "sd_bus_lock", 1, RT_IPC_FLAG_FIFO);
|
rt_sem_init(&host->bus_lock, "sd_bus_lock", 1, RT_IPC_FLAG_FIFO);
|
||||||
rt_sem_init(&host->sem_ack, "sd_ack", 0, RT_IPC_FLAG_FIFO);
|
rt_sem_init(&host->sem_ack, "sd_ack", 0, RT_IPC_FLAG_FIFO);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue