Debut_Weathercock
This commit is contained in:
parent
cd6ee1fa99
commit
1d8e1b3902
3 changed files with 49 additions and 1 deletions
26
Projet_DevDrivers/Sources/Bordage.c
Normal file
26
Projet_DevDrivers/Sources/Bordage.c
Normal 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;
|
||||
|
||||
}
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue