Sys还是不能常量化,否则各个项目的Sys.Start就会报错

This commit is contained in:
nnhy 2016-01-23 09:27:19 +00:00
parent 927bac9a0c
commit 7452caaf72
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
#include "Platform\stm32.h"
const TSys Sys;
TSys Sys;
const TTime Time;
extern uint __heap_base;

2
Sys.h
View File

@ -109,7 +109,7 @@ public:
void Start(); // 开始系统大循环
};
extern const TSys Sys; //创建一个全局的Sys对象 会在main函数之前执行构造函数
extern TSys Sys; //创建一个全局的Sys对象 会在main函数之前执行构造函数
//#include "Time.h"
#include "Interrupt.h"