Code written for the Udoo (i.Mx6/SAMx3)