mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-19 16:33:20 +08:00
修复mico-sdk错误
This commit is contained in:
@@ -1,41 +1,41 @@
|
||||
#ifndef __FS_SYNC_H__
|
||||
#define __FS_SYNC_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif//__cplusplus
|
||||
|
||||
#include "fsinfo.h"
|
||||
//
|
||||
//<2F><>ҪĿ<D2AA><C4BF>Ϊʵ<CEAA><CAB5><EFBFBD>ļ<EFBFBD>ϵͳ<CFB5>Ķ<EFBFBD><C4B6>߳<EFBFBD>ͬ<EFBFBD><CDAC>
|
||||
//
|
||||
|
||||
//
|
||||
// init sync semaphore
|
||||
//
|
||||
uint8_t FsSyncInit(void* FsContext);
|
||||
|
||||
//
|
||||
// lock
|
||||
//
|
||||
void FsLock(void* FsContext);
|
||||
|
||||
//
|
||||
// unlock
|
||||
//
|
||||
void FsUnLock(void* FsContext);
|
||||
|
||||
#define ENTER_FAT(fs) FsLock(fs)
|
||||
|
||||
#define LEAVE_FAT(fs, res) \
|
||||
{ \
|
||||
FsUnLock(fs); \
|
||||
return res; \
|
||||
}
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif//__cplusplus
|
||||
|
||||
#endif //_FS_SYNC_H_
|
||||
#ifndef __FS_SYNC_H__
|
||||
#define __FS_SYNC_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif//__cplusplus
|
||||
|
||||
#include "fsinfo.h"
|
||||
//
|
||||
//<2F><>ҪĿ<D2AA><C4BF>Ϊʵ<CEAA><CAB5><EFBFBD>ļ<EFBFBD>ϵͳ<CFB5>Ķ<EFBFBD><C4B6>߳<EFBFBD>ͬ<EFBFBD><CDAC>
|
||||
//
|
||||
|
||||
//
|
||||
// init sync semaphore
|
||||
//
|
||||
uint8_t FsSyncInit(void* FsContext);
|
||||
|
||||
//
|
||||
// lock
|
||||
//
|
||||
void FsLock(void* FsContext);
|
||||
|
||||
//
|
||||
// unlock
|
||||
//
|
||||
void FsUnLock(void* FsContext);
|
||||
|
||||
#define ENTER_FAT(fs) FsLock(fs)
|
||||
|
||||
#define LEAVE_FAT(fs, res) \
|
||||
{ \
|
||||
FsUnLock(fs); \
|
||||
return res; \
|
||||
}
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif//__cplusplus
|
||||
|
||||
#endif //_FS_SYNC_H_
|
||||
|
||||
Reference in New Issue
Block a user