From c94e1eef0b99ad9c8d19f2494cd6248116a52366 Mon Sep 17 00:00:00 2001 From: nnhy Date: Thu, 15 Oct 2015 04:39:29 +0000 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=B1=BB=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=9D=99=E6=80=81=E5=86=85=E5=AD=98=E5=A4=A7=E5=B0=8F=EF=BC=8C?= =?UTF-8?q?=E7=94=A8=E4=BA=8E=E5=AE=9A=E4=BD=8D=E5=A0=86=E5=BA=95=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sys.cpp | 1 + Sys.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Sys.cpp b/Sys.cpp index 91464421..0ab1a1cd 100644 --- a/Sys.cpp +++ b/Sys.cpp @@ -189,6 +189,7 @@ TSys::TSys() InitHeapStack(RAMSize); #endif + RAM = (uint)&__heap_base; StartTime = 0; OnTick = NULL; diff --git a/Sys.h b/Sys.h index 2ed070c5..33f2e0e5 100644 --- a/Sys.h +++ b/Sys.h @@ -86,6 +86,7 @@ public: uint CPUID; // CPUID ushort FlashSize; // 芯片Flash容量。 ushort RAMSize; // 芯片RAM容量 + ushort RAM; // 系统静态分配内存大小 TSys(); // 构造函数 //~TSys(); // 析构函数