Encapsulated HW timer interaction in its own file.