forked from trocache/RefKEIL
Timers Done
This commit is contained in:
parent
d3d48cf176
commit
cc60bd40f1
4 changed files with 31 additions and 2 deletions
0
ProjetsKEIL/Projet_1/Driver_interruptions.c
Normal file
0
ProjetsKEIL/Projet_1/Driver_interruptions.c
Normal file
|
@ -11,7 +11,8 @@ MyGPIO_Struct_TypeDef LED;
|
|||
MyTimer_Struct_TypeDef Timer_500ms;
|
||||
|
||||
int delay(){
|
||||
|
||||
int i;
|
||||
for(i=0;i<1000000;i++);
|
||||
}
|
||||
|
||||
|
||||
|
@ -50,6 +51,12 @@ int main ( void )
|
|||
MyGPIO_Reset(GPIOA, 5);
|
||||
while(Timer_500ms.Timer->CNT != Timer_500ms.ARR -1);
|
||||
//}
|
||||
|
||||
/* OU
|
||||
while(Timer_500ms.Timer->CNT != Timer_500ms.ARR -1); //CNT registre qui gère le retour à 0
|
||||
MyGPIO_Toggle(GPIOA, 5);
|
||||
while(Timer_500ms.Timer->CNT != Timer_500ms.ARR -1); //CNT registre qui gère le retour à 0
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -290,7 +290,7 @@
|
|||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>DLGTARM</Key>
|
||||
<Name>(1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(100=-1,-1,-1,-1,0)(110=-1,-1,-1,-1,0)(111=-1,-1,-1,-1,0)(1011=-1,-1,-1,-1,0)(180=-1,-1,-1,-1,0)(120=703,344,1124,749,0)(121=931,445,1352,850,0)(122=409,446,830,851,0)(123=-1,-1,-1,-1,0)(140=-1,-1,-1,-1,0)(240=-1,-1,-1,-1,0)(190=-1,-1,-1,-1,0)(200=-1,-1,-1,-1,0)(170=-1,-1,-1,-1,0)(130=-1,-1,-1,-1,0)(131=872,142,1466,836,0)(132=-1,-1,-1,-1,0)(133=-1,-1,-1,-1,0)(160=-1,-1,-1,-1,0)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(210=-1,-1,-1,-1,0)(211=-1,-1,-1,-1,0)(220=-1,-1,-1,-1,0)(221=-1,-1,-1,-1,0)(230=-1,-1,-1,-1,0)(231=-1,-1,-1,-1,0)(232=-1,-1,-1,-1,0)(233=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)</Name>
|
||||
<Name>(1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(100=-1,-1,-1,-1,0)(110=-1,-1,-1,-1,0)(111=-1,-1,-1,-1,0)(1011=-1,-1,-1,-1,0)(180=-1,-1,-1,-1,0)(120=703,344,1124,749,0)(121=931,445,1352,850,0)(122=409,446,830,851,0)(123=-1,-1,-1,-1,0)(140=-1,-1,-1,-1,0)(240=-1,-1,-1,-1,0)(190=-1,-1,-1,-1,0)(200=-1,-1,-1,-1,0)(170=-1,-1,-1,-1,0)(130=-1,-1,-1,-1,0)(131=963,134,1557,828,1)(132=-1,-1,-1,-1,0)(133=-1,-1,-1,-1,0)(160=-1,-1,-1,-1,0)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(210=-1,-1,-1,-1,0)(211=-1,-1,-1,-1,0)(220=-1,-1,-1,-1,0)(221=-1,-1,-1,-1,0)(230=-1,-1,-1,-1,0)(231=-1,-1,-1,-1,0)(232=-1,-1,-1,-1,0)(233=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)</Name>
|
||||
</SetRegEntry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
|
@ -426,6 +426,18 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>4</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>.\Driver_interruptions.c</PathWithFileName>
|
||||
<FilenameWithoutPath>Driver_interruptions.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
|
|
|
@ -403,6 +403,11 @@
|
|||
<FileType>1</FileType>
|
||||
<FilePath>..\Drivers\Driver_timers.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>Driver_interruptions.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>.\Driver_interruptions.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
|
@ -810,6 +815,11 @@
|
|||
<FileType>1</FileType>
|
||||
<FilePath>..\Drivers\Driver_timers.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>Driver_interruptions.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>.\Driver_interruptions.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
|
|
Loading…
Reference in a new issue