summaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-08-09 13:11:34 +1000
committerjacqueline <me@jacqueline.id.au>2024-08-09 13:11:34 +1000
commit5d390c821a7fdddec5eb24a7a3a08bf8bf4be1cc (patch)
tree71dad3f6ab1567fa5c936cbed32b8a66ac4f9091 /src/tasks
parent2811a3c899fdb5e4e3ba68a242055b1d43c29446 (diff)
downloadtangara-fw-5d390c821a7fdddec5eb24a7a3a08bf8bf4be1cc.tar.gz
Claw back some internal ram
- 'main' doesn't need 12k of internal ram - lvgl's draw task doesn't need that much either - also lower the bg worker stack sizes whilst we're here, since they've got tons over headroom
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/tasks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp
index b713d70b..9980c97e 100644
--- a/src/tasks/tasks.cpp
+++ b/src/tasks/tasks.cpp
@@ -64,7 +64,7 @@ auto AllocateStack<Type::kAudioConverter>() -> std::span<StackType_t> {
// an eye-wateringly large amount of stack.
template <>
auto AllocateStack<Type::kBackgroundWorker>() -> std::span<StackType_t> {
- std::size_t size = 64 * 1024;
+ std::size_t size = 32 * 1024;
return {static_cast<StackType_t*>(heap_caps_malloc(size, MALLOC_CAP_SPIRAM)),
size};
}