Commit Graph
10 Commits
Author SHA1 Message Date
Guillaume Souchere 862ada0054 feat(usb_cdc): Add select functionality 2025-09-25 09:42:52 +02:00
Guillaume Souchere f49f023b79 fix(usb_cdc): Remove undefined macro USB_CDC_LOCAL_FD 2025-07-21 12:34:53 +02:00
Guillaume Souchere d9c001cbc1 feat(usb_cdc): Update vfs read() to comply with POSIX standards 2025-07-02 08:55:38 +02:00
Guillaume Souchere 12427a8b21 feat(usb_serial_tag_vfs): Add test for read exit conditions
Add a test to make sure the VFS read does not return on reception
of the \n character
2025-07-02 08:55:38 +02:00
Guillaume Souchere 68042bbf4b fix(driver): remove unecessary if conditions in the read function
This changes affect usb_serial_jtag_vfs and cdcacm_vfs read functions.
This commit removes the exit condition on reception of \n character.
2025-07-02 08:55:38 +02:00
Guillaume Souchere 7d4d24d198 fix(esp_vfs_console): USB CDC read when non blocking
In non blocking mode, the read function is expected
to return weather data is available for reading or not.

In case data are available but the size does not match
the expected size, the function read should return whatever
data is available.

Previously, the function was returning -1 with errno set
to EWOULDBLOCK even if the size of data in the buffer was
less than the requested size. It would only return the
available data if the size in the buffer was greater or equal
to the requested size.

The implementation of cdcacm_read is modified to return the avilable
data from the buffer even is the size is lesser than the requested
size.
2025-02-06 08:58:44 +01:00
Tomáš Rohlínek 299b93bc9e fix(storage/vfs_console): stop new console opens from overwriting existing fds 2024-12-12 10:01:16 +01:00
Tomáš Rohlínek c23dbefd45 fix(storage/vfs_console): remove possible infinite recursion 2024-06-10 16:07:49 +02:00
Guillaume Souchere 6e628a341a fix(console): Fsync not propagated to secondary output
Calls to fsync need to also be propagated to secondary
output when CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
is enabled.

Closes https://github.com/espressif/esp-idf/issues/13162
2024-04-11 13:01:34 +02:00
sonika.rathi e162903615 fix(esp_vfs_console): add esp_vfs_console component
move vfs_console related init steps from vfs component to new esp_vfs_console component
2024-03-11 10:18:10 +01:00