fix(spi): Fix P4 SPI Pin definitions

Use GPIOs 36 or lower to avoid LDO power issues
This commit is contained in:
me-no-dev 2024-10-17 16:13:59 +03:00
parent ee1bc6ba0a
commit 9e48d9f238
2 changed files with 6 additions and 5 deletions

View file

@ -65,7 +65,7 @@
#endif #endif
struct spi_struct_t { struct spi_struct_t {
spi_dev_t *dev; volatile spi_dev_t *dev;
#if !CONFIG_DISABLE_HAL_LOCKS #if !CONFIG_DISABLE_HAL_LOCKS
SemaphoreHandle_t lock; SemaphoreHandle_t lock;
#endif #endif

View file

@ -22,10 +22,11 @@ static const uint8_t RX = 38;
static const uint8_t SDA = 7; static const uint8_t SDA = 7;
static const uint8_t SCL = 8; static const uint8_t SCL = 8;
static const uint8_t SS = 27; // Use GPIOs 36 or lower on the P4 DevKit to avoid LDO power issues with high numbered GPIOs.
static const uint8_t MOSI = 46; static const uint8_t SS = 26;
static const uint8_t MISO = 47; static const uint8_t MOSI = 32;
static const uint8_t SCK = 48; static const uint8_t MISO = 33;
static const uint8_t SCK = 36;
static const uint8_t A0 = 16; static const uint8_t A0 = 16;
static const uint8_t A1 = 17; static const uint8_t A1 = 17;