Use combined namespace esphome::rp2040

This commit is contained in:
J. Nick Koston
2026-03-10 13:28:58 -10:00
parent 5f56f266b5
commit a3aff62e4c
2 changed files with 4 additions and 8 deletions
+2 -4
View File
@@ -34,8 +34,7 @@ static inline bool is_code_addr(uint32_t val) {
static constexpr size_t MAX_BACKTRACE = 4;
namespace esphome {
namespace rp2040 {
namespace esphome::rp2040 {
static const char *const TAG = "rp2040.crash";
@@ -83,8 +82,7 @@ void crash_handler_log() {
ESP_LOGE(TAG, "Use addr2line -e firmware.elf 0x%08X 0x%08X to decode", s_crash_data.pc, s_crash_data.lr);
}
} // namespace rp2040
} // namespace esphome
} // namespace esphome::rp2040
// --- HardFault handler ---
// Overrides the weak isr_hardfault from arduino-pico's crt0.S.
+2 -4
View File
@@ -4,8 +4,7 @@
#include <cstdint>
namespace esphome {
namespace rp2040 {
namespace esphome::rp2040 {
/// Read crash data from watchdog scratch registers and clear them.
void crash_handler_read_and_clear();
@@ -13,7 +12,6 @@ void crash_handler_read_and_clear();
/// Log crash data if a crash was detected on previous boot.
void crash_handler_log();
} // namespace rp2040
} // namespace esphome
} // namespace esphome::rp2040
#endif // USE_RP2040