started working on AtMega8515 module C1.
This commit is contained in:
@@ -56,6 +56,17 @@ flash1pWritePages_loop:
|
||||
; transfer data from temporary page buffer into FLASH memory
|
||||
ldi r20, (1<<PGWRT) + (1<<SPMEN) ; enable next SPM, write page (R1/R0 ignored)
|
||||
rcall flashDoSpm ; (R16)
|
||||
|
||||
#if 0
|
||||
.ifdef RWWSRE
|
||||
flash1pWritePages_endLoop:
|
||||
in r20, SPMCR
|
||||
sbrc r20, RWWSB
|
||||
rjmp flash1pWritePages_endLoop
|
||||
ldi r20, (1<<RWWSRE) | (1<<SPMEN) ; reenable RWW
|
||||
rcall flashDoSpm ; (R16)
|
||||
.endif
|
||||
#endif
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user