Add STM32f051 flash algorithm project and share code with  stm32f103rc project