avr: use macros instead of costly calls for SPI on ILI9341.
This commit is contained in:
@@ -68,10 +68,12 @@ ili9341Font12x16MonoRenderChar_writeForeground:
|
||||
mov r18, r2
|
||||
mov r19, r3
|
||||
ili9341Font12x16MonoRenderChar_sendToDisplay:
|
||||
mov r16, r19
|
||||
rcall SPIHW_MasterTransfer ; (R16)
|
||||
mov r16, r18
|
||||
rcall SPIHW_MasterTransfer ; (R16)
|
||||
; mov r16, r19
|
||||
; rcall SPIHW_MasterTransfer ; (R16)
|
||||
M_SPIHW_MASTER_SEND_BYTE r19
|
||||
; mov r16, r18
|
||||
; rcall SPIHW_MasterTransfer ; (R16)
|
||||
M_SPIHW_MASTER_SEND_BYTE r18
|
||||
ili9341Font12x16MonoRenderChar_loop2end:
|
||||
dec r24
|
||||
brne ili9341Font12x16MonoRenderChar_loop2
|
||||
|
||||
Reference in New Issue
Block a user