Add STM32f051 flash algorithm project and share code with  stm32f103rc p...

Is there possible create pull request  by pick up some commits not all?