usb_serial_jtag: Add blocking driver to support vfs.

This commit is contained in:
Cao Sen Miao
2021-04-23 15:46:02 +08:00
parent 9ab1c4c9e0
commit 671303bbd5
13 changed files with 536 additions and 2 deletions

View File

@@ -114,6 +114,20 @@ void esp_vfs_dev_uart_use_nonblocking(int uart_num);
*/
void esp_vfs_dev_uart_use_driver(int uart_num);
/**
* @brief set VFS to use USB-SERIAL-JTAG driver for reading and writing
* @note application must configure USB-SERIAL-JTAG driver before calling these functions
* With these functions, read and write are blocking and interrupt-driven.
*/
void esp_vfs_usb_serial_jtag_use_driver(void);
/**
* @brief set VFS to use simple functions for reading and writing UART
* Read is non-blocking, write is busy waiting until TX FIFO has enough space.
* These functions are used by default.
*/
void esp_vfs_usb_serial_jtag_use_nonblocking(void);
#ifdef __cplusplus
}
#endif