Stm32F10x microcontroller general purpose timer library function configuration