mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-18 01:35:23 +02:00
usb_serial_jtag: Add blocking driver to support vfs.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user