mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-20 12:25:06 +00:00
- 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
17 lines
540 B
C++
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
|