The "STM8S standard firmware library" is referenced in UM0834 for STM8S-Discovery. The library examples were well organized according to the descrription and included everything for the quick start. There were timers examples, ADC, SPI, I2C, UART exa...