Files
Thomas Göttgensandvidplace7 ea7d4aa410 Port nRF54L15 to the s145 SoftDevice Arduino core (#11842)
* Remove the Zephyr based nRF54L15 port

* Add nRF54L15 port on the s145 Arduino core: nrf54l15dk and xiao_nrf54l15 variants

* nRF54L: errno-style nrfx results, flush console before assert reset

* nRF54L: log the SoftDevice status on Bluefruit failure, ignore the seed request event

* Support the Wio-LR2021 LoRa Plus expansion board with OLED and K1 on the XIAO nRF54L15 variant

* Consume the nRF54L15 platform, core and bootloader from their repositories

* Pin the nRF54L15 platform to v0.2.0

* nRF52: forward SoftDevice flash events taken by the main loop to the flash driver, log the pairing failure status

* Pin the nRF54L15 platform to v0.2.1

* Pin the nRF54L15 platform to v0.3.0

* Split the XIAO nRF54L15 variant into SX1262 and LoRa Plus environments, seed the SoftDevice on request, add the nrf54l15 CI build script

* Pin the nRF54L15 platform to meshtastic/platform-nordicnrf54 v0.3.1

* NRF54: Fix mtjson generation

---------

Co-authored-by: vidplace7 <vidplace7@gmail.com>
2026-09-15 07:16:33 +00:00

19 lines
894 B
C

#pragma once
// Force-included so littlefs v2 (nRF54L core) routes assertions and logs through Meshtastic
// (lfs_assert() in main-nrf52.cpp formats the filesystem on corruption).
#ifdef __cplusplus
extern "C" {
#endif
void lfs_assert(const char *reason);
void logLegacy(const char *level, const char *fmt, ...);
#ifdef __cplusplus
}
#endif
#define LFS_ASSERT(test) \
if (!(test)) \
lfs_assert(#test)
#define LFS_LOG_(level, fmt, ...) logLegacy(level, "lfs:%d: " fmt "%s\n", __LINE__, __VA_ARGS__)
#define LFS_DEBUG(...) LFS_LOG_("DEBUG", __VA_ARGS__, "")
#define LFS_WARN(...) LFS_LOG_("WARN", __VA_ARGS__, "")
#define LFS_ERROR(...) LFS_LOG_("ERROR", __VA_ARGS__, "")