avr: new uart_bitbang module works now.
This commit is contained in:
@@ -34,16 +34,7 @@ CPRO_WriteReportValue:
|
||||
|
||||
; set msg id
|
||||
adiw xh:xl, CPRO_PACKET_VALUE_OFFS_MSGID
|
||||
ldi r18, 1
|
||||
lds r16, com2LastMsgId
|
||||
lds r17, com2LastMsgId+1
|
||||
add r16, r18
|
||||
dec r18
|
||||
adc r17, r18
|
||||
sts com2LastMsgId, r16
|
||||
sts com2LastMsgId+1, r17
|
||||
st X+, r16
|
||||
st X+, r17
|
||||
rcall COM2_AddNextMsgIdToBuffer ; (r16, r17, r18)
|
||||
sbiw xh:xl, CPRO_PACKET_VALUE_OFFS_MSGID+2 ; go back to begin of msg
|
||||
|
||||
; calc and add checksum
|
||||
|
||||
Reference in New Issue
Block a user