/hal_espressif-3.5.0/tools/idf_py_actions/ |
D | create_ext.py | 22 def is_empty_and_create(path, action): argument 23 abspath = os.path.abspath(path) 24 if not os.path.exists(abspath): 26 elif not os.path.isdir(abspath): 27 print('Your target path is not a directory. Please remove the', os.path.abspath(abspath), 28 'or use different target path.') 30 elif len(os.listdir(path)) > 0: 32 'you must empty the directory or choose a different path.') 37 …copy_tree(os.path.join(os.environ['IDF_PATH'], 'examples', 'get-started', 'sample_project'), targe… 38 main_folder = os.path.join(target_path, 'main') [all …]
|
D | tools.py | 22 def realpath(path): argument 24 Return the cannonical path with normalized case. 27 On Unix and Mac OS X it works as `os.path.realpath()` only. 29 return os.path.normcase(os.path.realpath(path)) 33 version_path = os.path.join(os.environ['IDF_PATH'], 'tools/cmake/version.cmake') 50 def get_target(path, sdkconfig_filename='sdkconfig'): argument 51 path = os.path.join(path, sdkconfig_filename) 52 return get_sdkconfig_value(path, 'CONFIG_IDF_TARGET') 62 '--git-dir=%s' % os.path.join(os.environ['IDF_PATH'], '.git'), 123 def _parse_cmakecache(path): argument [all …]
|
/hal_espressif-3.5.0/zephyr/ |
D | module.yml | 8 - path: lib/esp32c3/libbtdm_app.a 12 license-path: zephyr/blobs/license.txt 16 - path: lib/esp32s3/libbtdm_app.a 20 license-path: zephyr/blobs/license.txt 24 - path: lib/esp32/libbtdm_app.a 28 license-path: zephyr/blobs/license.txt 32 - path: lib/esp32/libnet80211.a 36 license-path: zephyr/blobs/license.txt 40 - path: lib/esp32/libpp.a 44 license-path: zephyr/blobs/license.txt [all …]
|
/hal_espressif-3.5.0/zephyr/scripts/blobs/ |
D | esp_genblobs.py | 10 from pathlib import Path 14 MODULE_PATH = Path(Path(__file__).resolve().parents[2], "module.yml") 15 SUBMODULES = Path(Path(__file__).resolve().parents[1], "submodules.txt") 29 - path: lib/{SOC}/{FILENAME} 33 license-path: zephyr/blobs/license.txt 44 path = os.path.dirname(os.path.abspath(__file__)) 48 folder = Path(path, "temp", git_dir) 51 cmd_exec(("git", "clone", git_url, folder, "--quiet"), cwd=path) 53 cmd_exec(("git", "-C", folder, "fetch"), cwd=path) 54 cmd_exec(("git", "-C", folder, "checkout", git_rev, "--quiet"), cwd=path) [all …]
|
/hal_espressif-3.5.0/tools/ci/python_packages/ttfw_idf/ |
D | IDFApp.py | 58 def parse_flash_settings(path, default_encryption=False): # type: (str, bool) -> Tuple[List[Tuple[… argument 59 file_name = os.path.basename(path) 69 with open(path, 'r') as f: 83 app_name = os.path.splitext(args['app']['file'])[0] 86 with open(path, 'r') as f: 101 if not os.path.dirname(p[1]) and 'partition' not in p[1]: 103 app_name = os.path.splitext(p[1])[0] 116 assert os.path.exists(artifact_index_file) 144 return os.path.join(self.artifact_info['work_dir'], self.artifact_info['build_dir']) 150 flash_arg_file = os.path.join(base_path, 'flasher_args.json') [all …]
|
D | CIScanTests.py | 64 output_path = os.path.join(output_dir, 'scan_{}_{}.json'.format(target.lower(), build_system)) 92 parser.add_argument('-o', '--output-path', 94 help='output path of the scan result') 107 if not os.path.exists(args.output_path): 122 …paths = set([os.path.join(idf_path, path) if not os.path.isabs(path) else path for path in args.pa… 125 for path in paths: 127 assign = _ExampleAssignTest(path, args.ci_config_file) 129 assign = _TestAppsAssignTest(path, args.ci_config_file) 160 app_dir = os.path.join(idf_path, app_dir) if not os.path.isabs(app_dir) else app_dir 170 for path in paths: [all …]
|
/hal_espressif-3.5.0/components/esp_http_server/test/ |
D | test_http_server.c | 23 httpd_uri_t handler_limit_uri (char* path) in handler_limit_uri() argument 26 .uri = path, in handler_limit_uri() 178 {"/path", "/path", true}, 179 {"/path", "/path/", false}, 180 {"/path/", "/path", false}, 185 {"/path/?", "/pa", false}, 186 {"/path/?", "/path", true}, 187 {"/path/?", "/path/", true}, 188 {"/path/?", "/path/alalal", false}, 190 {"/path/*", "/path", false}, [all …]
|
/hal_espressif-3.5.0/tools/find_build_apps/ |
D | common.py | 23 IDF_SIZE_PY = os.path.join(os.environ['IDF_PATH'], 'tools', 'idf_size.py') 63 def find_first_match(pattern, path): argument 64 for root, _, files in os.walk(path): 67 return os.path.join(root, res[0]) 71 def rmdir(path, exclude_file_pattern=None): argument 73 shutil.rmtree(path, ignore_errors=True) 76 for root, dirs, files in os.walk(path, topdown=False): 79 os.remove(os.path.join(root, f)) 82 os.rmdir(os.path.join(root, d)) 119 self._app_name = os.path.basename(os.path.normpath(app_path)) [all …]
|
/hal_espressif-3.5.0/ |
D | export.ps1 | 2 $S = [IO.Path]::PathSeparator # path separator. WIN:';', UNIX:":" 9 Write-Output "Adding ESP-IDF tools to PATH..." 10 $OLD_PATH = $env:PATH.split($S) | Select-Object -Unique # array without duplicates 36 if ($var_name -eq "PATH") { 37 # trim "%PATH%" or "`$PATH" variable 39 $var_val = $var_val.Trim($S + "%PATH%") 41 $var_val = $var_val.Trim($S + "`$PATH") regex 44 $env:PATH = $var_val + $S + $env:PATH variable 46 New-Item -Path "env:$var_name" -Value "$var_val" -Force 50 # Allow calling some IDF python tools without specifying the full path [all …]
|
D | export.sh | 48 echo " export IDF_PATH=(add path here)" 54 # convert possibly relative path to absolute 56 # resolve any ../ references to make the path shorter 59 # convert to full path and get the directory name of that 66 # IDF_PATH came from the environment, check if the path is valid 70 echo "If you have set IDF_PATH manually, check if the path is correct." 73 # Check if this path looks like an IDF directory 77 echo "If you have set IDF_PATH manually, check if the path is correct." 85 old_path="$PATH" 90 __verbose "Adding ESP-IDF tools to PATH..." [all …]
|
/hal_espressif-3.5.0/tools/unit-test-app/ |
D | idf_ext.py | 4 import os.path 18 CONFIG_NAMES = os.listdir(os.path.join(project_path, 'configs')) 21 BUILDS_DIR = os.path.join(project_path, 'builds') 22 BINARIES_DIR = os.path.join(project_path, 'output') 24 def parse_file_to_dict(path, regex): argument 26 Parse the config file at 'path' 32 with open(path) as f: 39 def parse_config(path): argument 44 return parse_file_to_dict(path, r'^([^=]+)=(.+)$') 52 sdkconfig_path = os.path.join(args.project_dir, 'sdkconfig') [all …]
|
/hal_espressif-3.5.0/tools/ci/ |
D | ci_fetch_submodule.py | 16 PATH_PATTERN = re.compile(r'path\s+=\s+(\S+)') 27 def __init__(self, gitlab_inst, path, url): argument 28 self.path = path 31 self.commit_id = self._get_commit_id(path) 33 def _get_commit_id(self, path): argument 34 output = subprocess.check_output(['git', 'ls-tree', 'HEAD', path]) 41 base_name = os.path.basename(url) 42 project_id = self.gitlab_inst.get_project_id(os.path.splitext(base_name)[0], # remove .git 47 print('Update submodule: {}: {}'.format(self.path, self.commit_id)) 50 renamed_path = os.path.join(os.path.dirname(path_name), os.path.basename(self.path)) [all …]
|
/hal_espressif-3.5.0/tools/cmake/ |
D | convert_to_cmake.py | 8 import os.path 15 def get_make_variables(path, makefile='Makefile', expected_failure=False, variables={}): argument 17 …Given the path to a Makefile of some kind, return a dictionary of all variables defined in this Ma… 25 cmdline = ['make', '-rpn', '-C', path, '-f', makefile] + variable_setters 60 os.path.join(os.environ['IDF_PATH'], 65 … 'COMPONENT_MAKEFILE': os.path.join(component_path, 'component.mk'), 66 'COMPONENT_NAME': os.path.basename(component_path), 73 obj = os.path.splitext(obj)[0] 75 if os.path.exists(os.path.join(component_path, obj) + '.' + ext): 89 component_srcdir_path = os.path.abspath(os.path.join(component_path, component_srcdir)) [all …]
|
/hal_espressif-3.5.0/tools/ci/python_packages/tiny_test_fw/Utility/ |
D | __init__.py | 3 import os.path 28 file_name = os.path.join(Env.Env.CURRENT_LOG_FOLDER, 'console.log') 73 def load_source(path): argument 76 It should only be used when the package path is only available in runtime. 78 :param path: The path of python file 81 path = os.path.realpath(path) 85 return __LOADED_MODULES[path] 88 dir = os.path.dirname(path) 89 sys.path.append(dir) 91 ret = SourceFileLoader(load_name, path).load_module() [all …]
|
/hal_espressif-3.5.0/docs/_static/touch_element/ |
D | te_threshold.svg | 33 <path d="M 580,1141 L 1163,571 580,0 -4,571 580,1141 Z"/> 36 <path d="M 8,1128 L 1137,1128 1137,0 8,0 8,1128 Z"/> 39 <path d="M 174,0 L 602,739 174,1481 1456,739 174,0 Z M 1358,739 L 309,1346 659,739 1358,739 Z"/> 42 …<path d="M 2015,739 L 1276,0 717,0 1260,543 174,543 174,936 1260,936 717,1481 1274,1481 2015,739 Z… 45 …<path d="M 0,-2 C -7,14 -16,27 -25,37 L 356,567 C 262,823 215,952 215,954 215,979 228,992 255,992 … 48 …<path d="M 285,-33 C 182,-33 111,30 74,156 52,228 41,333 41,471 41,549 55,616 82,672 116,743 169,7… 51 …<path d="M 813,0 C 632,0 489,54 383,161 276,268 223,411 223,592 223,773 276,916 383,1023 489,1130 … 54 …<path d="M 346,457 C 273,457 209,483 155,535 101,586 74,649 74,723 74,796 101,859 155,911 209,963 … 57 <path d="M -4,459 L 1135,459 1135,606 -4,606 -4,459 Z"/> 60 …<path d="M 173,740 C 173,903 231,1043 346,1159 462,1274 601,1332 765,1332 928,1332 1067,1274 1183,… [all …]
|
/hal_espressif-3.5.0/west/ |
D | tools.py | 14 from pathlib import Path 23 THIS_ZEPHYR = Path(__file__).parents[4] / 'zephyr' 24 ZEPHYR_BASE = Path(os.environ.get('ZEPHYR_BASE', THIS_ZEPHYR)) 26 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts", "west_commands")) 46 esptool_path = os.path.join(module_path, 'components', 'esptool_py', 'esptool') 47 sys.path.insert(0, esptool_path) 66 def get_build_dir(path, die_if_none=True): argument 71 dir = find_build_dir(path, guess) 89 ret = Path(build_dir) / 'zephyr' / 'runners.yaml' 94 def load_runners_yaml(path): argument [all …]
|
/hal_espressif-3.5.0/tools/ble/ |
D | lib_ble_client.py | 60 self.path = None 67 self.path = None 75 self.path = None 85 self.path = None 125 for path, interfaces in dbus_objs.items(): 127 if adapter is not None and path.endswith(self.hci_iface): 128 … self.adapter.iface = dbus.Interface(self.bus.get_object(BLUEZ_SERVICE_NAME, path), ADAPTER_IFACE) 129 …self.adapter.props = dbus.Interface(self.bus.get_object(BLUEZ_SERVICE_NAME, path), DBUS_PROP_IFACE) 130 self.adapter.path = path 154 …props = dbus.Interface(self.bus.get_object(BLUEZ_SERVICE_NAME, self.adapter.path), DBUS_PROP_IFACE) [all …]
|
/hal_espressif-3.5.0/tools/windows/ |
D | eclipse_make.py | 7 import os.path 17 def check_path(path): argument 19 return paths[path] 22 paths[path] = path # cache as failed, replace with success if it works 24 winpath = subprocess.check_output(['cygpath', '-w', path]).decode('utf-8').strip() 26 return path # something went wrong running cygpath, assume this is not a path! 27 if not os.path.exists(winpath): 28 return path # not actually a valid path 30 paths[path] = winpath
|
/hal_espressif-3.5.0/components/vfs/test/ |
D | test_vfs_fd.c | 34 const char *path; member 38 static int collision_test_vfs_open(void* ctx, const char * path, int flags, int mode) in collision_test_vfs_open() argument 41 if (strcmp(param->path, path) == 0) { in collision_test_vfs_open() 61 .path = FILE1, 96 const char *path; member 101 const char *path; member 106 { .path = FILE1, .local_fd = 1 }, 107 { .path = FILE2, .local_fd = 2 }, 108 { .path = FILE3, .local_fd = 3 }, 109 { .path = FILE4, .local_fd = 4 }, [all …]
|
D | test_vfs_paths.c | 26 /* Dummy VFS implementation to check if VFS is called or not with expected path 33 static int dummy_open(void* ctx, const char * path, int flags, int mode) in dummy_open() argument 37 if (strcmp(dummy->match_path, path) == 0) { in dummy_open() 55 static DIR* dummy_opendir(void* ctx, const char* path) in dummy_opendir() argument 59 if (strcmp(dummy->match_path, path) == 0) { in dummy_opendir() 90 static void test_open(dummy_vfs_t* instance, const char* path, in test_open() argument 95 int fd = esp_vfs_open(__getreent(), path, flags, 0); in test_open() 108 static void test_opendir(dummy_vfs_t* instance, const char* path, in test_opendir() argument 112 DIR* dir = opendir(path); in test_opendir() 131 #define test_opened(instance, path) test_open(instance, path, true, true, __LINE__) argument [all …]
|
/hal_espressif-3.5.0/components/newlib/ |
D | realpath.c | 29 /* allowed as an extension, allocate memory for the output path */ in realpath() 37 /* canonical path starts with / */ in realpath() 40 /* pointers moving over the input and output path buffers */ in realpath() 43 /* number of path components in the output buffer */ in realpath() 48 /* "path component" is the part between two '/' path separators. in realpath() 49 * locate the next path component in the input path: in realpath() 56 /* empty path component or '.' - nothing to do */ in realpath() 58 /* '..' - remove one path component from the output */ in realpath() 62 /* there is only one path component in output; in realpath() 69 /* remove last path component and the separator preceding it */ in realpath() [all …]
|
/hal_espressif-3.5.0/docs/zh_CN/get-started/ |
D | windows-setup-scratch.rst | 51 …安装器询问“安装选项”时,选择 "Add CMake to the system PATH for all users"(为所有用户的系统路径添加 CMake)或 "Add CMake to th… 61 …文件,包含一个 ``ninja.exe`` 文件。您需要将该文件解压到目录,并 :ref:`添加到 Path 环境变量 <add-directory-windows-path>` (或者选择解压到… 69 Python 安装器的“自定义”菜单可为您提供一系列选项,最后一项为 "Add python.exe to Path"(添加 python.exe 到 Path 环境变量中),请将该选项更改为 "W… 86 …`bin`` 子目录 :ref:`添加到 Path 环境变量 <add-directory-windows-path>`。例如,将目录 ``C:\Program Files\{IDF_TARGET… 89 …),则可以跳过下载那一步,直接添加目录 ``C:\msys32\opt\{IDF_TARGET_TOOLCHAIN_PREFIX}\bin`` 到 Path 环境变量,因为 MSYS2 环境已包含… 92 .. _add-directory-windows-path: 94 添加目录到 Path 环境变量 97 在 Windows 环境下,向 Path 环境变量增加任何新目录,请: 101 双击 ``Path`` 变量(选择“用户路径”或“系统路径”,具体取决于您是否希望其他用户的 Path 中也存在该目录)。最后在值的末尾增加 ``;<new value>``。
|
/hal_espressif-3.5.0/make/ |
D | common.mk | 13 export SDKCONFIG_MAKEFILE # sub-makes (like bootloader) will reuse this path 56 # macro to keep an absolute path as-is, but resolve a relative path 59 # $(1) path to resolve 60 # $(2) directory to resolve non-absolute path against 62 # Path and directory don't have to exist (definition of a "relative 63 # path" is one that doesn't start with /) 66 # double any path slashes. 95 # macro to strip leading ../s from a path 98 # if the path contains nothing but ../.., a single . is returned (cwd) 100 $(foreach path,$(1),$(if $(subst ..,,$(path)),$(if $(filter ../%,$(path)),$(call stripLeadingParent…
|
/hal_espressif-3.5.0/components/tinyusb/additions/src/ |
D | vfs_tinyusb.c | 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 [all …]
|
/hal_espressif-3.5.0/tools/ |
D | idf_tools.py | 8 # This script helps installing tools required to use the ESP-IDF, and updating PATH 15 # (%USERPROFILE%/.espressif on Windows). This path can be modified by setting 28 # the PATH to point to the installed tools and set up other environment variables 82 IDF_TOOLS_PATH_DEFAULT = os.path.join('~', '.espressif') 213 …# Note: it would seem logical to add extra_paths to env[PATH], instead, and let OS do the job of f… 220 for path in extra_paths: 222 fullpath = os.path.join(path, cmd[0] + ext) 223 if os.path.exists(fullpath): 249 paths_list = [p.replace('/', os.path.sep) if os.path.sep in p else p for p in paths_list] 262 to the PATH environment variable. [all …]
|