In preparation for adding the linear interpolation between acceleration points, noticed that the velocity calculation is not being calculated correctly. This can be seen by looking at the log.txt file generated from running make under a Cygwin window. If you take all the lines that have STEPPER at the beginning and plot the last 2 columns as a scatter plot in a spreadsheet you will see a nice velocity profile. The steps are more pronounced since they were reduced from 100 to 16. This also caused a similar drop in memory usage (see the map file).
Because the test file under Cygwin hasn't been run in a long time, the log.txt file is being generated from scratch here. The simulated movement is in motor.cpp and has an acceleration time of 1sec (1000000 us) and a displacement of 8000 steps.
Note the integer arithmetic used in clockTicksToMicroSec() to get around round-off errors. This becomes more important the closer we look at how far and fast the motor is moving.
A little bit of code refactoring, particularly in function names related to acceleration.
Tested under Cygwin and Tiva.