ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
gpio.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::internal
 RP2040 wakeable delay uses file-scope state (alarm callback + flag) — defined in wake_rp2.cpp.
 

Functions

void esphome::log_pin (const char *tag, const __FlashStringHelper *prefix, GPIOPin *pin)
 
void esphome::log_pin (const char *tag, const char *prefix, GPIOPin *pin)
 
void esphome::pulse_pin (GPIOPin *pin, bool level, uint32_t width_us=0)
 Drive pin to level for width_us microseconds, then to the opposite level.
 
void esphome::internal::pulse_reset_ms (GPIOPin *pin, uint32_t high_before_ms, uint32_t low_ms, uint32_t high_after_ms)
 Out-of-line body of pulse_reset(); call that instead.
 
void esphome::setup_output_pin (GPIOPin *pin, bool level)
 Set up pin and drive it to level. Does nothing when pin is null, so an optional pin needs no check.
 
void IRAM_ATTR esphome::internal::wake_loop_isr (Component *component)
 Out of line so every caller shares one IRAM copy.