9 static const char *
const TAG =
"host";
17 auto *arg =
new ISRPinArg{};
19 arg->inverted = inverted_;
24 ESP_LOGD(TAG,
"Attaching interrupt %p to pin %d and mode %d", func, pin_, (uint32_t) type);
30 snprintf(buffer,
sizeof(buffer),
"GPIO%u", pin_);
37 ESP_LOGD(TAG,
"Setting pin %d to %s", pin_, value != inverted_ ?
"HIGH" :
"LOW");
46 auto *arg =
reinterpret_cast<ISRPinArg *
>(arg_);
53 auto *arg =
reinterpret_cast<ISRPinArg *
>(arg_);
54 ESP_LOGD(TAG,
"Clearing interrupt for pin %d", arg->pin);
Copy of GPIOPin that is safe to use from ISRs (with no virtual functions)
void detach_interrupt() const override
std::string dump_summary() const override
void digital_write(bool value) override
bool digital_read() override
void pin_mode(gpio::Flags flags) override
void attach_interrupt(void(*func)(void *), void *arg, gpio::InterruptType type) const override
Implementation of SPI Controller mode.
ISRInternalGPIOPin to_isr() const override
void digital_write(bool value)