#ifndef OS_INF_H__
#define OS_INF_H__

#include "platmacro.h"
#include <pthread.h>

/*-----------------------------------------------------------------------------------------
 Discription:  系统延时
 Param:        @Param1:延时大小 (ms)
 Return:       None
 Modify:
*-----------------------------------------------------------------------------------------*/
extern void OS_Delay_MS(const uint32_t delay);

/*-----------------------------------------------------------------------------------------
 Discription:  系统内存申请
 Param:        @Param1:长度(Byte)
 Return:       申请数据指针
 Modify:
*-----------------------------------------------------------------------------------------*/
extern void *OS_Malloc(Std_Size_Type bufSize);

/*-----------------------------------------------------------------------------------------
 Discription:  系统内存释放
               !!!warning:由于系统暂时使用的堆栈模型为数组模拟
               !!!不要使用该接口释内存
 Param:        @Param1:释放的数据指针
 Return:       None
 Modify:
*-----------------------------------------------------------------------------------------*/
extern void OS_Free(void *buf);


/*-----------------------------------------------------------------------------------------
 Discription:  获取系统TICK
 Param:        None
 Return:       100ms unit tick
 Author:       DFS
 Create:       2018-8-20
 Modify:
*-----------------------------------------------------------------------------------------*/
uint32_t OS_Get100Milliseconds(void);


#endif /*OS_INF_H__*/
