fix 400KHz counter and reindent file
implement 1/2 speed mode for SD cards that don't like 24.5MHz SPI
add debug registers for char and paint fsms.
fix compilation error.
fix another compilation error while resurrecting debug of FSMs