started working on AtMega8515 module C1.

This commit is contained in:
Martin Preuss
2025-05-17 10:50:09 +02:00
parent 5a46db37c1
commit 21c2c60f4f
29 changed files with 1893 additions and 422 deletions

View File

@@ -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