#include "stm32f10x.h" #include "../../driver/MyI2C.h" #include "../../driver/MySPI.h" #include "../../driver/timer.h" #include "../../driver/gpio.h" int main (void) { int Angle_Girouette=0; //init girouette MyGirouette_Init(TIM4); MyGirouette_Init_IT_Z(0); //lecture angle while(1){ Angle_Girouette=MyGirouette_Angle(TIM4); }; }