系统类增加静态内存大小,用于定位堆底位置

This commit is contained in:
nnhy 2015-10-15 04:39:29 +00:00
parent 6b23513c45
commit c94e1eef0b
2 changed files with 2 additions and 0 deletions

View File

@ -189,6 +189,7 @@ TSys::TSys()
InitHeapStack(RAMSize);
#endif
RAM = (uint)&__heap_base;
StartTime = 0;
OnTick = NULL;

1
Sys.h
View File

@ -86,6 +86,7 @@ public:
uint CPUID; // CPUID
ushort FlashSize; // 芯片Flash容量。
ushort RAMSize; // 芯片RAM容量
ushort RAM; // 系统静态分配内存大小
TSys(); // 构造函数
//~TSys(); // 析构函数