#include #include #include #include #include #include "main.h" #include "synth.h" #include "usart.h" static void init_sampletimer(void) { /* * Timer 0 */ /* set timer0 to CTC & prescaler 64 → 125kHz increment */ TCCR0A = (1 << WGM01); TCCR0B = (1 << CS00) | (1 << CS01); OCR0A = 3; /* TOP */ TCNT0 = 0; /*enable interrupt*/ TIMSK0 |= (1<