/Zephyr-latest/doc/_extensions/zephyr/ |
D | gh_utils.py | 8 SPDX-License-Identifier: Apache-2.0 29 - ``gh_link_version``: GitHub version to use in the URL (e.g. "main") 30 - ``gh_link_base_url``: Base URL used as a prefix for generated URLs. 31 - ``gh_link_prefixes``: Mapping of pages (regex) <> GitHub prefix. 32 - ``gh_link_exclude``: List of pages (regex) that will not report a URL. Useful 33 for, e.g., auto-generated pages not in Git. 42 from pathlib import Path 50 sys.path.insert(0, str(Path(__file__).parents[3] / "scripts")) 54 ZEPHYR_BASE : Final[str] = Path(__file__).parents[3] 61 def get_page_prefix(app: Sphinx, pagename: str) -> str: [all …]
|
D | external_content.py | 6 SPDX-License-Identifier: Apache-2.0 23 - ``external_content_contents``: A list of external contents. Each entry is 25 - ``external_content_directives``: A list of directives that should be analyzed 27 - ``external_content_keep``: A list of file globs (relative to the destination 29 directory. This option can be useful for auto-generated files in the 38 from pathlib import Path 51 fname: Path, argument 52 basepath: Path, argument 55 dstpath: Path | None = None, 56 ) -> None: [all …]
|
D | doxyrunner.py | 6 SPDX-License-Identifier: Apache-2.0 16 - Doxygen build is run before Sphinx reads input files 17 - Doxyfile can be optionally pre-processed so that variables can be inserted 18 - Changes in the Doxygen input files are tracked so that Doxygen build is only 20 - Synchronizes Doxygen XML output so that even if Doxygen is run only changed, 25 - https://github.com/michaeljones/breathe/issues/420 30 - ``doxyrunner_doxygen``: Path to the Doxygen binary. 31 - ``doxyrunner_doxyfile``: Path to Doxyfile. 32 - ``doxyrunner_outdir``: Doxygen build output directory (inserted to 34 - ``doxyrunner_outdir_var``: Variable representing the Doxygen build output [all …]
|
D | api_overview.py | 2 # SPDX-License-Identifier: Apache-2.0 4 from pathlib import Path 18 version it is present - all information extracted from Doxygen XML output. 43 def visit_group(app, group, all_groups, rows, indent=0): argument 45 github_uri = "https://github.com/zephyrproject-rtos/zephyr/releases/tag/" 67 url_base = Path(app.config.api_overview_doxygen_base_url) 97 app, get_group(innergroup, all_groups), all_groups, rows, indent + 6 103 root = doxmlparser.index.parse(Path(dir_name) / "index.xml", True) 106 file_name = Path(dir_name) / f"{compound.get_refid()}.xml" 112 def generate_table(app, toplevel, groups): argument [all …]
|
D | html_redirects.py | 1 # Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD 3 # SPDX-License-Identifier: Apache-2.0 9 # http://www.apache.org/licenses/LICENSE-2.0 24 # Adapted from ideas in https://tech.signavio.com/2017/managing-sphinx-redirects 25 import os.path 35 <meta http-equiv="refresh" content="0; url=$NEWURL" /> 39 if (id && (/^[a-zA-Z\:\/0-9\_\-\.]+$/.test(id))) { 54 def setup(app): argument 55 app.add_config_value('html_redirect_pages', [], 'html') 56 app.connect('build-finished', create_redirect_pages) [all …]
|
D | link-roles.py | 3 # SPDX-License-Identifier: Apache-2.0 5 # based on http://protips.readthedocs.io/link-roles.html 10 from pathlib import Path 16 ZEPHYR_BASE: Final[str] = Path(__file__).parents[3] 35 "git describe --exact-match", shell=True, stderr=subprocess.DEVNULL 40 return output.strip().decode("utf-8") 43 def setup(app): argument 44 app.add_role("zephyr_file", modulelink("zephyr")) 45 app.add_role("zephyr_raw", modulelink("zephyr", format="raw")) 46 app.add_role("module_file", modulelink()) [all …]
|
D | doxybridge.py | 4 SPDX-License-Identifier: Apache-2.0 65 def run(self, **kwargs: Any) -> None: 76 entry = self.app.env.doxybridge_cache.get(reftype) 85 id = self.app.env.doxybridge_cache.get("macro").get(reftarget) 95 doxygen_target = f"{'_'.join(split[:-1])}.html#{split[-1][1:]}" 97 doxygen_target = str(self.app.config.doxybridge_dir) + "/html/" + doxygen_target 99 doc_dir = os.path.dirname(self.document.get("source")) 100 doc_dest = os.path.join( 101 self.app.outdir, 102 os.path.relpath(doc_dir, self.app.srcdir), [all …]
|
/Zephyr-latest/doc/_extensions/zephyr/kconfig/ |
D | __init__.py | 6 SPDX-License-Identifier: Apache-2.0 22 - kconfig_generate_db: Set to True if you want to generate the Kconfig database. 26 - kconfig_ext_paths: A list of base paths where to search for external modules 27 Kconfig files when they use ``kconfig-ext: True``. The extension will look for 38 from pathlib import Path 57 sys.path.insert(0, str(Path(__file__).parents[4] / "scripts")) 58 sys.path.insert(0, str(Path(__file__).parents[4] / "scripts/kconfig")) 65 RESOURCES_DIR = Path(__file__).parent / "static" 66 ZEPHYR_BASE = Path(__file__).parents[4] 69 def kconfig_load(app: Sphinx) -> tuple[kconfiglib.Kconfig, dict[str, str]]: [all …]
|
/Zephyr-latest/tests/boot/with_mcumgr/pytest/ |
D | test_upgrade.py | 3 # SPDX-License-Identifier: Apache-2.0 7 from pathlib import Path 18 def create_signed_image(build_dir: Path, app_build_dir: Path, version: str) -> Path: argument 19 image_to_test = Path(build_dir) / 'test_{}.signed.bin'.format( 22 Path(build_dir) / 'mcuboot' / 'zephyr' / '.config', 26 build_dir=Path(app_build_dir), 28 key_file=Path(origin_key_file), 35 def clear_buffer(dut: DeviceAdapter) -> None: 66 logger.info('Test uploaded APP image') 78 logger.info('Verify new APP is booted') [all …]
|
D | test_downgrade_prevention.py | 3 # SPDX-License-Identifier: Apache-2.0 7 from pathlib import Path 23 image version is 0.0.0 (lower than version of the original app) 31 Path(dut.device_config.app_build_dir) / 'zephyr' / '.config', 45 logger.info('Test uploaded APP image') 54 logger.info('Verify that the original APP is booted')
|
/Zephyr-latest/samples/subsys/shell/fs/ |
D | README.rst | 1 .. zephyr:code-sample:: shell-fs 3 :relevant-api: file_system_api 25 .. zephyr-app-commands:: 26 :zephyr-app: samples/subsys/shell/fs 35 .. code-block:: console 37 zephyr/zephyr.exe -help 43 --------------------------------------- 49 search path and that a 32-bit version of libfuse is installed. For more 53 .. code-block:: console 55 export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig [all …]
|
/Zephyr-latest/doc/_extensions/zephyr/doxytooltip/ |
D | __init__.py | 6 SPDX-License-Identifier: Apache-2.0 8 A simple Sphinx extension that adds JS and CSS resources to the app 12 from pathlib import Path 20 RESOURCES_DIR = Path(__file__).parent / "static" 22 def setup(app: Sphinx) -> dict[str, Any]: 23 app.config.html_static_path.append(RESOURCES_DIR.as_posix()) 25 app.add_js_file("tippy/popper.min.js") 26 app.add_js_file("tippy/tippy-bundle.umd.min.js") 28 app.add_js_file("doxytooltip.js") 29 app.add_css_file("doxytooltip.css")
|
/Zephyr-latest/scripts/west_commands/ |
D | build_helpers.py | 3 # SPDX-License-Identifier: Apache-2.0 16 from pathlib import Path 23 script_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) 24 sys.path.insert(0, os.path.join(script_dir, "pylib/build_helpers/")) 35 build.dir-fmt configuration variable is set. The current directory is 46 kwargs['source_dir'] = os.path.relpath(source_dir, cwd) 48 # no meaningful relative path possible 57 # Guess the build folder by iterating through all sub-folders from the 61 parts = Path(fmt).parts 62 b = Path('.') [all …]
|
/Zephyr-latest/scripts/west_commands/zspdx/ |
D | sbom.py | 3 # SPDX-License-Identifier: Apache-2.0 36 # create Cmake file-based API directories and query file 41 cmakeApiDirPath = os.path.join(build_dir, ".cmake", "api", "v1", "query") 42 if os.path.exists(cmakeApiDirPath): 43 if not os.path.isdir(cmakeApiDirPath): 51 # check that codemodel-v2 exists as a file, or else create it 52 queryFilePath = os.path.join(cmakeApiDirPath, "codemodel-v2") 53 if os.path.exists(queryFilePath): 54 if not os.path.isfile(queryFilePath): 104 retval = writeSPDX(os.path.join(cfg.spdxDir, "sdk.spdx"), w.docSDK) [all …]
|
/Zephyr-latest/samples/net/lwm2m_client/ |
D | README.rst | 1 .. zephyr:code-sample:: lwm2m-client 3 :relevant-api: lwm2m_api 20 …w.openmobilealliance.org/release/LightweightM2M/V1_0-20170208-A/OMA-TS-LightweightM2M-V1_0-2017020… 28 - :ref:`networking_with_eth_qemu`, :ref:`networking_with_qemu` or :ref:`networking_with_native_sim` 29 - Linux machine 30 - Leshan Demo Server (https://eclipse.org/leshan/) 38 .. list-table:: 40 * - :file:`prj.conf` 41 - This is the standard default config. 43 * - :file:`overlay-bootstrap.conf` [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | app_keys.c | 5 * SPDX-License-Identifier: Apache-2.0 31 /* Tracking of what storage changes are pending for App Keys. We track this in 63 [0 ... (CONFIG_BT_MESH_APP_KEY_COUNT - 1)] = { 82 char path[20]; in clear_app_key() local 85 snprintk(path, sizeof(path), "bt/mesh/AppKey/%x", app_idx); in clear_app_key() 86 err = settings_delete(path); in clear_app_key() 96 const struct app_key *app; in store_app_key() local 98 char path[20]; in store_app_key() local 101 snprintk(path, sizeof(path), "bt/mesh/AppKey/%x", app_idx); in store_app_key() 103 app = app_get(app_idx); in store_app_key() [all …]
|
D | cdb.c | 4 * SPDX-License-Identifier: Apache-2.0 28 /* Tracking of what storage changes are pending for App and Net Keys. We 86 [0 ... (CONFIG_BT_MESH_CDB_NODE_COUNT - 1)] = { 91 [0 ... (CONFIG_BT_MESH_CDB_SUBNET_COUNT - 1)] = { 96 [0 ... (CONFIG_BT_MESH_CDB_APP_KEY_COUNT - 1)] = { 104 * Check if an address range from addr_start for addr_start + num_elem - 1 is 106 * available after the conflicting range and -EAGAIN will be returned. 110 uint16_t addr_end = addr_start + num_elem - 1; in addr_is_free() 117 return -EINVAL; in addr_is_free() 123 if (node->addr == BT_MESH_ADDR_UNASSIGNED) { in addr_is_free() [all …]
|
/Zephyr-latest/samples/drivers/ipm/ipm_ivshmem/ |
D | README.rst | 1 .. zephyr:code-sample:: ipm-ivshmem 3 :relevant-api: ipm_interface 5 Implement inter-processor mailbox (IPM) over IVSHMEM (Inter-VM shared memory) 12 ivshmem-server needs to be available and running. The server is available in 13 Zephyr SDK or pre-built in some distributions. Otherwise, it is available in 16 ivshmem-client needs to be available as it is employed in this sample as an 17 external application. The same conditions of ivshmem-server apply to the 18 ivshmem-server, as it is also available via QEMU. 22 #. The ivshmem-server utility for QEMU can be found into the Zephyr SDK 24 ``/path/to/your/zephyr-sdk/zephyr-<version>/sysroots/x86_64-pokysdk-linux/usr/xilinx/bin/`` [all …]
|
/Zephyr-latest/soc/espressif/esp32c2/ |
D | CMakeLists.txt | 1 # SPDX-License-Identifier: Apache-2.0 22 message("ESP-IDF path: ${ESP_IDF_PATH}") 25 message("esptool path: ${ESPTOOL_PY}") 29 set(ELF2IMAGE_ARG "--ram-only-header") 34 ARGS --chip esp32c2 elf2image ${ELF2IMAGE_ARG} 35 --flash_mode dio --flash_freq 60m --flash_size ${esptoolpy_flashsize}MB 36 -o ${CMAKE_BINARY_DIR}/zephyr/${CONFIG_KERNEL_BIN_NAME}.bin 42 # get code-partition slot0 address 44 dt_reg_addr(img_0_off PATH ${dts_partition_path}) 46 # get code-partition boot address [all …]
|
/Zephyr-latest/soc/espressif/esp32c3/ |
D | CMakeLists.txt | 1 # SPDX-License-Identifier: Apache-2.0 25 message("ESP-IDF path: ${ESP_IDF_PATH}") 28 message("esptool path: ${ESPTOOL_PY}") 32 set(ELF2IMAGE_ARG "--ram-only-header") 37 ARGS --chip esp32c3 elf2image ${ELF2IMAGE_ARG} 38 --flash_mode dio --flash_freq 40m --flash_size ${esptoolpy_flashsize}MB 39 -o ${CMAKE_BINARY_DIR}/zephyr/${CONFIG_KERNEL_BIN_NAME}.bin 45 # get code-partition slot0 address 47 dt_reg_addr(img_0_off PATH ${dts_partition_path}) 49 # get code-partition boot address [all …]
|
/Zephyr-latest/soc/espressif/esp32c6/ |
D | CMakeLists.txt | 1 # SPDX-License-Identifier: Apache-2.0 25 message("ESP-IDF path: ${ESP_IDF_PATH}") 28 message("esptool path: ${ESPTOOL_PY}") 32 set(ELF2IMAGE_ARG "--ram-only-header") 37 ARGS --chip esp32c6 elf2image ${ELF2IMAGE_ARG} 38 --flash_mode dio --flash_freq 40m --flash_size ${esptoolpy_flashsize}MB 39 -o ${CMAKE_BINARY_DIR}/zephyr/${CONFIG_KERNEL_BIN_NAME}.bin 45 # get code-partition slot0 address 47 dt_reg_addr(img_0_off PATH ${dts_partition_path}) 49 # get code-partition boot address [all …]
|
/Zephyr-latest/soc/espressif/esp32s2/ |
D | CMakeLists.txt | 1 # SPDX-License-Identifier: Apache-2.0 25 message("ESP-IDF path: ${ESP_IDF_PATH}") 28 message("esptool path: ${ESPTOOL_PY}") 32 set(ELF2IMAGE_ARG "--ram-only-header") 37 ARGS --chip esp32s2 elf2image ${ELF2IMAGE_ARG} 38 --flash_mode dio --flash_freq 40m 39 --flash_size ${esptoolpy_flashsize}MB 40 -o ${CMAKE_BINARY_DIR}/zephyr/${CONFIG_KERNEL_BIN_NAME}.bin 46 # Get code-partition boot address 48 dt_reg_addr(boot_off PATH ${dts_partition_path}) [all …]
|
/Zephyr-latest/tests/drivers/sensor/ina237/ |
D | CMakeLists.txt | 2 # SPDX-License-Identifier: Apache-2.0 9 target_sources(app PRIVATE ${app_sources}) 11 # Include the INA23x driver path and unit-test path for private header inclusion
|
/Zephyr-latest/tests/drivers/sensor/ina230/ |
D | CMakeLists.txt | 2 # SPDX-License-Identifier: Apache-2.0 9 target_sources(app PRIVATE ${app_sources}) 11 # Include the INA23x driver path and unit-test path for private header inclusion
|
/Zephyr-latest/tests/application_development/gen_inc_file/ |
D | CMakeLists.txt | 1 # SPDX-License-Identifier: Apache-2.0 8 target_sources(app PRIVATE ${app_sources}) 11 # is already in the system path 15 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.inc) 16 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.partial.inc 17 --offset=100 --length=42) 18 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.gz.inc --gzip) 19 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.mtime.gz.inc 20 --gzip --gzip-mtime=42) 21 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.partial.gz.inc [all …]
|