Actually I just meant that a lot of project which has been designed with circleos has been inspired from STM32 firmwares. http://www.st.com/mcu/familiesdocs-110.html (in section firmware)
As peripherals of the primer1 are more simple to than primer2 I think adapting these examples to primer1 will be the best solution as you don't want to use an OS.