调试版不要进入低功耗模式
This commit is contained in:
parent
22d13506a5
commit
78df5b0e42
|
@ -62,10 +62,10 @@ void AP0801::Init(ushort code, cstring name, COM message)
|
||||||
WatchDog::Start(20000, 10000);
|
WatchDog::Start(20000, 10000);
|
||||||
#else
|
#else
|
||||||
WatchDog::Start();
|
WatchDog::Start();
|
||||||
#endif
|
|
||||||
|
|
||||||
// 系统休眠时自动进入低功耗
|
// 系统休眠时自动进入低功耗
|
||||||
Power::AttachTimeSleep();
|
Power::AttachTimeSleep();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Flash最后一块作为配置区
|
// Flash最后一块作为配置区
|
||||||
Config::Current = &Config::CreateFlash();
|
Config::Current = &Config::CreateFlash();
|
||||||
|
|
|
@ -49,10 +49,10 @@ void AP0802::Init(ushort code, cstring name, COM message)
|
||||||
WatchDog::Start(20000, 10000);
|
WatchDog::Start(20000, 10000);
|
||||||
#else
|
#else
|
||||||
WatchDog::Start();
|
WatchDog::Start();
|
||||||
#endif
|
|
||||||
|
|
||||||
// 系统休眠时自动进入低功耗
|
// 系统休眠时自动进入低功耗
|
||||||
Power::AttachTimeSleep();
|
Power::AttachTimeSleep();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Flash最后一块作为配置区
|
// Flash最后一块作为配置区
|
||||||
Config::Current = &Config::CreateFlash();
|
Config::Current = &Config::CreateFlash();
|
||||||
|
|
|
@ -32,10 +32,10 @@ void BaseBoard::Init(ushort code, cstring name, COM message)
|
||||||
WatchDog::Start(20000, 10000);
|
WatchDog::Start(20000, 10000);
|
||||||
#else
|
#else
|
||||||
WatchDog::Start();
|
WatchDog::Start();
|
||||||
#endif
|
|
||||||
|
|
||||||
// 系统休眠时自动进入低功耗
|
// 系统休眠时自动进入低功耗
|
||||||
Power::AttachTimeSleep();
|
Power::AttachTimeSleep();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Flash最后一块作为配置区
|
// Flash最后一块作为配置区
|
||||||
Config::Current = &Config::CreateFlash();
|
Config::Current = &Config::CreateFlash();
|
||||||
|
|
|
@ -50,10 +50,10 @@ void IOK026X::Init(ushort code, cstring name, COM message)
|
||||||
WatchDog::Start(20000, 10000);
|
WatchDog::Start(20000, 10000);
|
||||||
#else
|
#else
|
||||||
WatchDog::Start();
|
WatchDog::Start();
|
||||||
#endif
|
|
||||||
|
|
||||||
// 系统休眠时自动进入低功耗
|
// 系统休眠时自动进入低功耗
|
||||||
Power::AttachTimeSleep();
|
Power::AttachTimeSleep();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Flash最后一块作为配置区
|
// Flash最后一块作为配置区
|
||||||
Config::Current = &Config::CreateFlash();
|
Config::Current = &Config::CreateFlash();
|
||||||
|
|
|
@ -49,10 +49,10 @@ void IOK027X::Init(ushort code, cstring name, COM message)
|
||||||
WatchDog::Start(20000, 10000);
|
WatchDog::Start(20000, 10000);
|
||||||
#else
|
#else
|
||||||
WatchDog::Start();
|
WatchDog::Start();
|
||||||
#endif
|
|
||||||
|
|
||||||
// 系统休眠时自动进入低功耗
|
// 系统休眠时自动进入低功耗
|
||||||
//Power::AttachTimeSleep();
|
Power::AttachTimeSleep();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Flash最后一块作为配置区
|
// Flash最后一块作为配置区
|
||||||
Config::Current = &Config::CreateFlash();
|
Config::Current = &Config::CreateFlash();
|
||||||
|
|
|
@ -51,10 +51,10 @@ void IOK0612::Init(ushort code, cstring name, COM message)
|
||||||
WatchDog::Start(20000, 10000);
|
WatchDog::Start(20000, 10000);
|
||||||
#else
|
#else
|
||||||
WatchDog::Start();
|
WatchDog::Start();
|
||||||
#endif
|
|
||||||
|
|
||||||
// 系统休眠时自动进入低功耗
|
// 系统休眠时自动进入低功耗
|
||||||
//Power::AttachTimeSleep();
|
Power::AttachTimeSleep();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Flash最后一块作为配置区
|
// Flash最后一块作为配置区
|
||||||
Config::Current = &Config::CreateFlash();
|
Config::Current = &Config::CreateFlash();
|
||||||
|
|
|
@ -44,10 +44,10 @@ void PA0903::Init(ushort code, cstring name, COM message)
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
sys.MessagePort = message; // 指定printf输出的串口
|
sys.MessagePort = message; // 指定printf输出的串口
|
||||||
Sys.ShowInfo();
|
Sys.ShowInfo();
|
||||||
#endif
|
|
||||||
|
|
||||||
// 系统休眠时自动进入低功耗
|
// 系统休眠时自动进入低功耗
|
||||||
Power::AttachTimeSleep();
|
Power::AttachTimeSleep();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Flash最后一块作为配置区
|
// Flash最后一块作为配置区
|
||||||
Config::Current = &Config::CreateFlash();
|
Config::Current = &Config::CreateFlash();
|
||||||
|
|
Loading…
Reference in New Issue