Etape 3 #1
3 changed files with 44 additions and 27 deletions
|
@ -362,7 +362,24 @@
|
|||
<Name>-UAny -O206 -S8 -C0 -P00 -N00("ARM CoreSight SW-DP") -D00(1BA01477) -L00(0) -TO65554 -TC10000000 -TT10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC1000 -FN1 -FF0STM32F10x_CL.FLM -FS08000000 -FL080000 -FP0($$Device:STM32F107VC$Flash\STM32F10x_CL.FLM)</Name>
|
||||
</SetRegEntry>
|
||||
</TargetDriverDllRegistry>
|
||||
<Breakpoint/>
|
||||
<Breakpoint>
|
||||
<Bp>
|
||||
<Number>0</Number>
|
||||
<Type>0</Type>
|
||||
<LineNumber>56</LineNumber>
|
||||
<EnabledFlag>1</EnabledFlag>
|
||||
<Address>134223162</Address>
|
||||
<ByteObject>0</ByteObject>
|
||||
<HtxType>0</HtxType>
|
||||
<ManyObjects>0</ManyObjects>
|
||||
<SizeOfObject>0</SizeOfObject>
|
||||
<BreakByAccess>0</BreakByAccess>
|
||||
<BreakIfRCount>1</BreakIfRCount>
|
||||
<Filename>.\FonctionEtape3.asm</Filename>
|
||||
<ExecCommand></ExecCommand>
|
||||
<Expression>\\Reel_Etape0\FonctionEtape3.asm\56</Expression>
|
||||
</Bp>
|
||||
</Breakpoint>
|
||||
<MemoryWindow1>
|
||||
<Mm>
|
||||
<WinNumber>1</WinNumber>
|
||||
|
@ -391,7 +408,7 @@
|
|||
<AscS3>0</AscS3>
|
||||
<aSer3>0</aSer3>
|
||||
<eProf>0</eProf>
|
||||
<aLa>1</aLa>
|
||||
<aLa>0</aLa>
|
||||
<aPa1>0</aPa1>
|
||||
<AscS4>0</AscS4>
|
||||
<aSer4>0</aSer4>
|
||||
|
@ -413,12 +430,6 @@
|
|||
<pszMrulep></pszMrulep>
|
||||
<pSingCmdsp></pSingCmdsp>
|
||||
<pMultCmdsp></pMultCmdsp>
|
||||
<SystemViewers>
|
||||
<Entry>
|
||||
<Name>System Viewer\GPIOA</Name>
|
||||
<WinId>35905</WinId>
|
||||
</Entry>
|
||||
</SystemViewers>
|
||||
<DebugDescription>
|
||||
<Enable>1</Enable>
|
||||
<EnableFlashSeq>0</EnableFlashSeq>
|
||||
|
|
|
@ -48,14 +48,20 @@ TVI_Flash EQU 0x0
|
|||
|
||||
Timer1_IRQHandler PROC
|
||||
PUSH {LR}
|
||||
LDRB R2,=SwitchState
|
||||
LDRB R3,[R2]
|
||||
CMP R3, #0
|
||||
BEQ SETBarrette1
|
||||
LDR R2,=SwitchState ;On lit l'adresse de switch state
|
||||
LDRB R3,[R2] ;On charge la donnée
|
||||
CMP R3, #0 ;if(Switchstate == 0)
|
||||
BEQ SETBarrette1 ; {DriverReg(Barette1)}
|
||||
SETBarrette2
|
||||
LDR R0, =Barette2 ;Adresse Jeu de led 2 : Argument
|
||||
LDR R0, =Barette2 ;else {DriverReg(Barette2)} Adresse Jeu de led 2 : Argument
|
||||
MOV R3, #0;
|
||||
STRB R3,[R2] ;On remet la donnée
|
||||
B GoToDriverReg
|
||||
SETBarrette1
|
||||
LDR R0, =Barette1 ;Adresse Jeu de led 1 : Argument
|
||||
MOV R3, #1;
|
||||
STRB R3,[R2] ;On remet la donnée
|
||||
GoToDriverReg
|
||||
BL DriverReg ;DriverReg(Barette3)
|
||||
LDR R0,=TIM1_SR
|
||||
LDR R1, [R0]
|
||||
|
|
28
LUMIERES.inc
28
LUMIERES.inc
|
@ -27,20 +27,20 @@ Barette1 DCB 0xff,0x00,0x0
|
|||
DCB 0x00,0x00,0x00
|
||||
|
||||
Barette2 DCB 0x00,0x00,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0xff,0xff,0x00
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0xff,0xff
|
||||
DCB 0x00,0x00,0x00
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue