Lines Matching full:path
78 static esp_err_t apply_path(char const *path) in apply_path() argument
80 if (path != NULL) { in apply_path()
81 size_t path_len = strlen(path) + 1; in apply_path()
83 ESP_LOGE(TAG, "The path is too long; maximum is %d characters", VFS_TUSB_MAX_PATH); in apply_path()
86 strncpy(s_vfstusb.vfs_path, path, (VFS_TUSB_MAX_PATH - 1)); in apply_path()
92 ESP_LOGV(TAG, "Path is set to `%s`", s_vfstusb.vfs_path); in apply_path()
100 * @param path - a path where the CDC will be registered
103 static esp_err_t vfstusb_init(int cdc_intf, char const *path) in vfstusb_init() argument
109 return apply_path(path); in vfstusb_init()
121 static int tusb_open(const char *path, int flags, int mode) in tusb_open() argument
124 (void) path; in tusb_open()
234 esp_err_t esp_vfs_tusb_cdc_unregister(char const *path) in esp_vfs_tusb_cdc_unregister() argument
239 … if (path == NULL) { // NULL means using the default path for unregistering: VFS_TUSB_PATH_DEFAULT in esp_vfs_tusb_cdc_unregister()
242 res = strcmp(s_vfstusb.vfs_path, path); in esp_vfs_tusb_cdc_unregister()
247 …ESP_LOGE(TAG, "There is no TinyUSB driver registerred to the path '%s' (err: 0x%x)", s_vfstusb.vfs… in esp_vfs_tusb_cdc_unregister()
266 esp_err_t esp_vfs_tusb_cdc_register(int cdc_intf, char const *path) in esp_vfs_tusb_cdc_register() argument
275 res = vfstusb_init(cdc_intf, path); in esp_vfs_tusb_cdc_register()