mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-29 18:27:31 +02:00
Terminal: Use vfs as an alternative for ITerminal
This commit is contained in:
@ -48,6 +48,11 @@ using dte_config = ::esp_modem_dte_config;
|
||||
* if exceptions are disabled the API abort()'s on error
|
||||
*/
|
||||
std::shared_ptr<DTE> create_uart_dte(const dte_config *config);
|
||||
|
||||
|
||||
std::shared_ptr<DTE> create_vfs_dte(const dte_config *config);
|
||||
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -58,9 +58,24 @@ struct esp_modem_uart_term_config {
|
||||
int event_task_priority; /*!< UART Event Task Priority */
|
||||
};
|
||||
|
||||
struct esp_modem_vfs_term_config {
|
||||
int port_num;
|
||||
const char* dev_name;
|
||||
int rx_buffer_size;
|
||||
int tx_buffer_size;
|
||||
int baud_rate;
|
||||
int tx_io_num;
|
||||
int rx_io_num;
|
||||
uint32_t task_stack_size;
|
||||
int task_prio;
|
||||
};
|
||||
|
||||
struct esp_modem_dte_config {
|
||||
size_t dte_buffer_size;
|
||||
struct esp_modem_uart_term_config uart_config;
|
||||
union {
|
||||
struct esp_modem_uart_term_config uart_config;
|
||||
struct esp_modem_vfs_term_config vfs_config;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user