-
-
Notifications
You must be signed in to change notification settings - Fork 952
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/InfiniTimeOrg/InfiniTime in…
…to infinisleep
- Loading branch information
Showing
8 changed files
with
105 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#pragma once | ||
|
||
#include <libraries/log/nrf_log.h> | ||
|
||
#ifndef LFS_TRACE | ||
#ifdef LFS_YES_TRACE | ||
#define LFS_TRACE_(fmt, ...) \ | ||
NRF_LOG_DEBUG("[LFS] %s:%d:trace: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__) | ||
#define LFS_TRACE(...) LFS_TRACE_(__VA_ARGS__, "") | ||
#else | ||
#define LFS_TRACE(...) | ||
#endif | ||
#endif | ||
|
||
#ifndef LFS_DEBUG | ||
#ifndef LFS_NO_DEBUG | ||
#define LFS_DEBUG_(fmt, ...) \ | ||
NRF_LOG_DEBUG("[LFS] %s:%d:debug: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__) | ||
#define LFS_DEBUG(...) LFS_DEBUG_(__VA_ARGS__, "") | ||
#else | ||
#define LFS_DEBUG(...) | ||
#endif | ||
#endif | ||
|
||
#ifndef LFS_WARN | ||
#ifndef LFS_NO_WARN | ||
#define LFS_WARN_(fmt, ...) \ | ||
NRF_LOG_WARNING("[LFS] %s:%d:warn: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__) | ||
#define LFS_WARN(...) LFS_WARN_(__VA_ARGS__, "") | ||
#else | ||
#define LFS_WARN(...) | ||
#endif | ||
#endif | ||
|
||
#ifndef LFS_ERROR | ||
#ifndef LFS_NO_ERROR | ||
#define LFS_ERROR_(fmt, ...) \ | ||
NRF_LOG_ERROR("[LFS] %s:%d:error: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__) | ||
#define LFS_ERROR(...) LFS_ERROR_(__VA_ARGS__, "") | ||
#else | ||
#define LFS_ERROR(...) | ||
#endif | ||
#endif | ||
|
||
// This is required in order for the CRC implementation in littlefs/lfs_util.c to be compiled | ||
#undef LFS_CONFIG | ||
|
||
#undef LFS_UTIL_H | ||
#include <littlefs/lfs_util.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters