72 uint32_t steps = F_CPU / 8 / sample_rate;
74 LOGE(
"requested sample rate not supported: %d - we use %d", sample_rate,
78 LOGD(
"compare match register set to %d", steps);
86 TCCR1B |= (1 << WGM12);
88 TCCR1B |= (1 << CS11);
89 TIMSK1 |= (1 << OCIE1A);
#define TRACED()
Definition AudioLoggerIDF.h:31
#define LOGD(...)
Definition AudioLoggerIDF.h:27
#define LOGE(...)
Definition AudioLoggerIDF.h:30
TimeUnit
Time Units.
Definition AudioTypes.h:44
@ US
Definition AudioTypes.h:44
@ HZ
Definition AudioTypes.h:44
@ MS
Definition AudioTypes.h:44