mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-24 22:04:54 +08:00
修复 MMCSD 宏拼写错误+内核开启LOG_D编译问题
This commit is contained in:
@@ -69,7 +69,7 @@ static struct dfs_dentry *_dentry_create(struct dfs_mnt *mnt, char *path, rt_boo
|
||||
rt_atomic_store(&(dentry->ref_count), 1);
|
||||
dentry->flags |= DENTRY_IS_ALLOCED;
|
||||
|
||||
LOG_I("create a dentry:%p for %s", dentry, fullpath);
|
||||
LOG_I("create a dentry:%p for %s", dentry, mnt->fullpath);
|
||||
}
|
||||
|
||||
return dentry;
|
||||
|
||||
@@ -16,7 +16,7 @@ config RT_USING_SDIO
|
||||
int "The stack size for mmcsd thread"
|
||||
default 1024
|
||||
|
||||
config RT_MMCSD_THREAD_PREORITY
|
||||
config RT_MMCSD_THREAD_PRIORITY
|
||||
int "The priority level value of mmcsd thread"
|
||||
default 22
|
||||
|
||||
|
||||
@@ -26,11 +26,11 @@
|
||||
#ifndef RT_MMCSD_STACK_SIZE
|
||||
#define RT_MMCSD_STACK_SIZE 1024
|
||||
#endif
|
||||
#ifndef RT_MMCSD_THREAD_PREORITY
|
||||
#ifndef RT_MMCSD_THREAD_PRIORITY
|
||||
#if (RT_THREAD_PRIORITY_MAX == 32)
|
||||
#define RT_MMCSD_THREAD_PREORITY 0x16
|
||||
#define RT_MMCSD_THREAD_PRIORITY 0x16
|
||||
#else
|
||||
#define RT_MMCSD_THREAD_PREORITY 0x40
|
||||
#define RT_MMCSD_THREAD_PRIORITY 0x40
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -767,7 +767,7 @@ int rt_mmcsd_core_init(void)
|
||||
RT_IPC_FLAG_FIFO);
|
||||
RT_ASSERT(ret == RT_EOK);
|
||||
ret = rt_thread_init(&mmcsd_detect_thread, "mmcsd_detect", mmcsd_detect, RT_NULL,
|
||||
&mmcsd_stack[0], RT_MMCSD_STACK_SIZE, RT_MMCSD_THREAD_PREORITY, 20);
|
||||
&mmcsd_stack[0], RT_MMCSD_STACK_SIZE, RT_MMCSD_THREAD_PRIORITY, 20);
|
||||
if (ret == RT_EOK)
|
||||
{
|
||||
rt_thread_startup(&mmcsd_detect_thread);
|
||||
|
||||
Reference in New Issue
Block a user