support dual filsystems on nrf52

store identity and prefs in UserData and contacts, channels and adv_blobs in ExtraData
이 커밋은 다음에 포함됨:
taco
2025-09-06 14:15:40 +10:00
부모 bdfe9ad27b
커밋 2b24c575c7
5개의 변경된 파일268개의 추가작업 그리고 29개의 파일을 삭제
+5 -5
파일 보기
@@ -16,12 +16,12 @@ static uint32_t _atoi(const char* sp) {
#include <InternalFileSystem.h>
#if defined(QSPIFLASH)
#include <CustomLFS_QSPIFlash.h>
DataStore store(QSPIFlash, rtc_clock);
DataStore store(InternalFS, QSPIFlash, rtc_clock);
#else
#if defined(EXTRAFS)
#include <CustomLFS.h>
CustomLFS ExtraFS(0xD4000, 0x19000, 128);
DataStore store(ExtraFS, rtc_clock);
DataStore store(InternalFS, ExtraFS, rtc_clock);
#else
DataStore store(InternalFS, rtc_clock);
#endif
@@ -129,6 +129,7 @@ void setup() {
fast_rng.begin(radio_get_rng_seed());
#if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM)
InternalFS.begin();
#if defined(QSPIFLASH)
if (!QSPIFlash.begin()) {
// debug output might not be available at this point, might be too early. maybe should fall back to InternalFS here?
@@ -137,10 +138,9 @@ void setup() {
MESH_DEBUG_PRINTLN("CustomLFS_QSPIFlash: initialized successfully");
}
#else
InternalFS.begin();
#if defined(EXTRAFS)
#if defined(EXTRAFS)
ExtraFS.begin();
#endif
#endif
#endif
store.begin();
the_mesh.begin(