Home
last modified time | relevance | path

Searched +full:python +full:- +full:files (Results 1 – 25 of 118) sorted by relevance

12345

/Zephyr-latest/doc/contribute/documentation/
Dgeneration.rst11 .. _documentation-overview:
18 using Sphinx to create a formatted stand-alone website. Developers can
19 view this content either in its raw form as .rst markup files, or you
30 * ReStructuredText source files used to generate documentation found at the
36 * Doxygen-generated material used to create all API-specific documents
39 * Script-generated material for kernel configuration options based on Kconfig
40 files found in the source code tree
51 rtd [shape="rectangle" label="read-the-docs\ntheme"]
56 images -> sphinx
57 rst -> sphinx
[all …]
/Zephyr-latest/doc/build/dts/
Dintro-input-output.rst1 .. _devicetree-in-out-files:
3 Input and output files
6 This section describes the input and output files shown in the figure in
7 :ref:`devicetree-scope-purpose` in more detail.
10 :figclass: align-center
12 Devicetree input (green) and output (yellow) files
14 .. _dt-input-files:
16 Input files
19 There are four types of devicetree input files:
21 - sources (``.dts``)
[all …]
/Zephyr-latest/doc/develop/test/twister/
Dtwister_blackbox.rst7 to understand existing files and create their own. All developers should fix any tests
14 Twister blackbox tests are written in python, using the ``pytest`` library.
27 :language: python
35 .. code-block:: console
37 twister -i --outdir $OUTDIR -T $TEST_DATA/tests -y --level $LEVEL
38 --test-config $TEST_DATA/test_config.yaml -p qemu_x86 -p frdm_k64f
40 It presumes a CLI with the ``zephyr-env.sh`` or ``zephyr-env.cmd`` already run.
48 ``twister-out`` directories. Most of the time, we will use the ``out_path`` fixture in conjunction
49 with ``--outdir`` flag (L52) to keep test-generated files in temporary directories.
50 Typical files read in blackbox tests are ``testplan.json`` , ``twister.xml`` and ``twister.log`` .
[all …]
/Zephyr-latest/cmake/modules/
Ddts.cmake1 # SPDX-License-Identifier: Apache-2.0
6 include(python)
13 # various build stages, as well as to other arbitrary Python scripts:
15 # - To Zephyr and application source code files, as a C macro API
18 # - To other arbitrary Python scripts (like twister) using a
19 # serialized edtlib.EDT object in Python's pickle format
20 # (https://docs.python.org/3/library/pickle.html)
22 # - To users as a final devicetree source (DTS) file which can
25 # - To CMake files, after this module has finished running, using
28 # - To Kconfig files, both using some Kconfig symbols we generate
[all …]
Duser_cache.cmake1 # SPDX-License-Identifier: Apache-2.0
11 # Only data that can be safely re-generated should be placed in this cache.
15 # See https://github.com/zephyrproject-rtos/zephyr/pull/7102 for details.
20 # - USER_CACHE_DIR: User cache directory in use.
26 # use only and may be removed, renamed, or re-purposed without prior notice.
30 include(python)
69 # The directory is write-able
80 # files. Prefer a directory outside of the git repository because it
83 # Zephyr's cache files go in the "zephyr" subdirectory of the
94 # write cache files to.
[all …]
Dzephyr_default.cmake1 # SPDX-License-Identifier: Apache-2.0
23 # instance CMake 3.21 links object files in a different order compared
40 # Find and execute application-specific build configuration
53 # Test and error-out if we are affected by the PyPI CMake 3.22.1 / 3.22.2 bug
55 # It seems only pip-installed builds are affected so we test to see if we are affected
60 "https://gitlab.kitware.com/cmake/cmake/-/issues/23187\n"
61 "https://github.com/scikit-build/cmake-python-distributions/issues/221\n"
69 list(APPEND zephyr_cmake_modules python)
93 # Also create the Kconfig binary dir for generated Kconf files.
105 # Include board specific device-tree flags before parsing.
/Zephyr-latest/scripts/pylib/pytest-twister-harness/
D.gitignore1 # Byte-compiled / optimized / DLL files
7 .Python
9 develop-eggs/
20 pip-wheel-metadata/
21 share/python-wheels/
22 *.egg-info/
/Zephyr-latest/scripts/dts/
Dgen_edt.py3 # Copyright (c) 2019 - 2020 Nordic Semiconductor ASA
6 # SPDX-License-Identifier: Apache-2.0
9 # (.dts) file. Information from binding files in YAML format is used
12 # Bindings are files that describe devicetree nodes. Devicetree nodes are
17 # Note: Do not access private (_-prefixed) identifiers from edtlib here (and
28 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'python-devicetree',
48 "-Wno-simple_bus_reg" not in args.dtc_flags,
57 with open(args.dts_out, "w", encoding="utf-8") as f:
63 def parse_args() -> argparse.Namespace:
64 # Returns parsed command-line arguments
[all …]
Dgen_driver_kconfig_dts.py5 # SPDX-License-Identifier: Apache-2.0
14 # Use the C LibYAML parser if available, rather than the Python parser.
19 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'python-devicetree',
23 # Returns a list with the paths to all bindings (.yaml files) in
37 # Returns parsed command-line arguments
40 parser.add_argument("--kconfig-out", required=True,
42 parser.add_argument("--bindings-dirs", nargs='+', required=True,
54 return re.sub('[-,.@/+]', '_', s.upper())
72 with open(binding_path, encoding="utf-8") as f:
76 # Parsed PyYAML output (Python lists/dictionaries/strings/etc.,
[all …]
/Zephyr-latest/
D.gitlint2 # Zephyr-specific defaults are located in scripts/gitlint/zephyr_commit_rules.py
4 ignore=title-trailing-punctuation, T3, title-max-length, T1, body-hard-tab, B3, B1
5 # verbosity should be a value between 1 and 3, the commandline -v flags take precedence over this
8 ignore-merge-commits=false
9 ignore-revert-commits=false
10 ignore-fixup-commits=false
11 ignore-squash-commits=false
15 # Set the extra-path where gitlint will search for user defined rules
17 extra-path=scripts/gitlint
19 [title-max-length-no-revert]
[all …]
/Zephyr-latest/doc/build/kconfig/
Dextensions.rst8 <https://docs.kernel.org/kbuild/kconfig-language.html>`__,
11 - Default values can be applied to existing symbols without
15 .. code-block:: none
26 .. code-block:: none
37 .. code-block:: none
47 - Environment variables in ``source`` statements are expanded directly, meaning
56 <https://docs.kernel.org/kbuild/kconfig-macro-language.html>`__.
60 - The ``source`` statement supports glob patterns and includes each matching
65 .. code-block:: kconfig
69 If the pattern ``foo/bar/*/Kconfig`` matches the files
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/autopts/
Dautopts-win10.rst1 .. _autopts-win10:
20 Start -> Settings -> Update & Security -> Windows Update
24 Install Python 3
27 Download and install `Python 3 <https://www.python.org/downloads/>`_.
28 Setup was tested with versions >=3.8. Let the installer add the Python
44 Download and install `Git <https://git-scm.com/downloads>`_.
58 "C:/Program Files (x86)/Bluetooth SIG/Bluetooth PTS/PTS Driver/win64/CSRBlueCoreUSB.inf"
79 https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download
112 .. code-block::
116 Build the auto-pts tester app
[all …]
Dautopts-linux.rst1 .. _autopts-linux:
14 - Testing Zephyr Host Stack on QEMU
16 - Testing Zephyr Host Stack on :ref:`native_sim <native_sim>`
18 - Testing Zephyr combined (controller + host) build on Real hardware (such as nRF52)
33 https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download.
40 After you extract archive, you will see 2 .deb files, e.g.:
42 - JLink_Linux_V688a_x86_64.deb
44 - nRF-Command-Line-Tools_10_12_1_Linux-amd64.deb
65 Start -> Settings -> Update & Security -> Windows Update
75 ----------
[all …]
/Zephyr-latest/.github/workflows/
Dcompliance.yml6 - edited
7 - opened
8 - reopened
9 - synchronize
13 runs-on: ubuntu-22.04
16 - name: Update PATH for west
20 - name: Checkout the code
24 fetch-depth: 0
26 - name: Rebase onto the target branch
30 git config --global user.email "you@example.com"
[all …]
Dhello_world_multiplatform.yaml6 - main
7 - v*-branch
8 - collab-*
11 - main
12 - v*-branch
13 - collab-*
15 - 'scripts/**'
16 - '.github/workflows/hello_world_multiplatform.yaml'
17 - 'SDK_VERSION'
20 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
[all …]
/Zephyr-latest/doc/develop/west/
Dinstall.rst1 .. _west-install:
6 West is written in Python 3 and distributed through `PyPI`_.
11 pip3 install --user -U west
15 pip3 install -U west
18 See :ref:`python-pip` for additional clarification on using the
19 ``--user`` switch.
21 Afterwards, you can run ``pip3 show -f west`` for information on where the west
22 binary and related files were installed.
25 <clone-zephyr>`.
27 .. _west-struct:
[all …]
Dalias.rst1 .. _west-aliases:
6 West allows to add alias commands to the local, global or system configuration files.
11 full text and parsed as a new shell argument list (using the Python function
16 .. _shlex.split(): https://docs.python.org/3/library/shlex.html#shlex.split
20 .. code-block:: shell
22 west config alias.mylist "list -f '{name} {revision}'"
27 building more complex but easy-to-remember commands.
31 .. code-block:: shell
33 west config alias.update "update -o=--depth=1 -n"
37 Overriding/shadowing other or built-in commands is an advanced use case, it can lead to
[all …]
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/
DREADME.md6 classifies gestures based on accelerometer data. The code uses Python 3.7 and
12 …roject was inspired by the [Gesture Recognition Magic Wand](https://github.com/jewang/gesture-demo)
34 <table class="tfo-notebook-buttons" align="left">
39 …agic_wand_model.ipynb"><img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" />View so…
50 pip install numpy==1.16.2 tensorflow==2.0.0-beta1
55 - Random data split, which mixes different people's data together and randomly
57 - Person data split, which splits the data by person
65 $ python data_prepare.py
67 $ python data_split.py
69 $ python train.py --model CNN --person false
[all …]
/Zephyr-latest/doc/develop/getting_started/
Dinstallation_linux.rst22 use their own configuration files, most notably ``apt`` and
32 .. group-tab:: Ubuntu
34 .. code-block:: console
36 sudo apt-get update
37 sudo apt-get upgrade
39 .. group-tab:: Fedora
41 .. code-block:: console
45 .. group-tab:: Clear Linux
47 .. code-block:: console
51 .. group-tab:: Arch Linux
[all …]
/Zephyr-latest/scripts/ci/
Dcheck_compliance.py5 # SPDX-License-Identifier: Apache-2.0
57 f"{cp.stdout.decode('utf-8')}\n"
59 f"{cp.stderr.decode('utf-8')}\n")
61 return cp.stdout.decode("utf-8").rstrip()
70 return git('rev-list',
71 f'--max-count={-1 if "." in refspec else 1}', refspec).split()
74 filter_arg = (f'--diff-filter={filter}',) if filter else ()
75 paths_arg = ('--', *paths) if paths else ()
76 out = git('diff', '--name-only', *filter_arg, COMMIT_RANGE, *paths_arg)
77 files = out.splitlines()
[all …]
/Zephyr-latest/scripts/utils/
Dtwister_to_list.py2 Utility script to migrate Twister configuration files from using string-based
7 python $ZEPHYR_BASE/scripts/utils/twister_to_list.py \
8 -p path/to/zephyr-based-project
11 SPDX-License-Identifier: Apache-2.0
76 "-p", "--project", type=Path, required=True, help="Zephyr-based project path"
78 parser.add_argument("--dry-run", action="store_true", help="Dry run")
/Zephyr-latest/soc/mediatek/mt8xxx/
DCMakeLists.txt2 # SPDX-License-Identifier: Apache-2.0
19 # RIMAGE_TARGET cached (cached so that the python script can read it!)
24 # containing the .toml files for the platforms, which SOF will set on
41 COMMAND west $<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose> sign
42 --if-tool-available --tool rimage --build-dir ${CMAKE_BINARY_DIR}
/Zephyr-latest/scripts/
Dget_maintainer.py4 # SPDX-License-Identifier: Apache-2.0
7 Lists maintainers for files or commits. Similar in function to
16 ./get_maintainer.py path --help
18 This executable doubles as a Python library. Identifiers not prefixed with '_'
60 "-m", "--maintainers",
63 "the top-level repository directory is used, and must exist. "
65 "to the top-level directory.")
68 help="Available commands (each has a separate --help text)")
92 help="List files in areas")
97 help="Name of area to list files in. If not specified, all "
[all …]
/Zephyr-latest/samples/modules/canopennode/
DREADME.rst1 .. zephyr:code-sample:: canopennode
11 CANopen is an internationally standardized (`EN 50325-4`_, `CiA 301`_)
13 systems used in automation. CANopenNode is a 3rd party, open-source
17 demonstrates the use of non-volatile storage for the CANopen object
31 .. code-block:: console
33 west config manifest.project-filter +canopennode
36 Building and Running for TWR-KE18F
40 LEDs). The sample can be built and executed for the TWR-KE18F as
43 .. zephyr-app-commands::
44 :zephyr-app: samples/modules/canopennode
[all …]
/Zephyr-latest/doc/services/tfm/
Drequirements.rst1 TF-M Requirements
4 The following are some of the boards that can be used with TF-M:
6 .. list-table::
7 :header-rows: 1
9 * - Board
10 - NSPE board name
11 * - :ref:`mps2_an521_board`
12 - ``mps2/an521/cpu0/ns`` (qemu supported)
13 * - :ref:`mps3_board`
14 - ``mps3/corstone300/an547/ns`` (qemu supported)
[all …]

12345