avr/module/flash: unified flash code for 1p/4p devices.

AtTiny 841 erases 4 pages at once, others only erase one.
Fixed a bug: only send ONE flash response to FLASH_START!!!
This commit is contained in:
Martin Preuss
2025-05-04 03:32:53 +02:00
parent b632a10fff
commit e25b0ad69d
6 changed files with 385 additions and 619 deletions

View File

@@ -12,7 +12,7 @@
.equ FLASH_ERROR_NONE = 0
.equ FLASH_ERROR_MSGERROR = 1
.equ FLASH_RECVBUFFER_MAXLEN = 128
.equ FLASH_RECVBUFFER_MAXLEN = 32
.equ FLASH_CMD_FLASH_RSP = 74