Sys还是不能常量化,否则各个项目的Sys.Start就会报错
This commit is contained in:
parent
927bac9a0c
commit
7452caaf72
2
Sys.cpp
2
Sys.cpp
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#include "Platform\stm32.h"
|
#include "Platform\stm32.h"
|
||||||
|
|
||||||
const TSys Sys;
|
TSys Sys;
|
||||||
const TTime Time;
|
const TTime Time;
|
||||||
|
|
||||||
extern uint __heap_base;
|
extern uint __heap_base;
|
||||||
|
|
2
Sys.h
2
Sys.h
|
@ -109,7 +109,7 @@ public:
|
||||||
void Start(); // 开始系统大循环
|
void Start(); // 开始系统大循环
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const TSys Sys; //创建一个全局的Sys对象 会在main函数之前执行构造函数(!!!!!)
|
extern TSys Sys; //创建一个全局的Sys对象 会在main函数之前执行构造函数(!!!!!)
|
||||||
|
|
||||||
//#include "Time.h"
|
//#include "Time.h"
|
||||||
#include "Interrupt.h"
|
#include "Interrupt.h"
|
||||||
|
|
Loading…
Reference in New Issue