|
ESP-IDF Firmware
Firmware architecture and call graph
|
#include "esp_err.h"Go to the source code of this file.
Macros | |
| #define | VFS_TUSB_MAX_PATH 16 |
| #define | VFS_TUSB_PATH_DEFAULT "/dev/tusb_cdc" |
Functions | |
| esp_err_t | esp_vfs_tusb_cdc_register (int cdc_intf, char const *path) |
| Register TinyUSB CDC at VFS with path. | |
| esp_err_t | esp_vfs_tusb_cdc_unregister (char const *path) |
| Unregister TinyUSB CDC from VFS. | |
| #define VFS_TUSB_MAX_PATH 16 |
Definition at line 15 of file vfs_tinyusb.h.
Referenced by apply_path().
| #define VFS_TUSB_PATH_DEFAULT "/dev/tusb_cdc" |
Definition at line 16 of file vfs_tinyusb.h.
Referenced by apply_path(), esp_tusb_init_console(), and esp_vfs_tusb_cdc_unregister().
| esp_err_t esp_vfs_tusb_cdc_register | ( | int | cdc_intf, |
| char const * | path ) |
Register TinyUSB CDC at VFS with path.
| cdc_intf | - interface number of TinyUSB's CDC |
| path | - path where the CDC will be registered, /dev/tusb_cdc will be used if left NULL. |
Definition at line 256 of file vfs_tinyusb.c.
References ESP_LOGD, ESP_OK, s_vfstusb, TAG, tusb_cdc_acm_initialized(), tusb_close(), tusb_fcntl(), tusb_fstat(), tusb_open(), tusb_read(), tusb_write(), and vfstusb_init().
Referenced by esp_tusb_init_console().
| esp_err_t esp_vfs_tusb_cdc_unregister | ( | char const * | path | ) |
Unregister TinyUSB CDC from VFS.
| path | - path where the CDC will be unregistered if NULL will be used /dev/tusb_cdc |
Definition at line 224 of file vfs_tinyusb.c.
References ESP_LOGD, ESP_OK, s_vfstusb, TAG, VFS_TUSB_PATH_DEFAULT, and vfstusb_deinit().
Referenced by esp_tusb_deinit_console().