machine: add __tinygo_spi_tx function to simulator

This is much, _much_ faster than __tinygo_spi_transfer which can only
transfer a single byte at a time. This is especially important for
simulated displays.

I've already implemented the browser side of this on the playground and
have used this patch for local testing where it massively speeds up
display operations.
This commit is contained in:
Ayke van Laethem
2024-04-12 14:54:27 +02:00
committed by Ron Evans
parent 90b0bf646c
commit 85b59e66da
2 changed files with 36 additions and 1 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
//go:build !baremetal || atmega || fe310 || k210 || (nxp && !mk66f18) || (stm32 && !stm32f7x2 && !stm32l5x2)
//go:build atmega || fe310 || k210 || (nxp && !mk66f18) || (stm32 && !stm32f7x2 && !stm32l5x2)
// This file implements the SPI Tx function for targets that don't have a custom
// (faster) implementation for it.