1 Star 0 Fork 1

sam/libraries

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
StduinoMemory.h 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
sam 提交于 2020-07-02 13:39 . 1.03
/***************************************************************
*Copyright(c) 2020思特诺(Stduino)All right reserved.
*
*This library is open source and free for individual users.
*
*For commercial use, please contact service001@stduino.com.
***************************************************************/
#ifndef StduinoMemory_h
#define StduinoMemory_h
#ifdef __cplusplus
extern "C" {
#endif
#define BlockSize (32)
#define MemorySize (800*2)
#define MemoryMapSize (MemorySize/BlockSize)
struct STDUINOMEMORY
{
void (*Begin)(void);
unsigned char (*MemoryUsed)(void);
unsigned char MemoryBasic[MemorySize];
unsigned short MemoryMap[MemoryMapSize];
unsigned char MemoryReadyFlag;
};
extern struct STDUINOMEMORY StduinoMemory;
void MEMCPY(void *des,void *src,unsigned long len);
void MEMSET(void *s,unsigned char c,unsigned long count);
void *MEMMOVE( void *dest , const void *src , unsigned int count);
void INIT(void);
unsigned long MALLOC(unsigned long size);
unsigned char FREE(unsigned long offset);
unsigned char PERUSED(void);
void Stduino_free(void *ptr);
void *Stduino_malloc(unsigned long size);
void *Stduino_realloc(void *ptr,unsigned long size);
#ifdef __cplusplus
}
#endif
#endif
/***************************************************************
*Copyright(c) 2020思特诺(Stduino)All right reserved.
*
*This library is open source and free for individual users.
*
*For commercial use, please contact service001@stduino.com.
***************************************************************/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/stduino/libraries.git
git@gitee.com:stduino/libraries.git
stduino
libraries
libraries
master

搜索帮助