调试版不要进入低功耗模式

This commit is contained in:
大石头X2 2017-01-10 16:35:16 +08:00
parent 22d13506a5
commit 78df5b0e42
7 changed files with 9 additions and 9 deletions

View File

@ -62,10 +62,10 @@ void AP0801::Init(ushort code, cstring name, COM message)
WatchDog::Start(20000, 10000);
#else
WatchDog::Start();
#endif
// 系统休眠时自动进入低功耗
Power::AttachTimeSleep();
#endif
// Flash最后一块作为配置区
Config::Current = &Config::CreateFlash();

View File

@ -49,10 +49,10 @@ void AP0802::Init(ushort code, cstring name, COM message)
WatchDog::Start(20000, 10000);
#else
WatchDog::Start();
#endif
// 系统休眠时自动进入低功耗
Power::AttachTimeSleep();
#endif
// Flash最后一块作为配置区
Config::Current = &Config::CreateFlash();

View File

@ -32,10 +32,10 @@ void BaseBoard::Init(ushort code, cstring name, COM message)
WatchDog::Start(20000, 10000);
#else
WatchDog::Start();
#endif
// 系统休眠时自动进入低功耗
Power::AttachTimeSleep();
#endif
// Flash最后一块作为配置区
Config::Current = &Config::CreateFlash();

View File

@ -50,10 +50,10 @@ void IOK026X::Init(ushort code, cstring name, COM message)
WatchDog::Start(20000, 10000);
#else
WatchDog::Start();
#endif
// 系统休眠时自动进入低功耗
Power::AttachTimeSleep();
#endif
// Flash最后一块作为配置区
Config::Current = &Config::CreateFlash();

View File

@ -49,10 +49,10 @@ void IOK027X::Init(ushort code, cstring name, COM message)
WatchDog::Start(20000, 10000);
#else
WatchDog::Start();
#endif
// 系统休眠时自动进入低功耗
//Power::AttachTimeSleep();
Power::AttachTimeSleep();
#endif
// Flash最后一块作为配置区
Config::Current = &Config::CreateFlash();

View File

@ -51,10 +51,10 @@ void IOK0612::Init(ushort code, cstring name, COM message)
WatchDog::Start(20000, 10000);
#else
WatchDog::Start();
#endif
// 系统休眠时自动进入低功耗
//Power::AttachTimeSleep();
Power::AttachTimeSleep();
#endif
// Flash最后一块作为配置区
Config::Current = &Config::CreateFlash();

View File

@ -44,10 +44,10 @@ void PA0903::Init(ushort code, cstring name, COM message)
#if DEBUG
sys.MessagePort = message; // 指定printf输出的串口
Sys.ShowInfo();
#endif
// 系统休眠时自动进入低功耗
Power::AttachTimeSleep();
#endif
// Flash最后一块作为配置区
Config::Current = &Config::CreateFlash();