Wrote out new wrappers
so that they are not dependend on the atmel driver.