#include "stm32f10x.h" #include "../../Drivers/gpiodriver.h" #include "../../Drivers/timerdriver.h" int main (void) { int returnValue; MyGPIO_Struct_TypeDef led = {GPIOA,5,Out_PullUp}; //led MyTimer_Struct_TypeDef timer2 = {TIM2,499,7199}; MyGPIO_Init(&led); MyTimer_Base_Init(&timer2); MyTimer_Base_Start(TIM2); //Pour reset le timer : RCC_APB1RSTR do{ returnValue = TIM2->CNT; }while(1) ; }