voilier-team-1/keilproject/Source/Principale.c

25 lines
353 B
C
Raw Normal View History

2023-03-22 15:28:54 +01:00
#include "stm32f10x.h"
#include "../../driver/MyI2C.h"
#include "../../driver/MySPI.h"
#include "../../driver/timer.h"
#include "../../driver/gpio.h"
2023-03-22 15:28:54 +01:00
2023-03-22 15:28:54 +01:00
int main (void)
{
2023-04-11 13:35:12 +02:00
int Angle_Girouette=0;
2023-04-07 15:33:22 +02:00
2023-04-11 13:35:12 +02:00
//init girouette
MyGirouette_Init(TIM4);
MyGirouette_Init_IT_Z(0);
//lecture angle
while(1){
Angle_Girouette=MyGirouette_Angle(TIM4);
};
2023-04-07 15:33:22 +02:00
}