We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee1bc6b commit 9e48d9fCopy full SHA for 9e48d9f
cores/esp32/esp32-hal-spi.c
@@ -65,7 +65,7 @@
65
#endif
66
67
struct spi_struct_t {
68
- spi_dev_t *dev;
+ volatile spi_dev_t *dev;
69
#if !CONFIG_DISABLE_HAL_LOCKS
70
SemaphoreHandle_t lock;
71
variants/esp32p4/pins_arduino.h
@@ -22,10 +22,11 @@ static const uint8_t RX = 38;
22
static const uint8_t SDA = 7;
23
static const uint8_t SCL = 8;
24
25
-static const uint8_t SS = 27;
26
-static const uint8_t MOSI = 46;
27
-static const uint8_t MISO = 47;
28
-static const uint8_t SCK = 48;
+// Use GPIOs 36 or lower on the P4 DevKit to avoid LDO power issues with high numbered GPIOs.
+static const uint8_t SS = 26;
+static const uint8_t MOSI = 32;
+static const uint8_t MISO = 33;
29
+static const uint8_t SCK = 36;
30
31
static const uint8_t A0 = 16;
32
static const uint8_t A1 = 17;
0 commit comments