Inverter soure code on STM32f103, refer to Renesas MCU SH7137 SPWM program.