forked from acco/chti23
TP2
This commit is contained in:
parent
44e7a87218
commit
9dbcbf0005
6 changed files with 58 additions and 26 deletions
|
@ -153,7 +153,24 @@
|
|||
<Name>-U066CFF574857847167074929 -O2254 -S0 -C0 -A0 -N00("ARM CoreSight SW-DP") -D00(1BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F10x_128.FLM -FS08000000 -FL020000 -FP0($$Device:STM32F103RB$Flash\STM32F10x_128.FLM)</Name>
|
||||
</SetRegEntry>
|
||||
</TargetDriverDllRegistry>
|
||||
<Breakpoint/>
|
||||
<Breakpoint>
|
||||
<Bp>
|
||||
<Number>0</Number>
|
||||
<Type>0</Type>
|
||||
<LineNumber>56</LineNumber>
|
||||
<EnabledFlag>1</EnabledFlag>
|
||||
<Address>134218718</Address>
|
||||
<ByteObject>0</ByteObject>
|
||||
<HtxType>0</HtxType>
|
||||
<ManyObjects>0</ManyObjects>
|
||||
<SizeOfObject>0</SizeOfObject>
|
||||
<BreakByAccess>0</BreakByAccess>
|
||||
<BreakIfRCount>1</BreakIfRCount>
|
||||
<Filename>.\Src\Delay.s</Filename>
|
||||
<ExecCommand></ExecCommand>
|
||||
<Expression>\\BacASable\Src/Delay.s\56</Expression>
|
||||
</Bp>
|
||||
</Breakpoint>
|
||||
<WatchWindow1>
|
||||
<Ww>
|
||||
<count>0</count>
|
||||
|
@ -215,12 +232,12 @@
|
|||
<Wi>
|
||||
<IntNumber>0</IntNumber>
|
||||
<FirstString>((PORTB & 0x00000002) >> 1 & 0x2) >> 1</FirstString>
|
||||
<SecondString>FF0000000000000000000000000000000000F03F0000000000000000000000000000000028504F5254422026203078303030303030303229203E3E2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000E03F1400000000000000000000000000000000000000B6030008</SecondString>
|
||||
<SecondString>FF000000000000000000F03F000000000000F03F0000000000000000000000000000000028504F5254422026203078303030303030303229203E3E2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000E03F1000000000000000000000000000000000000000B6030008</SecondString>
|
||||
</Wi>
|
||||
<Wi>
|
||||
<IntNumber>1</IntNumber>
|
||||
<FirstString>`VarTime</FirstString>
|
||||
<SecondString>0080000000000000000000000000000040772B410000000000000000000000000000000056617254696D65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000002000000000000000000E03F1400000000000000000000000000000000000000D2030008</SecondString>
|
||||
<SecondString>0080000000000000000000000000000040772B410000000000000000000000000000000056617254696D65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000002000000000000000000E03F1000000000000000000000000000000000000000D2030008</SecondString>
|
||||
</Wi>
|
||||
</LogicAnalyzers>
|
||||
<DebugDescription>
|
||||
|
|
|
@ -16,7 +16,7 @@ VarTime dcd 0
|
|||
; ===============================================================================================
|
||||
|
||||
;constantes (équivalent du #define en C)
|
||||
TimeValue equ 900000
|
||||
TimeValue equ 800000
|
||||
|
||||
|
||||
EXPORT Delay_100ms ; la fonction Delay_100ms est rendue publique donc utilisable par d'autres modules.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<aExt>*.s*; *.src; *.a*</aExt>
|
||||
<oExt>*.obj; *.o</oExt>
|
||||
<lExt>*.lib</lExt>
|
||||
<tExt>*.txt; *.h; *.inc</tExt>
|
||||
<tExt>*.txt; *.h; *.inc; *.md</tExt>
|
||||
<pExt>*.plm</pExt>
|
||||
<CppX>*.cpp</CppX>
|
||||
<nMigrate>0</nMigrate>
|
||||
|
@ -174,7 +174,7 @@
|
|||
<AscS3>0</AscS3>
|
||||
<aSer3>0</aSer3>
|
||||
<eProf>0</eProf>
|
||||
<aLa>0</aLa>
|
||||
<aLa>1</aLa>
|
||||
<aPa1>0</aPa1>
|
||||
<AscS4>0</AscS4>
|
||||
<aSer4>0</aSer4>
|
||||
|
@ -200,7 +200,12 @@
|
|||
<Wi>
|
||||
<IntNumber>0</IntNumber>
|
||||
<FirstString>((portb & 0x00000002) >> 1 & 0x2) >> 1</FirstString>
|
||||
<SecondString>FF000000000000000000000000000000E0FFEF400100000000000000000000000000000028706F7274622026203078303030303030303229203E3E2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000F03F160000000000000000000000000000000000000096020008</SecondString>
|
||||
<SecondString>FF000000000000000000000000000000E0FFEF400100000000000000000000000000000028706F7274622026203078303030303030303229203E3E2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000E03F170000000000000000000000000000000000000096020008</SecondString>
|
||||
</Wi>
|
||||
<Wi>
|
||||
<IntNumber>1</IntNumber>
|
||||
<FirstString>((PORTB & 0x00000002) >> 1 & 0x2) >> 1</FirstString>
|
||||
<SecondString>00800000000000000000000000000000E0FFEF400000000000000000000000000000000028504F5254422026203078303030303030303229203E3E2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000002000000000000000000E03F1700000000000000000000000000000000000000BC090008</SecondString>
|
||||
</Wi>
|
||||
</LogicAnalyzers>
|
||||
<DebugDescription>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<TargetName>Simu</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<pCCUsed>5060750::V5.06 update 6 (build 750)::.\ARMCC</pCCUsed>
|
||||
<pCCUsed>5060960::V5.06 update 7 (build 960)::.\ARMCC</pCCUsed>
|
||||
<uAC6>0</uAC6>
|
||||
<TargetOption>
|
||||
<TargetCommonOption>
|
||||
|
@ -1338,11 +1338,6 @@
|
|||
<Layers>
|
||||
<Layer>
|
||||
<LayName><Project Info></LayName>
|
||||
<LayDesc></LayDesc>
|
||||
<LayUrl></LayUrl>
|
||||
<LayKeys></LayKeys>
|
||||
<LayCat></LayCat>
|
||||
<LayLic></LayLic>
|
||||
<LayTarg>0</LayTarg>
|
||||
<LayPrjMark>1</LayPrjMark>
|
||||
</Layer>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
PRESERVE8
|
||||
THUMB
|
||||
|
||||
|
||||
include DriverJeuLaser.inc
|
||||
|
||||
; ====================== zone de réservation de données, ======================================
|
||||
;Section RAM (read only) :
|
||||
|
@ -10,21 +11,34 @@
|
|||
;Section RAM (read write):
|
||||
area maram,data,readwrite
|
||||
|
||||
|
||||
FlagCligno dcd 0
|
||||
|
||||
; ===============================================================================================
|
||||
|
||||
|
||||
EXPORT timer_callback
|
||||
|
||||
|
||||
;Section ROM code (read only) :
|
||||
area moncode,code,readonly
|
||||
; écrire le code ici
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
timer_callback proc
|
||||
push lr
|
||||
mov r0,#1 ; r0 : constant = 1 (arg fonct GPIOB)
|
||||
ldr r2,=FlagCligno ; r2 : addr de FlagCligno
|
||||
mov r1,[r2] ; r1 : valeur FlagCligno
|
||||
cmp r1,#0
|
||||
beq FC0
|
||||
; if FlagCligno == 1
|
||||
str #0,[r2]
|
||||
bl GPIOB_Set
|
||||
b fin
|
||||
; if FlagCligno == 0
|
||||
FC0
|
||||
str r3,[r2]
|
||||
bl GPIOB_Clear
|
||||
fin
|
||||
pop pc
|
||||
endp
|
||||
|
||||
END
|
|
@ -17,8 +17,9 @@ CLOCK_Configure();
|
|||
// configuration du Timer 4 en débordement 100ms
|
||||
|
||||
//** Placez votre code là ** //
|
||||
|
||||
|
||||
|
||||
Timer_1234_Init_ff( TIM4, 7200000 );
|
||||
|
||||
|
||||
// Activation des interruptions issues du Timer 4
|
||||
// Association de la fonction à exécuter lors de l'interruption : timer_callback
|
||||
|
@ -26,7 +27,7 @@ CLOCK_Configure();
|
|||
|
||||
//** Placez votre code là ** //
|
||||
|
||||
|
||||
Active_IT_Debordement_Timer( TIM4, 2, timer_callback );
|
||||
|
||||
// configuration de PortB.1 (PB1) en sortie push-pull
|
||||
GPIO_Configure(GPIOB, 1, OUTPUT, OUTPUT_PPULL);
|
||||
|
@ -42,7 +43,7 @@ while (1)
|
|||
}
|
||||
}
|
||||
|
||||
char FlagCligno;
|
||||
/*char FlagCligno;
|
||||
|
||||
void timer_callback(void)
|
||||
{
|
||||
|
@ -57,5 +58,5 @@ void timer_callback(void)
|
|||
GPIOB_Clear(1);
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue