How to configure correctly the STM8S005C6 clock to use the HSI oscilator at 16Mhz?
Using the library functions the micro freezes and enters a CLK assert, this is the code I use to configure the CLK: CLK_DeInit (); CLK_HSECmd (DISABLE); CLK_LSICmd (DISABLE); CLK_HSICmd (ENABLE); while (! CLK_GetFlagStatus (CLK_FLAG_HSIRDY)); CLK_Clo...