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