move timer init macros to header