removed old COM2 parts from code.
This commit is contained in:
@@ -277,7 +277,7 @@ flashProcessWriteFlashReady:
|
|||||||
st X+, r16 ; msg len
|
st X+, r16 ; msg len
|
||||||
ldi r16, NETMSG_CMD_FLASH_READY
|
ldi r16, NETMSG_CMD_FLASH_READY
|
||||||
st X+, r16 ; msg code
|
st X+, r16 ; msg code
|
||||||
ldi r16, COM2_MAINTENANCE_ADDR
|
ldi r16, NET_MAINTENANCE_ADDR
|
||||||
st X+, r16 ; src address
|
st X+, r16 ; src address
|
||||||
|
|
||||||
; payload
|
; payload
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ ioWaitForGivenMsg_loop:
|
|||||||
brcc ioWaitForGivenMsg_loopEnd
|
brcc ioWaitForGivenMsg_loopEnd
|
||||||
ldi xl, LOW(flashRecvBuffer)
|
ldi xl, LOW(flashRecvBuffer)
|
||||||
ldi xh, HIGH(flashRecvBuffer)
|
ldi xh, HIGH(flashRecvBuffer)
|
||||||
adiw xh:xl, COM2_MSG_OFFS_CMD
|
adiw xh:xl, NETMSG_OFFS_CMD
|
||||||
ld r16, X
|
ld r16, X
|
||||||
sbiw xh:xl, COM2_MSG_OFFS_CMD
|
sbiw xh:xl, NETMSG_OFFS_CMD
|
||||||
cp r16, r17
|
cp r16, r17
|
||||||
breq ioWaitForGivenMsg_gotIt
|
breq ioWaitForGivenMsg_gotIt
|
||||||
cpi r16, CPRO_CMD_FLASH_END
|
cpi r16, NETMSG_CMD_FLASH_END
|
||||||
breq ioWaitForGivenMsg_gotIt
|
breq ioWaitForGivenMsg_gotIt
|
||||||
ioWaitForGivenMsg_loopEnd:
|
ioWaitForGivenMsg_loopEnd:
|
||||||
mov r16, r17 ; move expected code back to r16
|
mov r16, r17 ; move expected code back to r16
|
||||||
|
|||||||
@@ -63,6 +63,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
; ---------------------------------------------------------------------------
|
||||||
|
; special addresses
|
||||||
|
|
||||||
|
.equ NET_MAINTENANCE_ADDR = 0xc1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user