比较全的STM8固件库含有部分例程。ADC,AWU,BEEP,CAN,CLK,EXTI,FLASH,GPIO,I2CITC,IWDG,RST,SPI,TIM1,TIM2,TIM4,TIM5,UART1,WWDG