mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
Use combined namespace esphome::rp2040
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user