initial commit, based on STM32F051 demo.