mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
esp_rom: extract common uart apis into esp_rom_uart.h
This commit is contained in:
@@ -162,14 +162,6 @@ typedef struct {
|
||||
int received;
|
||||
} UartDevice;
|
||||
|
||||
typedef enum {
|
||||
ROM_UART_0,
|
||||
ROM_UART_1,
|
||||
ROM_UART_USB
|
||||
} rom_uart_num_t;
|
||||
|
||||
#define CDC_ACM_WORK_BUF_MIN 128
|
||||
|
||||
/**
|
||||
* @brief Init uart device struct value and reset uart0/uart1 rx.
|
||||
* Please do not call this function in SDK.
|
||||
@@ -436,7 +428,7 @@ uint8_t UartConnCheck(uint8_t uart_no);
|
||||
|
||||
/**
|
||||
* @brief Initialize the USB ACM UART
|
||||
* Needs to be fed a buffer of at least 128 bytes (CDC_ACM_WORK_BUF_MIN),
|
||||
* Needs to be fed a buffer of at least 128 bytes (ESP_ROM_CDC_ACM_WORK_BUF_MIN),
|
||||
* plus any rx buffer you may want to have.
|
||||
*
|
||||
* @param cdc_acm_work_mem Pointer to work mem for CDC-ACM code
|
||||
|
Reference in New Issue
Block a user