ESPHome
2025.9.0-dev
Loading...
Searching...
No Matches
esphome
components
debug
debug_rp2040.cpp
Go to the documentation of this file.
1
#include "
debug_component.h
"
2
#ifdef USE_RP2040
3
#include "
esphome/core/log.h
"
4
#include <Arduino.h>
5
namespace
esphome
{
6
namespace
debug {
7
8
static
const
char
*
const
TAG =
"debug"
;
9
10
std::string
DebugComponent::get_reset_reason_
() {
return
""
; }
11
12
uint32_t
DebugComponent::get_free_heap_
() {
return
rp2040.getFreeHeap(); }
13
14
void
DebugComponent::get_device_info_
(std::string &device_info) {
15
ESP_LOGD(TAG,
"CPU Frequency: %u"
, rp2040.f_cpu());
16
device_info +=
"CPU Frequency: "
+ to_string(rp2040.f_cpu());
17
}
18
19
void
DebugComponent::update_platform_
() {}
20
21
}
// namespace debug
22
}
// namespace esphome
23
#endif
esphome::debug::DebugComponent::get_free_heap_
uint32_t get_free_heap_()
Definition
debug_esp32.cpp:126
esphome::debug::DebugComponent::update_platform_
void update_platform_()
Definition
debug_esp32.cpp:223
esphome::debug::DebugComponent::get_reset_reason_
std::string get_reset_reason_()
Definition
debug_esp32.cpp:63
esphome::debug::DebugComponent::get_device_info_
void get_device_info_(std::string &device_info)
Definition
debug_esp32.cpp:136
debug_component.h
log.h
esphome::light::uint32_t
uint32_t
Definition
light_call.cpp:612
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
Generated by
1.12.0