Geoffrey Brown Discovering the STM32 Microcontroller. Uses STM32F100 processor and STM library. Most aspect applies to other processors in STM32 family.

The STM32F0 reference manual in the Appendix A at the end contains code snippets illustrating how to initialize all subsystems (devices) contained in F0 chips.