Improve SPI robustness (fix incompatibility with ESP32-S2)

This commit is contained in:
Manuel Bleichenbacher
2022-03-26 20:06:03 +01:00
parent ee8eead337
commit 54a91a27db
13 changed files with 56 additions and 45 deletions

View File

@ -32,8 +32,8 @@ const char *devEui = "????????????????";
const char *appKey = "????????????????????????????????";
// Pins and other resources
#define TTN_SPI_HOST HSPI_HOST
#define TTN_SPI_DMA_CHAN 1
#define TTN_SPI_HOST SPI2_HOST
#define TTN_SPI_DMA_CHAN SPI_DMA_DISABLED
#define TTN_PIN_SPI_SCLK 5
#define TTN_PIN_SPI_MOSI 27
#define TTN_PIN_SPI_MISO 19