Currently im working on STM32F103R8 and im trying to create delay using TIM3 ,the following is my code but i didnt get perfect output.Please someone kindly help me to overcome from this.
#include "stm32f10x.h"void init();void Timer_delay();void main(){ init(); Timer_delay(); while(1) { while(TIM3->SR & 0x0001)/*Check the TIM3 update interrupt occurs or not*/ TIM3->SR = 0x0000;/*Remove TIMx update interrupt flag */ GPIOA->BSRR^=0X...