mirror of
https://github.com/esphome/esphome.git
synced 2026-02-18 15:35:59 -07:00
Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io> Co-authored-by: J. Nick Koston <nick+github@koston.org> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
18 lines
364 B
C++
18 lines
364 B
C++
#pragma once
|
|
#ifdef USE_ESP32
|
|
|
|
#include "driver/gptimer_types.h"
|
|
|
|
namespace esphome::ac_dimmer {
|
|
|
|
struct HWTimer;
|
|
|
|
HWTimer *timer_begin(uint32_t frequency);
|
|
|
|
void timer_attach_interrupt(HWTimer *timer, void (*user_func)());
|
|
void timer_alarm(HWTimer *timer, uint64_t alarm_value, bool autoreload, uint64_t reload_count);
|
|
|
|
} // namespace esphome::ac_dimmer
|
|
|
|
#endif
|