Skip to content

Commit 1ea381c

Browse files
committed
esp32/mpconfigport.h: Enable maximum speed software SPI.
1 parent 38d9422 commit 1ea381c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

esp32/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include <stdint.h>
55
#include <alloca.h>
6+
#include "rom/ets_sys.h"
67

78
// object representation and NLR handling
89
#define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_A)
@@ -121,6 +122,8 @@
121122
#define MICROPY_PY_MACHINE_PULSE (1)
122123
#define MICROPY_PY_MACHINE_I2C (1)
123124
#define MICROPY_PY_MACHINE_SPI (1)
125+
#define MICROPY_PY_MACHINE_SPI_MIN_DELAY (0)
126+
#define MICROPY_PY_MACHINE_SPI_MAX_BAUDRATE (ets_get_cpu_frequency() * 1000000 / 200) // roughly
124127
#define MICROPY_PY_USSL (1)
125128
#define MICROPY_SSL_MBEDTLS (1)
126129
#define MICROPY_PY_WEBSOCKET (0)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy