summaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2022-11-23 17:15:06 +1100
committerjacqueline <me@jacqueline.id.au>2022-11-23 17:15:06 +1100
commita7df2855889055976956a58d2a36f23626371ee9 (patch)
tree16e180e57f84474acaeb1893208cc07e278af6f4 /src/tasks
parentdfa9ab6e04689b99267092e016a91d9254f94cd8 (diff)
downloadtangara-fw-a7df2855889055976956a58d2a36f23626371ee9.tar.gz
Mostly done pipeline arch. Now onto cleanup and building.
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/CMakeLists.txt2
-rw-r--r--src/tasks/tasks.cpp4
-rw-r--r--src/tasks/tasks.hpp6
3 files changed, 12 insertions, 0 deletions
diff --git a/src/tasks/CMakeLists.txt b/src/tasks/CMakeLists.txt
new file mode 100644
index 00000000..0503d293
--- /dev/null
+++ b/src/tasks/CMakeLists.txt
@@ -0,0 +1,2 @@
+idf_component_register(SRCS "tasks.cpp" INCLUDE_DIRS ".")
+target_compile_options(${COMPONENT_LIB} PRIVATE ${EXTRA_WARNINGS})
diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp
new file mode 100644
index 00000000..34100353
--- /dev/null
+++ b/src/tasks/tasks.cpp
@@ -0,0 +1,4 @@
+#include "tasks.cpp"
+
+static const UBaseType_t kTaskPriorityLvgl = 4;
+static const UBaseType_t kTaskPriorityAudio = 5;
diff --git a/src/tasks/tasks.hpp b/src/tasks/tasks.hpp
new file mode 100644
index 00000000..24f8509a
--- /dev/null
+++ b/src/tasks/tasks.hpp
@@ -0,0 +1,6 @@
+#pragma once
+
+#include "freertos/portmacro.h"
+
+extern const UBaseType_t kTaskPriorityLvgl;
+extern const UBaseType_t kTaskPriorityAudio;