forked from acco/chti23
51 lines
No EOL
740 B
ArmAsm
51 lines
No EOL
740 B
ArmAsm
PRESERVE8
|
|
THUMB
|
|
include Driver/DriverJeuLaser.inc
|
|
|
|
; ====================== zone de réservation de données, ======================================
|
|
;Section RAM (read only) :
|
|
area mesdata,data,readonly
|
|
|
|
|
|
;Section RAM (read write):
|
|
area maram,data,readwrite
|
|
|
|
FlagCligno dcb 1
|
|
|
|
; ===============================================================================================
|
|
|
|
|
|
|
|
|
|
;Section ROM code (read only) :
|
|
area moncode,code,readonly
|
|
; écrire le code ici
|
|
EXPORT timer_callback
|
|
|
|
timer_callback proc
|
|
|
|
push {lr}
|
|
ldr r0,=FlagCligno
|
|
ldrb r1,[r0]
|
|
cbz r1, zero
|
|
mov r1,#0
|
|
strb r1,[r0]
|
|
mov r0,#1
|
|
bl GPIOB_Set
|
|
|
|
pop {pc}
|
|
|
|
|
|
zero
|
|
mov r1,#1
|
|
strb r1,[r0]
|
|
mov r0,#1
|
|
bl GPIOB_Clear
|
|
|
|
pop {pc}
|
|
|
|
|
|
endp
|
|
|
|
|
|
END
|