Skip to content

Commit 542f65f

Browse files
committed
docs: provide CN translation for storage/vfs updates
1 parent bab9498 commit 542f65f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/en/api-reference/storage/vfs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Standard I/O streams (``stdin``, ``stdout``, ``stderr``) are mapped to file desc
192192

193193
Note that creating an eventfd with ``EFD_SUPPORT_ISR`` will cause interrupts to be temporarily disabled when reading, writing the file and during the beginning and the ending of the ``select()`` when this file is set.
194194

195-
Well known VFS devices
195+
Well Known VFS Devices
196196
----------------------
197197

198198
IDF defines several VFS devices that can be used by applications. These devices are, among others:

docs/zh_CN/api-reference/storage/vfs.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,15 @@ VFS 对文件路径长度没有限制,但文件系统路径前缀受 ``ESP_VFS
192192

193193
注意,用 ``EFD_SUPPORT_ISR`` 创建 eventfd 将导致在读取、写入文件时,以及在设置这个文件的 ``select()`` 开始和结束时,暂时禁用中断。
194194

195+
常用 VFS 设备
196+
-------------
197+
198+
IDF 定义了多个可供应用程序使用的 VFS 设备。这些设备包括:
199+
200+
* ``/dev/uart/<UART NUMBER>`` - 此文件映射到使用 VFS 驱动程序打开的 UART 中。UART 编号是 UART 外设的编号。
201+
* ``/dev/null`` - 此文件丢弃所有写入的数据,并在读取时返回 EOF。启用 :ref:`CONFIG_VFS_INITIALIZE_DEV_NULL` 会自动创建此文件。
202+
* ``/dev/console`` - 此文件连接到在 menuconfig 中由 :ref:`CONFIG_ESP_CONSOLE_UART` 和 :ref:`CONFIG_ESP_CONSOLE_SECONDARY` 指定的主输出和次输出。更多信息请参考 :doc:`../../api-guides/stdio`。
203+
195204
应用示例
196205
----------------
197206

0 commit comments

Comments
 (0)