From 3cc359c20473f8b64fed9daa86410bec9669cc79 Mon Sep 17 00:00:00 2001 From: robert-hh Date: Thu, 10 Nov 2022 21:30:12 +0100 Subject: [PATCH] samd/mpconfigport: Support MICROPY_HW_SOFTSPI_MIN_DELAY. Bringing the SoftSPI baudrate up to about 500 kHz. --- ports/samd/mpconfigport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/samd/mpconfigport.h b/ports/samd/mpconfigport.h index c3a0d23700..0e940e1c9a 100644 --- a/ports/samd/mpconfigport.h +++ b/ports/samd/mpconfigport.h @@ -93,6 +93,8 @@ #define MICROPY_PY_MACHINE_SOFTI2C (1) #define MICROPY_PY_MACHINE_SPI (1) #define MICROPY_PY_MACHINE_SOFTSPI (1) +#define MICROPY_HW_SOFTSPI_MIN_DELAY (1) +#define MICROPY_HW_SOFTSPI_MAX_BAUDRATE (1000000) #define MICROPY_PY_MACHINE_TIMER (1) #define MICROPY_PY_OS_DUPTERM (3) #define MICROPY_PY_MACHINE_BITSTREAM (1)