Ppst is a project mainly written in C, it's free.
STM32 peripheral samples
Please check the wiki of this project.