Fix aligning bug due to OS's malloc, choose best refreshing method for each screen type
Added HW timers functions, courtesy of aeTIos and Streetwalrus