This first code for STM32F100 builds but is UNTESTED.