/Zephyr-latest/tests/subsys/pm/power_states_api/boards/ |
D | native_sim.overlay | 4 * SPDX-License-Identifier: Apache-2.0 10 cpu-power-states = <&state0 &state1 &state2 &state3>; 13 power-states { 15 compatible = "zephyr,power-state"; 16 power-state-name = "suspend-to-idle"; 17 min-residency-us = <10000>; 18 exit-latency-us = <100>; 22 compatible = "zephyr,power-state"; 23 power-state-name = "standby"; 24 min-residency-us = <20000>; [all …]
|
/Zephyr-latest/dts/bindings/base/ |
D | pm.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 # Properties for Power Management (PM) 7 wakeup-source: 19 zephyr,pm-device-runtime-auto: 22 Automatically configure the device for runtime power management after the 25 zephyr,disabling-power-states: 28 List of power states that will disable this device power.
|
/Zephyr-latest/doc/services/pm/ |
D | device.rst | 1 Device Power Management 7 Device power management (PM) on Zephyr is a feature that enables devices to 10 selected, device drivers implementing power management will be able to take 11 advantage of the device power management subsystem. 13 Zephyr supports two methods of device power management: 15 - :ref:`Device Runtime Power Management <pm-device-runtime-pm>` 16 - :ref:`System-Managed Device Power Management <pm-device-system-pm>` 18 .. _pm-device-runtime-pm: 20 Device Runtime Power Management 23 Device runtime power management involves coordinated interaction between [all …]
|
/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_tc_common.c | 4 * SPDX-License-Identifier: Apache-2.0 24 struct usbc_port_data *data = dev->data; in tc_subsys_init() 25 struct tc_sm_t *tc = data->tc; in tc_subsys_init() 27 /* Save the port device object so states can access it */ in tc_subsys_init() 28 tc->dev = dev; in tc_subsys_init() 35 * @brief Runs the Type-C layer 39 struct usbc_port_data *data = dev->data; in tc_run() 40 const struct device *tcpc = data->tcpc; in tc_run() 41 struct tc_sm_t *tc = data->tc; in tc_run() 46 data->tc_enabled = true; in tc_run() [all …]
|
/Zephyr-latest/drivers/led/ |
D | is31fl3733.c | 2 * Copyright 2022-2023 Daniel DeGrasse <daniel@degrasse.com> 4 * SPDX-License-Identifier: Apache-2.0 70 const struct is31fl3733_config *config = dev->config; in is31fl3733_select_page() 71 struct is31fl3733_data *data = dev->data; in is31fl3733_select_page() 74 if (data->selected_page == page) { in is31fl3733_select_page() 80 ret = i2c_reg_write_byte_dt(&config->bus, CMD_LOCK_REG, CMD_LOCK_UNLOCK); in is31fl3733_select_page() 87 ret = i2c_reg_write_byte_dt(&config->bus, CMD_SEL_REG, page); in is31fl3733_select_page() 92 data->selected_page = page; in is31fl3733_select_page() 99 const struct is31fl3733_config *config = dev->config; in is31fl3733_led_set_brightness() 104 return -EINVAL; in is31fl3733_led_set_brightness() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | charger.h | 4 * SPDX-License-Identifier: Apache-2.0 107 * Reserved to demark downstream custom properties - use this value as the actual value may 124 * @brief External supply states 136 * @brief Charging states 178 * The charger device is being bypassed and the power conversion 322 * @brief Callback API enabling or disabling a charge cycle. 355 const struct charger_driver_api *api = (const struct charger_driver_api *)dev->api; in z_impl_charger_get_prop() 357 return api->get_property(dev, prop, val); in z_impl_charger_get_prop() 376 const struct charger_driver_api *api = (const struct charger_driver_api *)dev->api; in z_impl_charger_set_prop() 378 return api->set_property(dev, prop, val); in z_impl_charger_set_prop() [all …]
|
D | counter.h | 5 * SPDX-License-Identifier: Apache-2.0 262 (const struct counter_config_info *)dev->config; in z_impl_counter_is_counting_up() 264 return config->flags & COUNTER_CONFIG_INFO_COUNT_UP; in z_impl_counter_is_counting_up() 279 (const struct counter_config_info *)dev->config; in z_impl_counter_get_num_of_channels() 281 return config->channels; in z_impl_counter_get_num_of_channels() 297 (const struct counter_config_info *)dev->config; in z_impl_counter_get_frequency() 299 (struct counter_driver_api *)dev->api; in z_impl_counter_get_frequency() 301 return api->get_freq ? api->get_freq(dev) : config->freq; in z_impl_counter_get_frequency() 350 (const struct counter_config_info *)dev->config; in z_impl_counter_get_max_top_value() 352 return config->max_top_value; in z_impl_counter_get_max_top_value() [all …]
|
/Zephyr-latest/tests/subsys/openthread/ |
D | radio_test.c | 4 * SPDX-License-Identifier: Apache-2.0 18 #include <platform-zephyr.h> 23 * @brief Tests for the radio.c - OpenThread radio api 111 zassert_equal(otPlatRadioReceiveDone_expected_aframe.mChannel, aFrame->mChannel); in otPlatRadioReceiveDone() 112 zassert_equal(otPlatRadioReceiveDone_expected_aframe.mLength, aFrame->mLength); in otPlatRadioReceiveDone() 113 zassert_mem_equal(otPlatRadioReceiveDone_expected_aframe.mPsdu, aFrame->mPsdu, in otPlatRadioReceiveDone() 114 aFrame->mLength, NULL); in otPlatRadioReceiveDone() 160 const int16_t energy = -94; in ZTEST() 192 const int16_t energy = -94; in ZTEST() 196 scan_mock_fake.return_val = -EBUSY; in ZTEST() [all …]
|
/Zephyr-latest/kernel/include/ |
D | kernel_arch_interface.h | 4 * SPDX-License-Identifier: Apache-2.0 11 * Not all architecture-specific defines are here, APIs that are used 30 * @defgroup arch-timing Architecture timing APIs 35 * Architecture-specific implementation of busy-waiting 45 * @defgroup arch-threads Architecture thread APIs 46 * @ingroup arch-interface 50 /** Handle arch-specific logic for setting up new threads 52 * The stack and arch-specific thread state variables must be set up 64 * randomization and thread-local storage. 66 * Fields in thread->base will be initialized when this is called. [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ |
D | Kconfig.ll_sw_split | 3 # Copyright (c) 2016-2017 Nordic Semiconductor ASA 4 # SPDX-License-Identifier: Apache-2.0 120 # Hidden, Controller's Co-Operative high priority Rx thread stack size. 125 # Hidden, Controller's Co-Operative Rx thread stack size. 152 https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers 168 Legacy Non-Directed Advertising mode. 180 zero-based numbering. When using with Zephyr host this option can be 233 module-str = "Bluetooth Controller ISO-AL" 237 bool "ISO-AL verbose debug logging" 241 Use this option to enable ISO-AL verbose debug logging. [all …]
|
/Zephyr-latest/doc/releases/ |
D | release-notes-3.7.rst | 10 This release is the last non-maintenance 3.x release and, as such, will be the next 18 * A long-awaited :ref:`HTTP Server <http_server_interface>` library, and associated service API, 21 * :ref:`POSIX support <posix_support>` has been extended, with most Options of the IEEE 1003-2017 25 * Bluetooth Host has been extended with support for the Nordic UART Service (NUS), Hands-free Audio 29 :ref:`read-then-decode approach <sensor-read-and-decode>` that enables more types of sensors and 35 * Trusted Firmware-M (TF-M) 2.1.0 and Mbed TLS 3.6.0 have been integrated into Zephyr. 39 1588) allows to synchronize time across devices with sub-microsecond accuracy. 52 * 1-Wire 71 :ref:`pinctrl-guide` for more details. 88 * CVE-2024-3077 `Zephyr project bug tracker GHSA-gmfv-4vfh-2mh8 [all …]
|
D | release-notes-3.0.rst | 22 * CVE-2021-3835: `Zephyr project bug tracker GHSA-fm6v-8625-99jf 23 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-fm6v-8625-99jf>`_ 25 * CVE-2021-3861: `Zephyr project bug tracker GHSA-hvfp-w4h8-gxvj 26 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hvfp-w4h8-gxvj>`_ 28 * CVE-2021-3966: `Zephyr project bug tracker GHSA-hfxq-3w6x-fv2m 29 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hfxq-3w6x-fv2m>`_ 36 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_. 53 * Added ``ranges`` and ``dma-ranges`` as invalid property to be used with DT_PROP_LEN() 58 CRC-16-ANSI checksum. A new function, :c:func:`crc16_reflect`, has been 69 * The following Kconfig options related to radio front-end modules (FEMs) were [all …]
|
D | release-notes-2.7.rst | 17 * Support for M-Profile Vector Extensions (MVE) on ARMv8.1-M 18 * Improved thread safety for Newlib and C++ on SMP-capable systems 20 * New Action-based Power Management API 23 * Linker Support for Tightly-Coupled Memory in RISC-V 25 * Support for extended PCI / PCIe capabilities, improved MIS-X support 33 * The kernel now supports both 32- and 64-bit architectures 36 * We added support for Point-to-Point Protocol (PPP) 37 * We added support for UpdateHub, an end-to-end solution for over-the-air device updates 38 * We added support for ARM Cortex-R Architecture 40 * Expanded support for ARMv6-M architecture [all …]
|
D | release-notes-3.6.rst | 12 * New :ref:`GNSS subsystem <gnss_api>` added, enabling geo-awareness in Zephyr applications. 13 * New API and drivers introduced for interfacing with :ref:`keyboard matrices <gpio-kbd>`. 16 * Integrated Trusted Firmware-M (TF-M) 2.0, including an update to Mbed TLS 3.5.2. 23 * Over 30 new supported boards, spanning all Zephyr-supported architectures. 37 * CVE-2023-5779 `Zephyr project bug tracker GHSA-7cmj-963q-jj47 38 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-7cmj-963q-jj47>`_ 40 * CVE-2023-6249 `Zephyr project bug tracker GHSA-32f5-3p9h-2rqc 41 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-32f5-3p9h-2rqc>`_ 43 * CVE-2023-6749 `Zephyr project bug tracker GHSA-757h-rw37-66hw 44 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-757h-rw37-66hw>`_ [all …]
|
D | release-notes-3.1.rst | 61 * Split CAN classic and CAN-FD APIs: 77 * STM32H7: :kconfig:option:`CONFIG_NOCACHE_MEMORY` is no longer responsible for disabling 90 was moved from Kconfig to :ref:`devicetree <dt-guide>`. 91 See the :dtcompatible:`st,stm32f1-pinctrl` devicetree binding for more information. 182 * MIPI-DSI 184 * Added a :ref:`MIPI-DSI api <mipi_dsi_api>`. This is an experimental API, 196 * Added support for enabling/disabling CAN-FD mode at runtime using :c:macro:`CAN_MODE_FD`. 203 * Added support for disabling Bluetooth, including a new ``bt_disable()`` API 220 * Added support for Provisioners over PB-GATT 231 * Implemented ISO-AL TX unframed fragmentation [all …]
|
D | release-notes-2.6.rst | 13 * Added support for 64-bit ARCv3 14 * Split ARM32 and ARM64, ARM64 is now a top-level architecture 15 * Added initial support for Arm v8.1-m and Cortex-M55 19 * Device runtime power management (PM), former IDLE runtime, was 22 https://github.com/zephyrproject-rtos/example-application 34 * CVE-2021-3581: Under embargo until 2021-09-04 41 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_. 46 * Driver APIs now return ``-ENOSYS`` if optional functions are not implemented. 47 If the feature is not supported by the hardware ``-ENOTSUP`` will be returned. 48 Formerly ``-ENOTSUP`` was returned for both failure modes, meaning this change [all …]
|
D | release-notes-3.4.rst | 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 +--------------------------------------------------+ 71 +--------------------------------------------------+ [all …]
|
D | release-notes-3.3.rst | 14 * Introduced :ref:`USB-C <usbc_api>` device stack with PD (power delivery) 17 CMSIS-DSP as the default backend. 30 * CVE-2023-0359: Under embargo until 2023-04-20 32 * CVE-2023-0779: Under embargo until 2023-04-22 51 allow disabling sync reports, and enable sync report filtering. these two 66 removed in favor of new :dtcompatible:`zephyr,flash-disk` devicetree binding. 71 * Starting from this release ``zephyr-`` prefixed tags won't be created 82 image states). Use of a truncated hash or non-sha256 hash will still work 88 registration function at boot-up. If applications register this then 93 application code, these will now automatically be registered at boot-up (this [all …]
|
D | release-notes-3.5.rst | 38 * CVE-2023-3725 `Zephyr project bug tracker GHSA-2g3m-p6c7-8rr3 39 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-2g3m-p6c7-8rr3>`_ 41 * CVE-2023-4257 `Zephyr project bug tracker GHSA-853q-q69w-gf5j 42 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-853q-q69w-gf5j>`_ 44 * CVE-2023-4258 `Zephyr project bug tracker GHSA-m34c-cp63-rwh7 45 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-m34c-cp63-rwh7>`_ 47 * CVE-2023-4259 `Zephyr project bug tracker GHSA-gghm-c696-f4j4 48 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gghm-c696-f4j4>`_ 50 * CVE-2023-4260 `Zephyr project bug tracker GHSA-gj27-862r-55wh 51 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gj27-862r-55wh>`_ [all …]
|
D | release-notes-3.2.rst | 13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`). 15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`. 31 * CVE-2022-2993: Under embargo until 2022-11-03 33 * CVE-2022-2741: Under embargo until 2022-10-14 56 This definition can be used by third-party code to compile code conditional 58 Therefore, any third-party code integrated using the Zephyr build system will 91 changed from ``-ENETDOWN`` to ``-ENETUNREACH``. A return value of ``-ENETDOWN`` now indicates 129 * Removed support for configuring the CAN-FD maximum DLC value via Kconfig 156 valid for specific bindings to specify like :dtcompatible:`gpio-leds` and 157 :dtcompatible:`fixed-partitions`. [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | ieee802154_radio.h | 5 * SPDX-License-Identifier: Apache-2.0 12 * @note All references to the standard in this file cite IEEE 802.15.4-2020. 38 * @details This API provides a common representation of vendor-specific 44 * - a basic, mostly PHY-level driver API to be implemented by all drivers, 45 * - several optional MAC-level extension points to offload performance 51 * offloading to vendor-specific hardware or firmware features may be required 56 * Whether or not MAC-level offloading extension points need to be implemented 60 * @note All section, table and figure references are to the IEEE 802.15.4-2020 67 * @name IEEE 802.15.4-2020, Section 6: MAC functional description 90 * @name IEEE 802.15.4-2020, Section 8: MAC services [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | Kconfig | 6 # SPDX-License-Identifier: Apache-2.0 61 module-dep = NET_LOG 62 module-str = Log level for PMTU 63 module-help = Enables PMTU to output debug messages. 80 Enables TCP/IP stack to be offload to a co-processor. 92 module-dep = NET_LOG 93 module-str = Log level for offload layer 94 module-help = Enables offload layer to output debug messages. 136 Connect to host system via Qemu's built-in User Networking support. This 149 information etc. This string is appended to the QEMU "-net user" option. [all …]
|
/Zephyr-latest/include/zephyr/ |
D | kernel.h | 4 * SPDX-License-Identifier: Apache-2.0 53 #define K_PRIO_COOP(x) (-(CONFIG_NUM_COOP_PRIORITIES - (x))) 56 #define K_HIGHEST_THREAD_PRIO (-CONFIG_NUM_COOP_PRIORITIES) 60 #define K_LOWEST_APPLICATION_THREAD_PRIO (K_LOWEST_THREAD_PRIO - 1) 245 * bits, arch-specific use high bits. 289 * from within a user-provided callback they have been invoked. 290 * Effectively it serves as a tiny bit of zero-overhead TLS data. 328 /* end - thread options */ 335 * - @ref K_USER allocate a userspace thread (requires `CONFIG_USERSPACE=y`) 353 * @retval -EBUSY if the thread stack is in use. [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | hci_core.c | 1 /* hci_core.c - HCI core Bluetooth handling */ 4 * Copyright (c) 2017-2021 Nordic Semiconductor ASA 5 * Copyright (c) 2015-2016 Intel Corporation 7 * SPDX-License-Identifier: Apache-2.0 77 /* The zephyr,bt-hci chosen property is mandatory, except for unit tests */ 149 state->target = target; in bt_hci_cmd_state_set_init() 150 state->bit = bit; in bt_hci_cmd_state_set_init() 151 state->val = val; in bt_hci_cmd_state_set_init() 152 cmd(buf)->state = state; in bt_hci_cmd_state_set_init() 184 if (handler->event != event) { in handle_event_common() [all …]
|