Copy from https://github.com/jeremyherbert/stm32-templates