Added MultiBoard Support
Support ESP32S3 and ESP32C3 while compiling
This commit is contained in:
parent
2bc6686d90
commit
55228fff8d
@ -14,6 +14,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef CONFIG_IDF_TARGET_ESP32S3
|
||||
#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
|
||||
|
||||
@ -6,9 +6,15 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef CONFIG_IDF_TARGET_ESP32S3
|
||||
#define MASTER_UART UART_NUM_1
|
||||
#define TXD_PIN (GPIO_NUM_2)
|
||||
#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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user