Starting from code borrowed from the Atmel website, this is an attempt to create a library that can eventually be merged into the ATMEL-AVR-shared-libraries repo.