started working on AtMega8515 module C1.
This commit is contained in:
@@ -292,11 +292,19 @@ flashErasePage:
|
||||
|
||||
flashDoSpm:
|
||||
flashDoSpm_wait: ; wait for possibly previous SPM to complete
|
||||
.ifdef SPMCSR
|
||||
in r16, SPMCSR
|
||||
.else
|
||||
in r16, SPMCR
|
||||
.endif
|
||||
sbrc r16, SPMEN
|
||||
rjmp flashDoSpm_wait
|
||||
; SPM timed sequence
|
||||
.ifdef SPMCSR
|
||||
out SPMCSR, r20
|
||||
.else
|
||||
out SPMCR, r20
|
||||
.endif
|
||||
spm
|
||||
ret
|
||||
; @end
|
||||
|
||||
Reference in New Issue
Block a user