Initial import of NFC GNSS SDK project

This commit is contained in:
chenjintao
2026-09-15 16:10:12 +08:00
commit 2746cc3d4e
3070 changed files with 892062 additions and 0 deletions
@@ -0,0 +1,100 @@
#ifndef LFS_TRACE_H
#define LFS_TRACE_H
/*===========================================================================
LFS trace Header File
DESCRIPTION
This header file contains all the definitions necessary for
clients to interface with the Dial module.
Copyright (c) 2011 by MARVELL INCORPORATED. All Rights Reserved.
Export of this technology or software is regulated by the U.S. Government.
Diversion contrary to U.S. law prohibited.
===========================================================================*/
/*===========================================================================
EDIT HISTORY FOR FILE
This section contains comments describing changes made to the module.
Notice that changes are listed in reverse chronological order.
when who what, where, why
-------- ------ -------------------------------------------------------
11/16/08 zhoujin Create lfs trace header file
===========================================================================*/
#include "utils.h"
#include "utilities.h"
/*===========================================================================
PUBLIC DATA DECLARATIONS
===========================================================================*/
/* -------------------------------------------------------------------
** LFS log printf.
** -------------------------------------------------------------------
*/
#ifndef LFSLogPrintf
#define LFSLogPrintf(fmt,args...) \
{ \
if (log_config.log_cfg != LOG_DISABLE) \
{ \
UARTLogPrintf_Extend(LOG_MODULE_LFS, fmt, ##args); \
} \
}
#endif
/* -------------------------------------------------------------------
** FATSYS trace debug.
** -------------------------------------------------------------------
*/
#define FATSYS_TRACE(fmt,args...) \
{ \
if (LFS_TRACE_ENABLE) \
{ \
LFSLogPrintf("lfs: "fmt, ##args); \
} \
}
/* -------------------------------------------------------------------
** FAT system ASSERT.
** -------------------------------------------------------------------
*/
#define FAT_ASSERT(cOND) { if (!(cOND)) { utilsAssertFail(#cOND, __FILE__, __LINE__, 1);}}
/* -------------------------------------------------------------------
** LFS debug flag.
** -------------------------------------------------------------------
*/
#define LFS_TRACE_ENABLE LfsTraceEnable
/*===========================================================================
EXTERN DECLARATIONS FOR MODULE
===========================================================================*/
extern BOOL LfsTraceEnable;
/*===========================================================================
EXTERN FUNCTION DECLARATIONS
===========================================================================*/
/*===========================================================================
INTERNAL FUNCTION DECLARATIONS
===========================================================================*/
#endif /* LFS_TRACE_H */