diff --git a/source/shoh/.cproject b/source/shoh/.cproject
index 12a087c..aa180f6 100644
--- a/source/shoh/.cproject
+++ b/source/shoh/.cproject
@@ -48,9 +48,9 @@
+
-
@@ -79,9 +79,9 @@
+
-
@@ -98,9 +98,9 @@
+
-
@@ -197,6 +197,7 @@
+
@@ -225,6 +226,7 @@
+
@@ -244,6 +246,7 @@
+
@@ -331,7 +334,14 @@
LPCXpresso11U68
-
+
+
+
+
+
+
+
+
diff --git a/source/shoh/src/main.cpp b/source/shoh/src/main.cpp
index 7558463..bf1f949 100644
--- a/source/shoh/src/main.cpp
+++ b/source/shoh/src/main.cpp
@@ -3,7 +3,7 @@
#include "FreeRTOS.h"
#include "task.h"
#include
-#include "common/ThreadCommon.h"
+#include "ThreadCommon.h"
#include "Master.h"
@@ -15,7 +15,7 @@ int main(void)
ThreadCommon::QueueManager* qmanager = new ThreadCommon::QueueManager;
//Creating queues
qmanager->createQueue(100,
- sizeof(ThreadCommon::Event),
+ sizeof(Event),
ThreadCommon::QueueManager::master_event_all);
//Creating tasks
@@ -24,10 +24,9 @@ int main(void)
static_cast(qmanager));
//
- QueueHandle_t master_event_all_q = qmanager->getQueue(ThreadCommon::QueueManager::master_event_all);
- ThreadCommon::Event* e = new ThreadCommon::Event(ThreadCommon::Rotary, 1);
+ Event* e = new Event(Event::Rotary, 1);
- qmanager->send(ThreadCommon::QueueManager::master_event_all, e, 1000);
+ qmanager->send(ThreadCommon::QueueManager::master_event_all, e, 1000);
//
// Start the real time kernel with preemption.
diff --git a/source/shoh/src/threads/common/Event.h b/source/shoh/src/threads/common/Event.h
new file mode 100644
index 0000000..30c9dea
--- /dev/null
+++ b/source/shoh/src/threads/common/Event.h
@@ -0,0 +1,55 @@
+/*
+ * Event.h
+ *
+ * Created on: 26 Apr 2023
+ * Author: tylen
+ */
+
+#ifndef THREADS_COMMON_EVENT_H_
+#define THREADS_COMMON_EVENT_H_
+
+#include
+#include