timer: Added comparator modes for pins