avr: use macros instead of costly calls for SPI on ILI9341.

This commit is contained in:
Martin Preuss
2026-01-24 01:03:31 +01:00
parent 2085ba6bbe
commit fdfc040d19
5 changed files with 79 additions and 24 deletions

View File

@@ -8,6 +8,22 @@
; ***************************************************************************
; ***************************************************************************
; macros
; @param @0 register to use
.macro M_SPIHW_MASTER_SEND_BYTE
outr SPDR, @0 ; masterSend Byte
l1_%:
inr @0, SPSR
sbrs @0, SPIF
rjmp l1_%
inr @0, SPDR
.endm
; ***************************************************************************
; defines