Home
last modified time | relevance | path

Searched +full:driver +full:- +full:bar (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-latest/tests/kernel/device/src/
Dabstract_driver.c4 * SPDX-License-Identifier: Apache-2.0
14 /* define individual driver A */
15 static int my_driver_A_do_this(const struct device *dev, int foo, int bar) in my_driver_A_do_this() argument
17 return foo + bar; in my_driver_A_do_this()
35 /* define individual driver B */
36 static int my_driver_B_do_this(const struct device *dev, int foo, int bar) in my_driver_B_do_this() argument
38 return foo - bar; in my_driver_B_do_this()
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
45 * Verify zephyr device driver apis with different device types
57 * Validates device binding for an existing and a non-existing device object.
61 * Validates three kinds situations of driver object:
62 * 1. A non-existing device object.
74 /* Validates device binding for a non-existing device object */ in ZTEST()
111 * @brief Test device binding for non-existing device
113 * Validates binding of a random device driver(non-defined driver) named
138 * lead to system crash in TrustZone enabled Non-Secure builds. in ZTEST_USER()
165 rp->pre_kernel = pre_kernel; in add_init_record()
[all …]
/Zephyr-latest/doc/kernel/drivers/
Dindex.rst3 Device Driver Model
9 driver is available depends on the board and the driver.
15 Each type of driver (e.g. UART, SPI, I2C) is supported by a generic type API.
17 In this model the driver fills in the pointer to the structure containing the
18 function pointers to its API functions during driver initialization. These
24 :alt: Device Driver Model
32 * **Interrupt controller**: This device driver is used by the kernel's
35 * **Timer**: This device driver is used by the kernel's system clock and
38 * **Serial communication**: This device driver is used by the kernel's
41 * **Entropy**: This device driver provides a source of entropy numbers
[all …]
/Zephyr-latest/drivers/sensor/honeywell/mpr/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
12 Enable driver for MPR pressure sensor.
53 bool "bar"
/Zephyr-latest/doc/build/dts/
Dphandles.rst1 .. _dt-phandles:
19 .. code-block:: DTS
22 lbl_a: node-1 {};
23 lbl_b: lbl_c: node-2 {};
28 - ``/node-1`` as ``&lbl_a``
29 - ``/node-2`` as either ``&lbl_b`` or ``&lbl_c``
40 :ref:`dt-bindings-properties` in the devicetree bindings documentation.
47 You can use phandles to refer to ``node-b`` from ``node-a``, where ``node-b``
48 is related to ``node-a`` in some way.
50 One common example is when ``node-a`` represents some hardware that
[all …]
Dbindings-upstream.rst1 .. _dt-writing-bindings:
21 Zephyr aims for devicetree :ref:`dt-source-compatibility`. Therefore, if there
24 justify any Zephyr-specific divergences.
28 - There is an existing binding in the mainline Linux kernel. See
32 - Your hardware vendor provides an official binding outside of the Linux
48 https://docs.kernel.org/devicetree/bindings/writing-bindings.html
55 - For example, a binding for compatible ``vnd,foo`` must be named ``vnd,foo.yaml``.
56 - If the binding is bus-specific, you can append the bus to the file name;
57 for example, if the binding YAML has ``on-bus: bar``, you may name the file
58 ``vnd,foo-bar.yaml``.
[all …]
Dhowtos.rst1 .. _dt-howtos:
6 This page has step-by-step advice for getting things done with devicetree.
8 .. tip:: See :ref:`dt-trouble` for troubleshooting advice.
10 .. _get-devicetree-outputs:
15 A board's devicetree (:ref:`BOARD.dts <devicetree-in-out-files>`) pulls in
26 You can build :zephyr:code-sample:`hello_world` to see the "base" devicetree for your board
27 without any additional changes from :ref:`overlay files <dt-input-files>`.
30 :zephyr:code-sample:`hello_world`:
32 .. code-block:: sh
34 # --cmake-only here just forces CMake to run, skipping the
[all …]
Dapi-usage.rst1 .. _dt-from-c:
8 :ref:`devicetree-intro` and :ref:`dt-bindings`. See :ref:`dt-reference` for
26 .. _dt-node-identifiers:
43 label <dt-node-labels>`. Node labels are often provided by SoC :file:`.dtsi`
50 :zephyr:code-sample:`blinky`, which uses the ``led0`` alias) that need to
72 .. _dt-node-main-ex:
77 .. literalinclude:: main-example.dts
79 :start-after: start-after-here
83 - ``DT_PATH(soc, i2c_40002000)``
84 - ``DT_NODELABEL(i2c1)``
[all …]
Dintro-syntax-structure.rst1 .. _dt-syntax:
6 As the name indicates, a devicetree is a tree. The human-readable text format
24 .. code-block:: devicetree
26 /dts-v1/;
29 a-node {
30 subnode_nodelabel: a-sub-node {
36 The ``/dts-v1/;`` line means the file's contents are in version 1 of the DTS
37 syntax, which has replaced a now-obsolete "version 0".
46 #. A node named ``a-node``, which is a child of the root node
47 #. A node named ``a-sub-node``, which is a child of ``a-node``
[all …]
/Zephyr-latest/doc/kernel/usermode/
Dsyscalls.rst19 for supervisor-mode access only.
54 .. code-block:: c
60 simply expands to 'static inline'. However to the post-build
88 .. code-block:: c
203 Exception to above is passing 64-bit parameters on 32-bit systems, in which case
204 64-bit parameters are split into lower and higher part and passed as two consecutive
224 a return type of API prototype declaration. This means that 64-bit value may
225 not be directly returned, from a system call to its wrapper, on 32-bit systems.
226 To solve the problem the automatically generated wrapper function defines 64-bit
231 The problem does not exist on 64-bit systems which are able to return 64-bit
[all …]
/Zephyr-latest/include/zephyr/sys/
Ddevice_mmio.h4 * SPDX-License-Identifier: Apache-2.0
13 * @defgroup device-mmio Device memory-mapped IO management
16 * Definitions and helper macros for managing driver memory-mapped
20 * including this separately may be needed for arch-level driver code
28 /* Storing MMIO addresses in RAM is a system-wide decision based on
34 * If we have PCIE enabled, this does mean that non-PCIE drivers may waste
54 * to PCIe devices, which must query the bus for BAR information.
85 * The mapped linear address will have read-write access to supervisor mode.
102 * read-write access. in device_map()
140 * @defgroup device-mmio-single Single MMIO region macros
[all …]
/Zephyr-latest/include/zephyr/drivers/pcie/
Dpcie.h4 * SPDX-License-Identifier: Apache-2.0
19 #include <zephyr/dt-bindings/pcie/pcie.h>
34 * in include/dt-bindings/pcie/pcie.h: see PCIE_BDF() and friends, since
45 * look to PCIE_ID_* macros in include/dt-bindings/pcie/pcie.h for more.
117 * Initialize PCIe-related information within a specific instance of
122 * Example for an instance of a driver belonging to the "foo" subsystem
158 * These functions are arch-, board-, or SoC-specific.
162 * @brief Read a 32-bit word from an endpoint's configuration space.
173 * @brief Write a 32-bit word to an endpoint's configuration space.
194 /** Scan all available PCI host controllers and sub-busses */
[all …]
/Zephyr-latest/doc/build/kconfig/
Dtips.rst3 Kconfig - Tips and Best Practices
11 The official Kconfig documentation is `kconfig-language.rst
12 <https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html>`__
13 and `kconfig-macro-language.rst
14 <https://www.kernel.org/doc/html/latest/kbuild/kconfig-macro-language.html>`__.
54 a fixed machine-specific setting. Usually, such settings should be handled via
55 :ref:`devicetree <dt-guide>` instead.
62 For example, if you are writing an I2C device driver, avoid creating an option
64 controlled by. See :ref:`dt-drivers-that-depend` for alternatives.
66 Similarly, if your application depends on a hardware-specific PWM device to
[all …]
/Zephyr-latest/dts/bindings/pinctrl/
Dst,stm32-pinctrl.yaml2 # SPDX-License-Identifier: Apache-2.0
6 Based on pincfg-node.yaml binding.
8 Note: `bias-disable` and `drive-push-pull` are default pin configurations.
9 They will be applied in case no `bias-foo` or `driver-bar` properties
12 compatible: "st,stm32-pinctrl"
20 remap-pa11:
25 remap-pa12:
30 remap-pa11-pa12:
35 child-binding:
40 - name: pincfg-node.yaml
[all …]
Dst,stm32f1-pinctrl.yaml2 # SPDX-License-Identifier: Apache-2.0
6 Based on pincfg-node.yaml binding.
8 Note: `bias-disable` and `drive-push-pull` are default pin configurations.
9 They will be applied in case no `bias-foo` or `driver-bar` properties
12 compatible: "st,stm32f1-pinctrl"
20 swj-cfg:
24 - "full"
25 - "no-njtrst"
26 - "jtag-disable"
27 - "disable"
[all …]
/Zephyr-latest/doc/develop/test/
Dztest.rst1 .. _test-framework:
19 * ``suite_name`` - The name of the suite. This name must be unique within a single binary.
20 * :c:type:`ztest_suite_predicate_t` - An optional predicate function to allow choosing when the
23 * :c:type:`ztest_suite_setup_t` - An optional setup function which returns a test fixture. This
25 * :c:type:`ztest_suite_before_t` - An optional before function which will run before every single
27 * :c:type:`ztest_suite_after_t` - An optional after function which will run after every single
29 * :c:type:`ztest_suite_teardown_t` - An optional teardown function which will run at the end of
34 .. code-block:: C
41 return ((const struct test_state*)global_state)->x == 5;
51 * :c:macro:`ZTEST` ``(suite_name, test_name)`` - Which can be used to add a test by ``test_name`` t…
[all …]
/Zephyr-latest/doc/build/dts/api/
Dapi.rst10 Some of these -- the ones beginning with ``DT_INST_`` -- require a special
19 .. _devicetree-generic-apis:
33 :ref:`devicetree-property-access` API.
45 .. doxygengroup:: devicetree-generic-id
47 .. _devicetree-property-access:
52 The following general-purpose macros can be used to access node properties.
53 There are special-purpose APIs for accessing the :ref:`devicetree-ranges-property`,
54 :ref:`devicetree-reg-property` and :ref:`devicetree-interrupts-property`.
59 .. doxygengroup:: devicetree-generic-prop
61 .. _devicetree-ranges-property:
[all …]
/Zephyr-latest/include/zephyr/
Ddevicetree.h2 * SPDX-License-Identifier: Apache-2.0
39 * -----------------
42 * part in DT_N_<path-id>_P_<property-id> macros, or the "prop-suf"
71 * @defgroup devicetree-generic-id Node identifiers and helpers
96 * The arguments to this macro are the names of non-root nodes in the
98 * Non-alphanumeric characters in each name must be converted to
108 * current-speed = <115200>;
119 * Example usage with DT_PROP() to get the `current-speed` property:
125 * (The `current-speed` property is also in `lowercase-and-underscores`
130 * - the first argument corresponds to a child node of the root (`soc` above)
[all …]
/Zephyr-latest/doc/develop/
Dbeyond-GSG.rst1 .. _beyond-gsg:
6 The :ref:`getting_started` gives a straight-forward path to set up
11 .. _python-pip:
22 ``--user`` flag to the ``pip3`` command when installing new packages. This is
25 information about pip\ [#pip]_, including `information on -\\-user`_.
27 - On Linux, make sure ``~/.local/bin`` is at the front of your :envvar:`PATH`
28 :ref:`environment variable <env_vars>`, or programs installed with ``--user``
29 won't be found. Installing with ``--user`` avoids conflicts between pip
30 and the system package manager, and is the default on Debian-based
33 - On macOS, `Homebrew disables -\\-user`_.
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-3.4.rst17 * USB device controller API (UDC API) and nRF USBD controller driver.
20 * Added Power Delivery Source Support to the USB-C Stack.
22 * Cache API functions are now fully in-lined by compilers.
23 * Added an API for real-time clocks (RTC).
29 - Introduction of 3 new test harnesses into twister supporting pyTest,
31 - Transitioning to new Ztest API was completed and legacy Ztest was deprecated.
46 * CVE-2023-1901: Under embargo until 2023-07-04
48 * CVE-2023-1902: Under embargo until 2023-07-04
67 +--------------------------------------------------+
69 +--------------------------------------------------+
[all …]
Drelease-notes-4.0.rst15 is now the standard way to provide device-specific protection to data at rest. (:github:`76222`)
18 :ref:`ZMS <zms_api>` is a new key-value storage subsystem compatible with all non-volatile storage
23 A new :ref:`comparator<comparator_api>` device driver subsystem for analog comparators has been
25 runtime configuration through vendor specific APIs. Initially the :dtcompatible:`nordic,nrf-comp`,
26 :dtcompatible:`nordic,nrf-lpcomp` and :dtcompatible:`nxp,kinetis-acmp` are supported.
30 :ref:`stepper<stepper_api>` device driver subsystem, which also comes with shell support.
31 Initially implemented drivers include a simple :dtcompatible:`zephyr,gpio-steppers` and a complex
32 sensor-less stall-detection capable with integrated ramp-controller :dtcompatible:`adi,tmc5041`.
35 A new :ref:`haptics_api` device driver subsystem allows unified access to haptic controllers,
50 directory for :zephyr:code-sample-category:`code samples <samples>`.
[all …]
/Zephyr-latest/cmake/modules/
Dextensions.cmake1 # SPDX-License-Identifier: Apache-2.0
14 # 1. Zephyr-aware extensions
21 # 2. Kconfig-aware extensions
23 # 3. CMake-generic extensions
44 # 1. Zephyr-aware extensions
49 # "zephyr". zephyr is a catch-all CMake library for source files that
52 # [0] https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html
66 # As a very high-level introduction here are two call graphs that are
72 # zephyr_library_compile_options() --> target_compile_options()
75 # zephyr_cc_option() ---> target_cc_option()
[all …]
/Zephyr-latest/drivers/espi/
Despi_mchp_xec.c4 * SPDX-License-Identifier: Apache-2.0
34 * length specified is non-zero.
116 * --------------------------------------------------------------------------------|
118 * --------------------------------------------------------------------------------|
120 * --------------------------------------------------------------------------------|
127 * --------------------------------------------------------------------------------|
129 * --------------------------------------------------------------------------------|
231 uint8_t cap0 = ESPI_CAP_REGS->GLB_CAP0; in espi_xec_configure()
232 uint8_t cap1 = ESPI_CAP_REGS->GLB_CAP1; in espi_xec_configure()
239 switch (cfg->max_freq) { in espi_xec_configure()
[all …]
Despi_mchp_xec_v2.c5 * SPDX-License-Identifier: Apache-2.0
16 #include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h>
40 * length specified is non-zero.
61 ((struct espi_iom_regs *)ESPI_XEC_CONFIG(dev)->base_addr)
64 ((struct espi_msvw_ar_regs *)(ESPI_XEC_CONFIG(dev)->vw_base_addr))
70 (ESPI_XEC_CONFIG(dev)->vw_base_addr + ESPI_XEC_SMVW_REG_OFS))
77 * ------------------------------------------------------------------------|
79 * ------------------------------------------------------------------------|
81 * ------------------------------------------------------------------------|
88 * ------------------------------------------------------------------------|
[all …]
/Zephyr-latest/soc/intel/intel_adsp/tools/
Dcavstool.py3 # SPDX-License-Identifier: Apache-2.0
19 log = logging.getLogger("cavs-fw")
23 HUGEPAGE_FILE = "/dev/hugepages/cavs-fw-dma.tmp."
28 # Window 1 is the IPC "inbox" (host-writable memory, just 384 bytes currently)
30 # Window 3 is winstream-formatted log output
43 # pylint: disable=duplicate-code
106 self.regs.LVI = self.n_bufs - 1
214 p = runx(f"grep -iEl 'PCI_CLASS=40(10|38)0' /sys/bus/pci/devices/*/uevent")
217 # Platform/quirk detection. ID lists cribbed from the SOF kernel driver
226 # Check sysfs for a loaded driver and remove it
[all …]

12