avr: fixed docu.
This commit is contained in:
@@ -39,7 +39,7 @@ BASETIMER_BEGIN:
|
|||||||
|
|
||||||
|
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
; @rotuine BaseTimer_Init @global
|
; @routine BaseTimer_Init @global
|
||||||
;
|
;
|
||||||
; @clobbers r16, r17, x
|
; @clobbers r16, r17, x
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ BaseTimer_Init: ; setup timer for IRQ every 100ms
|
|||||||
ldi r16, (1<<OCF0A) ; clear pending interrupts
|
ldi r16, (1<<OCF0A) ; clear pending interrupts
|
||||||
out TIFR0, r16
|
out TIFR0, r16
|
||||||
|
|
||||||
ldi r16, (1<<OCIE0A)
|
ldi r16, (1<<OCIE0A) ; Timer/Counter0 Output Compare Match A Interrupt Enable
|
||||||
out TIMSK0, r16
|
out TIMSK0, r16
|
||||||
|
|
||||||
;
|
;
|
||||||
@@ -91,6 +91,7 @@ BaseTimer_Init: ; setup timer for IRQ every 100ms
|
|||||||
|
|
||||||
sec
|
sec
|
||||||
ret
|
ret
|
||||||
|
; @end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user