mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 10:28:54 +00:00
v1.1.1
This commit is contained in:
13
packages/third-party/littlefs/lfs.c
vendored
13
packages/third-party/littlefs/lfs.c
vendored
@@ -5266,6 +5266,19 @@ cleanup:
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef RT_DEBUG
|
||||
static bool lfs_mlist_isopen(struct lfs_mlist *head,
|
||||
struct lfs_mlist *node)
|
||||
{
|
||||
for (struct lfs_mlist **p = &head; *p; p = &(*p)->next) {
|
||||
if (*p == (struct lfs_mlist*)node) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
/// Public API wrappers ///
|
||||
|
||||
|
||||
14
packages/third-party/littlefs/lfs_config.h
vendored
14
packages/third-party/littlefs/lfs_config.h
vendored
@@ -51,20 +51,8 @@ extern "C"
|
||||
#endif
|
||||
|
||||
// Runtime assertions
|
||||
#if !defined(LFS_NO_ASSERT) && defined(RT_DEBUG)
|
||||
#ifndef LFS_NO_ASSERT
|
||||
#define LFS_ASSERT(test) RT_ASSERT(test)
|
||||
|
||||
static bool lfs_mlist_isopen(struct lfs_mlist *head,
|
||||
struct lfs_mlist *node) {
|
||||
for (struct lfs_mlist **p = &head; *p; p = &(*p)->next) {
|
||||
if (*p == (struct lfs_mlist*)node) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#else
|
||||
#define LFS_ASSERT(test)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user