Converted the timer code to a direct form not using the HAL code.
Added initial code for the step timer.