2023-03-22 15:28:54 +01:00
|
|
|
#include "stm32f10x.h"
|
|
|
|
#include "../../driver/MyI2C.h"
|
|
|
|
#include "../../driver/MySPI.h"
|
2023-04-04 16:39:20 +02:00
|
|
|
#include "../../driver/timer.h"
|
|
|
|
#include "../../driver/gpio.h"
|
2023-03-22 15:28:54 +01:00
|
|
|
|
2023-04-04 16:39:20 +02: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
|
|
|
|
2023-04-04 16:39:20 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|