i wrote a code in IAR for stm32f103ret, the code is for blink led and problem is the time is different when the led is on and the led is off .
But the wait is same both of set led and reset led.
19 seconds led is on but 22 seconds led is off. and it repeat again and again.
who know why?what do we do?
#include "stm32f10x_gpio.h" // for Enable LCD
#include "stm32f10x_rcc.h" //for Enable LCD
RCC_APB2PeriphClockCmd ( RCC_APB2Periph_GPIOB, ENABLE );
gpioC.GPIO_Mode = GPIO_Mode_Out_PP ;
gpioC.GPIO_Pin = GPIO_Pin_All;
gpioC.GPIO_Speed = GPIO_Speed_10MHz;
GPIO_Init ( GPIOB, &gpioC );