ADD isr queue

This commit is contained in:
fastium 2024-12-17 15:37:16 +01:00
parent 7b5bcfc35e
commit c4ff5361e9
2 changed files with 8 additions and 0 deletions

View File

@ -76,6 +76,10 @@ BikeSystem::BikeSystem() :
void BikeSystem::start() { void BikeSystem::start() {
// new thread dedicated for ISRs with its event queue
tr_info("Starting Super-Loop with event handling"); tr_info("Starting Super-Loop with event handling");
init(); init();

View File

@ -25,6 +25,7 @@
#pragma once #pragma once
// from advembsof // from advembsof
#include "EventQueue.h"
#include "display_device.hpp" #include "display_device.hpp"
#include "task_logger.hpp" #include "task_logger.hpp"
#include "cpu_logger.hpp" #include "cpu_logger.hpp"
@ -106,6 +107,9 @@ class BikeSystem {
// cpu logger to measure cpu usage // cpu logger to measure cpu usage
advembsof::CPULogger _cpuLogger; advembsof::CPULogger _cpuLogger;
// Event queues
EventQueue * _isrEventQueue;
}; };
} // namespace static_scheduling } // namespace static_scheduling