At least: font code generator, exchange code support for color 128x128

This commit is contained in:
2019-08-04 15:35:44 -07:00
parent e0b49ba109
commit 77f09bca16
47 changed files with 899 additions and 16431 deletions

View File

@@ -32,7 +32,7 @@ namespace Common {
namespace Schedule {
template <uint32_t MAX_TASKS>
class LowPowerTaskScheduler : public TaskScheduler {
class LowPowerTaskScheduler final : public TaskScheduler {
public:
LowPowerTaskScheduler() :
m_tasks(),
@@ -44,7 +44,6 @@ public:
{
while (1) {
cycle();
//remove_dead_tasks();
}
}
@@ -128,11 +127,16 @@ private:
remove_dead_tasks();
}
if (!execed && (next_time - time > Time::millis(2))) {
// Common::ReturnCode rc = BSP::RtcDriver::set_wakeup_in(next_time - time);
// if (rc == Common::ReturnCode::OK) {
// BSP::LowPower::stop();
// }
if (m_task_count == 0) {
Common::ReturnCode rc = BSP::RtcDriver::set_wakeup_in(Time::seconds(5));
if (rc == Common::ReturnCode::OK) {
BSP::LowPower::stop();
}
} else if (!execed && (next_time - time > Time::millis(2))) {
Common::ReturnCode rc = BSP::RtcDriver::set_wakeup_in(next_time - time);
if (rc == Common::ReturnCode::OK) {
BSP::LowPower::stop();
}
}
m_cycle_count++;