avr: reduced code (bootloader now 569 words).
This commit is contained in:
@@ -163,7 +163,7 @@ com2WaitForDataState1ms_loop:
|
||||
eor r22, r16
|
||||
andi r22, (1<<COM_PINNUM_DATA)
|
||||
breq com2WaitForDataState1ms_stateReached
|
||||
rcall com2WaitFor10MicroSecs ; wait for 10us (R22)
|
||||
rcall Utils_WaitFor10MicroSecs ; wait for 10us (R22)
|
||||
dec r17
|
||||
brne com2WaitForDataState1ms_loop
|
||||
rjmp com2LowLevelClcRet
|
||||
@@ -189,7 +189,7 @@ com2WaitForAttnState1ms_loop:
|
||||
eor r22, r16
|
||||
andi r22, (1<<COM_PINNUM_ATTN)
|
||||
breq com2WaitForAttnState1ms_stateReached
|
||||
rcall com2WaitFor10MicroSecs ; wait for 10us (R22)
|
||||
rcall Utils_WaitFor10MicroSecs ; wait for 10us (R22)
|
||||
dec r17
|
||||
brne com2WaitForAttnState1ms_loop
|
||||
rjmp com2LowLevelClcRet
|
||||
@@ -198,20 +198,6 @@ com2WaitForAttnState1ms_stateReached:
|
||||
|
||||
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; wait for 10 microsecs (minus cycles for call and ret).
|
||||
;
|
||||
; IN:
|
||||
; - nothing
|
||||
; OUT:
|
||||
; - nothing
|
||||
; REGS: r22
|
||||
|
||||
com2WaitFor10MicroSecs:
|
||||
Utils_WaitNanoSecs 10000, 7, r22 ; wait for 10us (minus RCALL and RET)
|
||||
ret
|
||||
|
||||
|
||||
com2LowLevelClcRet:
|
||||
clc
|
||||
ret
|
||||
|
||||
Reference in New Issue
Block a user