avr: use macros instead of costly calls for SPI on ILI9341.
This commit is contained in:
@@ -64,10 +64,12 @@ ili9341Font6x8WriteChar_writeForeground:
|
||||
mov r22, r2
|
||||
mov r23, r3
|
||||
ili9341Font6x8WriteChar_sendToDisplay:
|
||||
mov r16, r23
|
||||
rcall SPIHW_MasterTransfer ; (R16)
|
||||
mov r16, r22
|
||||
rcall SPIHW_MasterTransfer ; (R16)
|
||||
; mov r16, r23
|
||||
; rcall SPIHW_MasterTransfer ; (R16)
|
||||
M_SPIHW_MASTER_SEND_BYTE r23
|
||||
; mov r16, r22
|
||||
; rcall SPIHW_MasterTransfer ; (R16)
|
||||
M_SPIHW_MASTER_SEND_BYTE r22
|
||||
ili9341Font6x8WriteChar_loop2end:
|
||||
dec r24
|
||||
brne ili9341Font6x8WriteChar_loop2
|
||||
|
||||
Reference in New Issue
Block a user