Create TactilityFreertos subproject (#440)
This commit is contained in:
committed by
GitHub
parent
a4dc633063
commit
7283920def
@@ -5,6 +5,8 @@
|
||||
#include <Tactility/app/ElfApp.h>
|
||||
|
||||
#include <Tactility/Bundle.h>
|
||||
#include <Tactility/Check.h>
|
||||
#include <Tactility/Log.h>
|
||||
#include <Tactility/Mutex.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace tt::app::i2cscanner {
|
||||
|
||||
#define TAG "i2cscanner"
|
||||
static constexpr auto TAG = "i2cscanner";
|
||||
|
||||
enum ScanState {
|
||||
ScanStateInitial,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <Tactility/app/AppContext.h>
|
||||
#include <Tactility/MessageQueue.h>
|
||||
#include <Tactility/RecursiveMutex.h>
|
||||
#include <Tactility/PubSub.h>
|
||||
#include <Tactility/RecursiveMutex.h>
|
||||
#include <Tactility/app/AppContext.h>
|
||||
#include <Tactility/service/Service.h>
|
||||
#include <Tactility/service/loader/Loader.h>
|
||||
|
||||
@@ -21,6 +21,7 @@ class GuiService final : public Service {
|
||||
|
||||
// Thread and lock
|
||||
Thread* thread = nullptr;
|
||||
EventGroup threadFlags;
|
||||
RecursiveMutex mutex;
|
||||
PubSub<loader::LoaderService::Event>::SubscriptionHandle loader_pubsub_subscription = nullptr;
|
||||
|
||||
@@ -49,7 +50,7 @@ class GuiService final : public Service {
|
||||
}
|
||||
|
||||
void unlock() const {
|
||||
tt_check(mutex.unlock());
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
void showApp(std::shared_ptr<app::AppInstance> app);
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
#include "Tactility/service/Service.h"
|
||||
|
||||
#include <Tactility/Mutex.h>
|
||||
#include <Tactility/Timer.h>
|
||||
#include <Tactility/Mutex.h>
|
||||
|
||||
namespace tt::service::memorychecker {
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace tt::service::memorychecker {
|
||||
class MemoryCheckerService final : public Service {
|
||||
|
||||
Mutex mutex;
|
||||
Timer timer = Timer(Timer::Type::Periodic, [this] { onTimerUpdate(); });
|
||||
Timer timer = Timer(Timer::Type::Periodic, pdMS_TO_TICKS(1000), [this] { onTimerUpdate(); });
|
||||
|
||||
// LVGL Statusbar icon
|
||||
int8_t statusbarIconId = -1;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "Tactility/TactilityConfig.h"
|
||||
#include <Tactility/TactilityConfig.h>
|
||||
|
||||
#if TT_FEATURE_SCREENSHOT_ENABLED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user