Debut_Weathercock

This commit is contained in:
Cyril Vasseur 2023-03-27 16:43:03 +02:00
parent cd6ee1fa99
commit 1d8e1b3902
3 changed files with 49 additions and 1 deletions

View file

@ -0,0 +1,26 @@
#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;
}

View file

@ -398,7 +398,7 @@
<GroupNumber>1</GroupNumber>
<FileNumber>1</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\Sources\Principal.c</PathWithFileName>
@ -430,6 +430,18 @@
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>4</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\Sources\Bordage.c</PathWithFileName>
<FilenameWithoutPath>Bordage.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
</Group>
<Group>

View file

@ -398,6 +398,11 @@
<FileType>1</FileType>
<FilePath>..\Drivers\Src\TIMER.c</FilePath>
</File>
<File>
<FileName>Bordage.c</FileName>
<FileType>1</FileType>
<FilePath>.\Sources\Bordage.c</FilePath>
</File>
</Files>
</Group>
<Group>
@ -800,6 +805,11 @@
<FileType>1</FileType>
<FilePath>..\Drivers\Src\TIMER.c</FilePath>
</File>
<File>
<FileName>Bordage.c</FileName>
<FileType>1</FileType>
<FilePath>.\Sources\Bordage.c</FilePath>
</File>
</Files>
</Group>
<Group>