-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
260 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
#pragma once | ||
|
||
#include <esp_idf_version.h> | ||
#include <soc/soc_caps.h> | ||
|
||
#if SOC_USB_SERIAL_JTAG_SUPPORTED && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0) | ||
#define UART_PHYSICAL_COUNT (SOC_UART_NUM + 1) ///< Number of physical UARTs on the system | ||
#define UART_ID_SERIAL_USB_JTAG SOC_UART_NUM | ||
#else | ||
#define UART_PHYSICAL_COUNT SOC_UART_NUM ///< Number of physical UARTs on the system | ||
#define UART_COUNT SOC_UART_NUM ///< Number of UARTs on the system, virtual or otherwise | ||
#endif | ||
|
||
#define UART_COUNT SOC_UART_NUM ///< Number of UARTs on the system, virtual or otherwise | ||
|
||
#include_next <driver/uart.h> |
Oops, something went wrong.