Added MultiBoard Support

Support ESP32S3 and ESP32C3 while compiling
This commit is contained in:
simon 2025-07-24 14:15:53 +02:00
parent 2bc6686d90
commit 55228fff8d
2 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,10 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#ifdef CONFIG_IDF_TARGET_ESP32S3
#define MASTER_MODE_PIN GPIO_NUM_1 // Jumper-Erkennungspin #define MASTER_MODE_PIN GPIO_NUM_1 // Jumper-Erkennungspin
#elif CONFIG_IDF_TARGET_ESP32C3
#define MASTER_MODE_PIN GPIO_NUM_0 // Jumper-Erkennungspin
#endif
#endif #endif

View File

@ -6,9 +6,15 @@
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#ifdef CONFIG_IDF_TARGET_ESP32S3
#define MASTER_UART UART_NUM_1 #define MASTER_UART UART_NUM_1
#define TXD_PIN (GPIO_NUM_2) #define TXD_PIN (GPIO_NUM_2)
#define RXD_PIN (GPIO_NUM_3) #define RXD_PIN (GPIO_NUM_3)
#elif CONFIG_IDF_TARGET_ESP32C3
#define MASTER_UART UART_NUM_1
#define TXD_PIN (GPIO_NUM_1)
#define RXD_PIN (GPIO_NUM_2)
#endif
#define BUF_SIZE (256) #define BUF_SIZE (256)