Skip to content

Commit

Permalink
Add support to uart driver
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jul 4, 2024
1 parent 6fd0586 commit 347d8ae
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 60 deletions.
9 changes: 8 additions & 1 deletion Sming/Arch/Esp32/Components/driver/include/driver/uart.h
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>
Loading

0 comments on commit 347d8ae

Please sign in to comment.