Tested, debugged and works on Atmel SAMR21.