/hal_espressif-2.7.6/docs/idf_extensions/ |
D | gen_version_specific_includes.py | 2 # -*- coding: utf-8 -*- 5 # with version-based content for this IDF version 18 'git-clone-bash': """ 19 .. code-block:: bash 21 mkdir -p ~/esp 23 git clone %(clone_args)s--recursive https://github.com/espressif/esp-idf.git 26 'git-clone-windows': """ 27 .. code-block:: batch 31 git clone %(clone_args)s--recursive https://github.com/espressif/esp-idf.git 34 'git-clone-notes': { [all …]
|
D | util.py | 9 # http:#www.apache.org/licenses/LICENSE-2.0 37 with open(path_1, 'r', encoding='utf-8') as f_1: 40 with open(path_2, 'r', encoding='utf-8') as f_2:
|
D | link_roles.py | 1 # based on http://protips.readthedocs.io/link-roles.html 17 …git_root = subprocess.check_output(['git', 'rev-parse', '--show-toplevel']).strip().decode('utf-8') 20 …submodules = subprocess.check_output(['git', 'submodule', 'status']).strip().decode('utf-8').split… 28 rev = sub_info[0].lstrip('-')[0:7] 32 … subprocess.check_output(['git', 'config', '--file', gitmodules_file, '--get', config_key_arg]).de… 51 IDF_REPO = 'espressif/esp-idf' 85 …# drop any URL line number from the file, line numbers take the form #Lnnn or #Lnnn-Lnnn for a ran… 87 line_no = re.search(r'^(\d+)(?:-L(\d+))?', line_no)
|
D | run_doxygen.py | 26 app.connect('idf-defines-generated', generate_doxygen) 50 logfile = os.path.join(build_dir, 'doxygen-warning-log.txt') 92 with open(inc_file_path, 'r', encoding='utf-8') as inc_file_old: 96 with open(inc_file_path, 'w', encoding='utf-8') as inc_file: 112 with open(doxyfile_path, 'r', encoding='utf-8') as input_file: 128 if line.find('#') == -1: 130 m = re.search('components/(.*\.h)', line) # noqa: W605 - regular expression 181 rst_output = ".. File automatically generated by 'gen-dxd.py'\n"
|
/hal_espressif-2.7.6/tools/test_idf_py/ |
D | test_idf_py.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 44 output = subprocess.check_output([sys.executable, idf_py_path, '--help'], 45 env=os.environ).decode('utf-8', 'ignore') 47 self.assertIn('--test-extension-option', output) 49 self.assertIn('--some-extension-option', output) 59 …[sys.executable, idf_py_path, '--some-extension-option=awesome', 'test_subcommand', 'extra_subcomm… 60 env=os.environ).decode('utf-8', 'ignore') 72 output = subprocess.check_output([sys.executable, idf_py_path, '--help'], 73 env=os.environ).decode('utf-8', 'ignore') 84 args=['--dry-run', 'flash'], [all …]
|
/hal_espressif-2.7.6/tools/mass_mfg/ |
D | mfg_gen.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 51 config_data = config_data.encode('utf-8') 79 data = data.encode('utf-8') 99 data = data.encode('utf-8') 136 values_file_line = values_file_line.encode('utf-8') 173 data = data.encode('utf-8') 269 values = values.encode('utf-8') 276 line = line.encode('utf-8') 279 index = -1 300 line = line.encode('utf-8') [all …]
|
/hal_espressif-2.7.6/components/wpa_supplicant/src/crypto/ |
D | ms_funcs.c | 3 * Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi> 18 * utf8_to_ucs2 - Convert UTF-8 string to UCS-2 encoding 19 * @utf8_string: UTF-8 string (IN) 21 * @ucs2_buffer: UCS-2 buffer (OUT) 22 * @ucs2_buffer_size: Length of UCS-2 buffer (IN) 23 * @ucs2_string_size: Number of 2-byte words in the resulting UCS-2 string 24 * Returns: 0 on success, -1 on failure 36 return -1; in utf8_to_ucs2() 41 } else if (i == utf8_string_len - 1 || in utf8_to_ucs2() 42 j >= ucs2_buffer_size - 1) { in utf8_to_ucs2() [all …]
|
/hal_espressif-2.7.6/docs/ |
D | build_docs.py | 2 # coding=utf-8 4 # Top-level docs builder 6 # This is just a front-end to sphinx-build that can call it multiple times for different language/t… 18 # http://www.apache.org/licenses/LICENSE-2.0 44 SPHINX_WARN_LOG = 'sphinx-warning-log.txt' 45 SPHINX_SANITIZED_LOG = 'sphinx-warning-log-sanitized.txt' 46 SPHINX_KNOWN_WARNINGS = os.path.join(os.environ['IDF_PATH'], 'docs', 'sphinx-known-warnings.txt') 48 DXG_WARN_LOG = 'doxygen-warning-log.txt' 49 DXG_SANITIZED_LOG = 'doxygen-warning-log-sanitized.txt' 50 DXG_KNOWN_WARNINGS = os.path.join(os.environ['IDF_PATH'], 'docs', 'doxygen-known-warnings.txt') [all …]
|
D | get_github_rev.py | 6 path = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).strip().decode('utf-8') 8 tag = subprocess.check_output(['git', 'describe', '--exact-match']).strip().decode('utf-8')
|
/hal_espressif-2.7.6/components/fatfs/test/ |
D | test_fatfs_spiflash.c | 1 // Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD 7 // http://www.apache.org/licenses/LICENSE-2.0 53 esp_partition_erase_range(part, 0, part->size); 90 size_t max_files = FOPEN_MAX - 3; /* account for stdin, stdout, stderr */ 181 esp_partition_erase_range(part, 0, part->size); 192 test_fatfs_rw_speed(file, buf, 8 * 1024, file_size, true); 196 test_fatfs_rw_speed(file, buf, 8 * 1024, file_size, false); 206 * In FatFs menuconfig, set CONFIG_FATFS_API_ENCODING to UTF-8 and set the 208 * Ensure that the text editor is UTF-8 compatible when compiling these tests. 211 TEST_CASE("(WL) can read file with UTF-8 encoded strings", "[fatfs][wear_levelling]") [all …]
|
D | test_fatfs_sdmmc.c | 1 // Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD 7 // http://www.apache.org/licenses/LICENSE-2.0 204 sdmmc_speed_test(buf, 8 * 1024, file_size, true); 208 sdmmc_speed_test(buf, 8 * 1024, file_size, false); 247 esp_partition_erase_range(test_partition, 0, test_partition->size); 248 …printf("Partition erased: addr- 0x%08x, size- 0x%08x\n", test_partition->address, test_partition->… 267 TEST_ASSERT_NOT_NULL(fgets(buf, sizeof(buf) - 1, f)); 277 TEST_ASSERT_NOT_NULL(fgets(buf, sizeof(buf) - 1, f)); 284 * In FatFs menuconfig, set CONFIG_FATFS_API_ENCODING to UTF-8 and set the 286 * Ensure that the text editor is UTF-8 compatible when compiling these tests. [all …]
|
/hal_espressif-2.7.6/docs/zh_CN/get-started/ |
D | windows-setup.rst | 10 …位 Windows 版本。32 位 Windows 版本的用户可根据 :doc:`传统 GNU Make 构建系统<../get-started-legacy/windows-setup>` 中的… 15 ESP-IDF 需要安装一些必备工具,才能围绕 {IDF_TARGET_NAME} 构建固件,包括 Python、Git、交叉编译器、CMake 和 Ninja 编译工具等。 17 在本入门指南中,我们通过 **命令提示符** 进行有关操作。不过,您在安装 ESP-IDF 后还可以使用 :doc:`Eclipse <eclipse-setup>` 或其他支持 CMake 的图形… 22 …较早 ESP-IDF 版本使用 :doc:`传统 GNU Make 构建系统<../get-started-legacy/windows-setup>` 和 MSYS2_ Unix 兼容环境。但如… 25 …限定条件:Python 或 ESP-IDF 的安装路径中一定不能包含空格或括号。与此同时,除非操作系统配置为支持 Unicode UTF-8,否则 Python 或 ESP-IDF 的安装路径中也… 27 …系统管理员可以通过如下方式将操作系统配置为支持 Unicode UTF-8:控制面板-更改日期、时间或数字格式-管理选项卡-更改系统地域-勾选选项 “Beta:使用 Unicode UTF-8 支… 29 .. _get-started-windows-tools-installer: 31 ESP-IDF 工具安装器 34 安装 ESP-IDF 必备工具最简易的方式是下载 ESP-IDF 工具安装器,地址如下: 36 https://dl.espressif.com/dl/esp-idf-tools-setup-2.4.exe [all …]
|
/hal_espressif-2.7.6/examples/system/ota/otatool/ |
D | get_running_partition.py | 12 # http:#www.apache.org/licenses/LICENSE-2.0 55 serial_instance = serial.serial_for_url(port.decode('utf-8'), baud, do_not_open=True) 66 pattern = re.compile(b'Running partition: ([a-z0-9_]+)') 69 return running.decode('utf-8') 74 parser.add_argument('--port', default=None)
|
/hal_espressif-2.7.6/west/ |
D | update.py | 3 # SPDX-License-Identifier: Apache-2.0 7 Espressif west extension to retrieve esp-idf submodules.''' 18 ESP_IDF_REMOTE = "https://github.com/zephyrproject-rtos/hal_espressif" 34 # Keep this in sync with the string in west-commands.yml. 35 'download toolchain or update ESP-IDF submodules', 38 or fetch ESP-IDF submodules required for 71 log.banner('updating ESP-IDF submodules..') 75 cwd=module_path).decode('utf-8') 82 remote_url = cmd_check(("git", "remote", "get-url", "origin"), 83 cwd=module_path).decode('utf-8') [all …]
|
/hal_espressif-2.7.6/components/mbedtls/esp_crt_bundle/ |
D | gen_crt_bundle.py | 11 # Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD 17 # http:#www.apache.org/licenses/LICENSE-2.0 41 'Please refer to the Get Started section of the ESP-IDF Programming Guide for ' 84 with open(file_path, 'r', encoding='utf-8') as f: 110 if strg == '-----BEGIN CERTIFICATE-----\n' and start is False: 113 elif strg == '-----END CERTIFICATE-----\n' and start is True: 157 with open(filter_path, 'r', encoding='utf-8') as f: 167 with open(crts_path, 'r', encoding='utf-8') as f: 171 … pem_crts = re.findall(r'(^.+?)\n(=+\n[\s\S]+?END CERTIFICATE-----\n)', crt_str, re.MULTILINE) 189 parser = argparse.ArgumentParser(description='ESP-IDF x509 certificate bundle utility') [all …]
|
/hal_espressif-2.7.6/tools/test_mkdfu/ |
D | test_mkdfu.py | 2 # -*- coding: utf-8 -*- 10 # http://www.apache.org/licenses/LICENSE-2.0 39 '-o', f.name, 40 '--pid', '2', 46 'Adding 1/partition-table.bin at 0x8000', 47 'Adding 1/hello-world.bin at 0x10000', 51 # Do non-blocking wait instead of the blocking p.wait(): 62 self.common_test(' '.join(['--json', os.path.join(current_dir, '1', 'flasher_args.json')])) 72 temp_dir = tempfile.mkdtemp(prefix='very_long_directory_name' * 8) 86 '-o', output, [all …]
|
/hal_espressif-2.7.6/tools/ci/ |
D | check_public_headers.py | 11 # http://www.apache.org/licenses/LICENSE-2.0 56 return 'Header Produced non-zero object' 64 with open(out_file.name, 'r', encoding='utf-8') as f: 73 output = output.decode('utf-8') if output is not None else None 74 err = err.decode('utf-8') if err is not None else None 80 …COMPILE_ERR_REF_CONFIG_HDR_FAILED = 1 # -> Cannot compile and failed with injected SDKCONFIG #err… 81 …COMPILE_ERR_ERROR_MACRO_HDR_OK = 2 # -> Cannot compile, but failed with "#error" directive (he… 82 …COMPILE_ERR_HDR_FAILED = 3 # -> Cannot compile with another issue, logged if verbose (… 83 …PREPROC_OUT_ZERO_HDR_OK = 4 # -> Both preprocessors produce zero out (header file is OK) 84 …PREPROC_OUT_SAME_HRD_FAILED = 5 # -> Both preprocessors produce the same, non-zero output (… [all …]
|
/hal_espressif-2.7.6/tools/kconfig_new/ |
D | prepare_kconfig_files.py | 9 # http:#www.apache.org/licenses/LICENSE-2.0 29 - COMPONENT_KCONFIGS, 30 - COMPONENT_KCONFIGS_SOURCE_FILE, 31 - COMPONENT_KCONFIGS_PROJBUILD, 32 - COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE. 35 - COMPONENT_KCONFIGS_SOURCE_FILE, 36 - COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE, 48 return var[1:-1] if len(var) > 0 and (var[0], var[-1]) == ('"',) * 2 else var 53 with open(config_file, 'r', encoding='utf-8') as f: 63 with open(config_file, 'w', encoding='utf-8') as f: [all …]
|
/hal_espressif-2.7.6/examples/common_components/qrcode/ |
D | qrcodegen.h | 5 * https://www.nayuki.io/page/qr-code-generator-library 13 * - The above copyright notice and this permission notice shall be included in 15 * - The Software is provided "as is", without warranty of any kind, express or 37 * This library creates QR Code symbols, which is a type of two-dimension barcode. 45 * - High level: Take the payload data and call qrcodegen_encodeText() or qrcodegen_encodeBinary(). 46 * - Low level: Custom-make the list of segments and call 52 /*---- Enum and struct types----*/ 73 qrcodegen_Mask_AUTO = -1, 100 * The mid-level way to create a segment is to take the payload data 102 * The low-level way to create a segment is to custom-make the bit buffer [all …]
|
/hal_espressif-2.7.6/components/fatfs/src/ |
D | ffconf.h | 3 /*---------------------------------------------------------------------------/ 5 /---------------------------------------------------------------------------*/ 9 /*---------------------------------------------------------------------------/ 11 /---------------------------------------------------------------------------*/ 14 /* This option switches read-only configuration. (0:Read/Write or 1:Read-only) 15 / Read-only configuration removes writing API functions, f_write(), f_sync(), 34 / 1: Enable without LF-CRLF conversion. 35 / 2: Enable with LF-CRLF conversion. */ 69 /*---------------------------------------------------------------------------/ 71 /---------------------------------------------------------------------------*/ [all …]
|
/hal_espressif-2.7.6/examples/build_system/cmake/import_lib/main/ |
D | sample.xml | 1 <?xml version="1.0" encoding="UTF-8"?>
|
/hal_espressif-2.7.6/tools/ci/config/ |
D | host-test.yml | 4 image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG 6 - host_test 11 - .host_test_template 12 - .rules:labels:fuzzer_test-weekend_test-only 13 image: $CI_DOCKER_REGISTRY/afl-fuzzer-test 17 - ${FUZZER_TEST_DIR}/out/crashes 18 - ${FUZZER_TEST_DIR}/fuzz_output.log 21 - export AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 && export AFL_SKIP_CPUFREQ=1 22 - cd ${FUZZER_TEST_DIR} 24 …- ( ( make ${FUZZER_PARAMS} fuzz | tee fuzz_output.log | grep -v '\(Fuzzing test case\|Entering qu… [all …]
|
/hal_espressif-2.7.6/docs/zh_CN/ |
D | conf.py | 1 # -*- coding: utf-8 -*- 5 # Uses ../conf_common.py for most non-language-specific settings. 7 # Importing conf_common adds all the non-language-specific 18 project = u'ESP-IDF 编程指南' 19 copyright = u'2016 - 2021 乐鑫信息科技(上海)股份有限公司'
|
/hal_espressif-2.7.6/docs/en/ |
D | conf.py | 1 # -*- coding: utf-8 -*- 5 # Uses ../conf_common.py for most non-language-specific settings. 7 # Importing conf_common adds all the non-language-specific 18 project = u'ESP-IDF Programming Guide' 19 copyright = u'2016 - 2021, Espressif Systems (Shanghai) Co., Ltd'
|
/hal_espressif-2.7.6/tools/ |
D | gen_esp_err_to_name.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 43 # tcpip_adapter in compatibility mode from 4.1 (errors reused in esp-netif) 67 - name - error string 68 - file - relative path inside the IDF project to the file which defines this error 69 - include_as - (optional) overwrites the include determined from file 70 - comment - (optional) comment for the error 71 - rel_str - (optional) error string which is a base for the error 72 - rel_off - (optional) offset in relation to the base error 92 return -1 102 return -1 [all …]
|