Port library's from STM32F4 to STM32f1.
Revert "Port library's from STM32F4 to STM32f1."

This reverts commit 956f1e00174d197fdf1498b6a0cd0ef6d50cad8b.