ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
rtc_layout.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef USE_ESP8266
4
5#include <cstdint>
6
7namespace esphome::esp8266 {
8
9// User RTC memory is system blocks 64-191, one 4-byte word each. preferences.cpp owns the first
10// words, crash_handler.cpp the last; const.py hands preferences.cpp its region sizes.
11static constexpr uint32_t RTC_SYSTEM_USER_BASE = 64;
12static constexpr uint32_t RTC_USER_MEM_WORDS = 128;
13static constexpr uint32_t RTC_CRASH_WORDS = 18;
14static constexpr uint32_t RTC_CRASH_BASE = RTC_SYSTEM_USER_BASE + RTC_USER_MEM_WORDS - RTC_CRASH_WORDS;
15
16} // namespace esphome::esp8266
17
18#endif // USE_ESP8266
static void uint32_t