I don’t think I have anything beyond the link given above for the teensy part. He only has a example blinky.c
I’ll look when I get home.
The STM32 F104 discovery board has a site with lots of examples. Also a google search turned up a STM32 arduino list.
STM32 is non trivial to learn and use at the C level. Looks to be a few chinese STM32F107 clones out there.