I am having trouble with timers on STM32F1xx series specifically. I can get PWM to work but no matter how the TIM_TimeBaseInitTypeDef structure is defined, the frequency is 1.1KHz. It appears that the prescaler is divide by 64k. What's happening?
SYS_RC TIMER_setup(void){ TIM_TimeBaseInitTypeDef TIMER_BaseInitStruct; TIM_OCInitTypeDef TIMER_OCInitStruct = {0, }; GPIO_InitTypeDef GPIO_InitStruct; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE); RCC_APB1Perip...