Projet_voilier2/Projet_DevDrivers/Sources/Bordage.c
2023-03-27 16:43:03 +02:00

26 lines
516 B
C

#include "stm32f10x.h"
#include "GPIO.h"
#include "TIMER.h"
int bordage (void)
{
//int weatherCock, sailingAngle, roulis;
MyGPIO_Struct_TypeDef signalA = {GPIOC,6,In_PullDown};
MyGPIO_Struct_TypeDef signalB = {GPIOC,7,In_PullDown};
MyGPIO_Struct_TypeDef signalI = {GPIOC,8,In_PullDown};
MyGPIO_Init(&signalA);
MyGPIO_Init(&signalB);
MyGPIO_Init(&signalI);
/*if(((weatherCock > 0) && (weatherCock <= 45)) || roulis>40)
{
sailingAngle=0;
}else
{
sailingAngle=(weatherCock/2);
}*/
return 0;
}