#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; }