Ken Van Hoeylandt 0ebd471cc0
Reduce internal RAM use: embedded assets, fonts in flash, PSRAM stacks, file_ops (#701)
- The `/system` FAT volume is removed. Its files are embedded in the firmware as generated C arrays.
- Default-size fonts are generated at build time and used from flash.
- The LVGL task and the Launcher run on PSRAM-preferred stacks. A new kernel `file_ops` API takes the file work off those threads.
- `MainDispatcher` is reimplemented as an on-demand task.
- More long-lived state is allocated with the PSRAM-preferring helpers.
- Other fixes and improvements
2026-10-18 17:30:43 +02:00

17 lines
540 B
C++

// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <TactilityCpp/Allocator.h>
#include <functional>
#include <unordered_map>
#include <utility>
namespace tt::std {
/** std::unordered_map that prefers external memory (PSRAM) and falls back to internal RAM */
template<typename Key, typename Value, typename Hash = ::std::hash<Key>, typename KeyEqual = ::std::equal_to<Key>>
using unordered_map = ::std::unordered_map<Key, Value, Hash, KeyEqual, tt::OptExternalAllocator<::std::pair<const Key, Value>>>;
} // namespace tt::std