diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-05-23 09:00:06 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-05-23 09:00:06 +1000 |
| commit | ecee01fe97422c65e2b01979742d01ece31bc28d (patch) | |
| tree | c21b39c329e6ba06f3fc96c1f018acba90d6db99 /src/tasks/tasks.cpp | |
| parent | 82830f995c561567c84b8ea74bc270ae0b488d30 (diff) | |
| download | tangara-fw-ecee01fe97422c65e2b01979742d01ece31bc28d.tar.gz | |
Remove audio drain task
ISR drain works fine!
Diffstat (limited to 'src/tasks/tasks.cpp')
| -rw-r--r-- | src/tasks/tasks.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp index 0d9d7881..f76c32a1 100644 --- a/src/tasks/tasks.cpp +++ b/src/tasks/tasks.cpp @@ -22,10 +22,6 @@ auto Name<Type::kAudio>() -> std::string { return "AUDIO"; } template <> -auto Name<Type::kAudioDrain>() -> std::string { - return "DRAIN"; -} -template <> auto Name<Type::kDatabase>() -> std::string { return "DB"; } @@ -41,12 +37,6 @@ auto AllocateStack<Type::kAudio>() -> cpp::span<StackType_t> { return {static_cast<StackType_t*>(heap_caps_malloc(size, MALLOC_CAP_DEFAULT)), size}; } -template <> -auto AllocateStack<Type::kAudioDrain>() -> cpp::span<StackType_t> { - std::size_t size = 1024; - return {static_cast<StackType_t*>(heap_caps_malloc(size, MALLOC_CAP_DEFAULT)), - size}; -} // LVGL requires only a relatively small stack. However, it can be allocated in // PSRAM so we give it a bit of headroom for safety. template <> @@ -88,10 +78,6 @@ template <> auto Priority<Type::kAudio>() -> UBaseType_t { return 10; } -template <> -auto Priority<Type::kAudioDrain>() -> UBaseType_t { - return 10; -} // After audio issues, UI jank is the most noticeable kind of scheduling-induced // slowness that the user is likely to notice or care about. Therefore we place // this task directly below audio in terms of priority. |
