3 #if defined(ARDUINO_ARCH_MBED)
4 #include "AudioTools/CoreAudio/AudioTimer/AudioTimerBase.h"
9 class TimerAlarmRepeatingDriverMBED;
10 static TimerAlarmRepeatingDriverMBED *timerAlarmRepeating =
nullptr;
27 bool begin(repeating_timer_callback_t callback_f, uint32_t time,
29 callback = callback_f;
34 ticker.attach(tickerCallback, std::chrono::microseconds(time * 1000));
37 ticker.attach(tickerCallback, std::chrono::microseconds(time));
42 ticker.attach(tickerCallback, std::chrono::microseconds(time_us));
56 repeating_timer_callback_t callback;
58 inline static void tickerCallback() {
59 timerAlarmRepeating->callback(timerAlarmRepeating->object);
TimeUnit
Time Units.
Definition: AudioTypes.h:45