UART, ADC and DAC libraries for the ATmega16M1, ATmega32M1 and ATmega64M1.
Have a look at the example main.cpp how to include the libraries. Libraries were tested with the internal 8 MHz oscillator. If needed change F_CPU
to your oscillator frequency.
You can find the documentation here.