/Zephyr-latest/tests/drivers/flash_simulator/flash_sim_impl/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/drivers/flash.h> 12 * instance of Flash Simulator device only. 64 size_t size) in test_check_pattern32() argument 70 for (off = 0; off < size; off += 4) { in test_check_pattern32() 76 "flash word at offset 0x%x has value 0x%08x, " \ in test_check_pattern32() 82 /* ret < 0 is errno; ret == 1 is bad value in flash */ 83 static int test_check_erase(const struct device *dev, off_t offset, size_t size) in test_check_erase() argument 85 uint8_t buf[FLASH_SIMULATOR_PROG_UNIT]; in test_check_erase() local 89 BUILD_ASSERT(sizeof(buf) >= FLASH_SIMULATOR_PROG_UNIT); in test_check_erase() [all …]
|
/Zephyr-latest/dts/bindings/i2c/ |
D | nordic,nrf-twim.yaml | 2 # SPDX-License-Identifier: Apache-2.0 10 TWIM by setting the node's "compatible" to "nordic,nrf-twim" 13 /* This is for TWIM0 -- change to "i2c1" for TWIM1, etc. */ 15 compatible = "nordic,nrf-twim"; 22 Note: on nRF51 SoCs, use the "nordic,nrf-twi" binding instead. 24 compatible: "nordic,nrf-twim" 26 include: ["nordic,nrf-twi-common.yaml", "memory-region.yaml"] 29 zephyr,concat-buf-size: 33 Size of a concatenation buffer that the driver is to use for merging 43 zephyr,flash-buf-max-size: [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_util.c | 4 * SPDX-License-Identifier: Apache-2.0 16 #include <zephyr/drivers/flash.h> 21 LOG_MODULE_REGISTER(flash, CONFIG_FLASH_LOG_LEVEL); 24 size_t size) in z_impl_flash_fill() argument 28 (const struct flash_driver_api *)dev->api; in z_impl_flash_fill() 29 const struct flash_parameters *fparams = api->get_parameters(dev); in z_impl_flash_fill() 33 if (sizeof(filler) < fparams->write_block_size) { in z_impl_flash_fill() 34 LOG_ERR("Size of CONFIG_FLASH_FILL_BUFFER_SIZE"); in z_impl_flash_fill() 35 return -EINVAL; in z_impl_flash_fill() 39 * broken by the size of the last chunk, that is why the check in z_impl_flash_fill() [all …]
|
/Zephyr-latest/samples/subsys/nvs/src/ |
D | main.c | 4 * 32 bit integer) and also how to read them back from flash. The reading of 7 * and writing data it also shows how data can be deleted from flash. 10 * 1. A string representing an IP-address: stored at id=1, data="192.168.1.1" 17 * At first boot the sample checks if the data is available in flash and adds 18 * the items if they are not in flash. 21 * flash. 37 * SPDX-License-Identifier: Apache-2.0 45 #include <zephyr/drivers/flash.h> 71 char buf[16]; in main() local 83 printk("Flash device %s is not ready\n", fs.flash_device->name); in main() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_nrfx_twim.c | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/dt-bindings/i2c/i2c.h> 40 struct i2c_nrfx_twim_data *dev_data = dev->data; in i2c_nrfx_twim_transfer() 41 const struct i2c_nrfx_twim_common_config *dev_config = dev->config; in i2c_nrfx_twim_transfer() 43 uint8_t *msg_buf = dev_config->msg_buf; in i2c_nrfx_twim_transfer() 45 uint16_t msg_buf_size = dev_config->msg_buf_size; in i2c_nrfx_twim_transfer() 46 uint8_t *buf; in i2c_nrfx_twim_transfer() local 49 k_sem_take(&dev_data->transfer_sync, K_FOREVER); in i2c_nrfx_twim_transfer() 52 k_sem_take(&dev_data->completion_sync, K_NO_WAIT); in i2c_nrfx_twim_transfer() 58 ret = -ENOTSUP; in i2c_nrfx_twim_transfer() [all …]
|
D | i2c_nrfx_twim_rtio.c | 6 * SPDX-License-Identifier: Apache-2.0 11 #include <zephyr/dt-bindings/i2c/i2c.h> 28 static bool i2c_nrfx_twim_rtio_msg_start(const struct device *dev, uint8_t flags, uint8_t *buf, in i2c_nrfx_twim_rtio_msg_start() argument 31 const struct i2c_nrfx_twim_rtio_config *config = dev->config; in i2c_nrfx_twim_rtio_msg_start() 32 struct i2c_rtio *ctx = config->ctx; in i2c_nrfx_twim_rtio_msg_start() 35 ret = i2c_nrfx_twim_msg_transfer(dev, flags, buf, buf_len, i2c_addr); in i2c_nrfx_twim_rtio_msg_start() 45 const struct i2c_nrfx_twim_rtio_config *config = dev->config; in i2c_nrfx_twim_rtio_start() 46 struct i2c_rtio *ctx = config->ctx; in i2c_nrfx_twim_rtio_start() 47 struct rtio_sqe *sqe = &ctx->txn_curr->sqe; in i2c_nrfx_twim_rtio_start() 48 struct i2c_dt_spec *dt_spec = sqe->iodev->data; in i2c_nrfx_twim_rtio_start() [all …]
|
/Zephyr-latest/subsys/debug/coredump/ |
D | coredump_backend_flash_partition.c | 4 * SPDX-License-Identifier: Apache-2.0 23 * @brief Simple coredump backend to store data in flash partition. 25 * This provides a simple backend to store coredump data in a flash 26 * partition, labeled "coredump-partition" in devicetree. 29 * at the end to align with flash write size. Then the actual 32 * aligned to flash write size. 38 #error "Need a fixed partition named 'coredump-partition'!" 48 MAX(FLASH_WRITE_SIZE, ROUND_UP(CONFIG_DEBUG_COREDUMP_FLASH_CHUNK_SIZE, FLASH_WRITE_SIZE)) 52 /* Device has no erase block size */ 63 typedef int (*data_read_cb_t)(void *arg, uint8_t *buf, size_t len); [all …]
|
/Zephyr-latest/tests/subsys/storage/stream/stream_flash/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 11 #include <zephyr/drivers/flash.h> 17 #define MAX_PAGE_SIZE 0x1000 /* Max supported page size to run test on */ 18 #define MAX_NUM_PAGES 4 /* Max number of pages used in these tests */ 25 #define FLASH_AVAILABLE (FLASH_SIZE-FLASH_BASE) 38 static const char progress_key[] = "sf-test/progress"; 42 const static uint8_t write_buf[TESTBUF_SIZE] = {[0 ... TESTBUF_SIZE - 1] = 0xaa}; 43 static uint8_t written_pattern[TESTBUF_SIZE] = {[0 ... TESTBUF_SIZE - 1] = 0xaa}; 45 static uint8_t erased_pattern[TESTBUF_SIZE] = {[0 ... TESTBUF_SIZE - 1] = 0xff}; 48 #define VERIFY_BUF(start, size, buf) \ argument [all …]
|
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/ |
D | ec_host_cmd_backend_uart.c | 4 * SPDX-License-Identifier: Apache-2.0 82 if (r->prtcl_ver != 3) { in request_expected_size() 87 if (r->reserved) { in request_expected_size() 91 return sizeof(*r) + r->data_len; in request_expected_size() 107 * Max data size for a version 3 request/response packet. This is big enough 108 * to handle a request/response header, flash write offset/size and 512 bytes 121 switch (hc_uart->state) { in rx_timeout() 140 LOG_ERR("Request timeout mishandled, state: %d", hc_uart->state); in rx_timeout() 143 res = uart_rx_disable(hc_uart->uart_dev); in rx_timeout() 144 res = uart_rx_enable(hc_uart->uart_dev, hc_uart->rx_ctx->buf, hc_uart->rx_buf_size, 0); in rx_timeout() [all …]
|
D | ec_host_cmd_backend_spi_stm32.c | 4 * SPDX-License-Identifier: Apache-2.0 9 * unknown command size sent by the host (the SPI transaction sends/receives specific number of 11 * transaction), see https://github.com/zephyrproject-rtos/zephyr/issues/56091. 33 * dedicated for Host Commands. It disabled standard SPI driver. For STM32 SPI "st,stm32-spi" has 34 * to be changed to "st,stm32-spi-host-cmd". The remaining "additional" compatible strings should 88 * permits a 512-byte request at 500 KHz, assuming the master starts sending 112 * Max data size for a version 3 request/response packet. This is big enough 113 * to handle a request/response header, flash write offset/size, and 512 bytes 114 * of flash data. 141 /* Received bad data - transaction started before we were ready, or [all …]
|
/Zephyr-latest/drivers/espi/ |
D | espi_npcx.c | 4 * SPDX-License-Identifier: Apache-2.0 15 #include <zephyr/dt-bindings/espi/npcx_espi.h> 32 /* mapping table between eSPI reset signal and wake-up input */ 77 ((struct espi_reg *)((const struct espi_npcx_config *)(dev)->config)->base) 87 /* eSPI max supported frequency */ 97 /* OOB channel maximum payload size */ 102 /* Flash channel maximum payload size */ 106 /* eSPI cycle type field for OOB and FLASH channels */ 132 /* eSPI Virtual Wire Input (Master-to-Slave) signals configuration structure */ 136 uint8_t bitmask; /* VW signal bits-mask */ [all …]
|
D | espi_it8xxx2.c | 4 * SPDX-License-Identifier: Apache-2.0 233 MAX(CONFIG_ESPI_PERIPHERAL_ACPI_SHM_REGION_PORT_NUM, \ 239 static uint8_t h2ram_pool[MAX(H2RAM_ACPI_SHM_MAX, H2RAM_EC_HOST_CMD_MAX)] 242 #define H2RAM_WINDOW_SIZE(ram_size) ((find_msb_set((ram_size) / 16) - 1) & 0x7) 257 const struct espi_it8xxx2_config *const config = dev->config; in smfi_it8xxx2_init() 259 (struct smfi_it8xxx2_regs *)config->base_smfi; in smfi_it8xxx2_init() 266 gctrl->GCTRL_H2ROFSR = in smfi_it8xxx2_init() 267 (gctrl->GCTRL_H2ROFSR & ~IT8XXX2_ESPI_H2RAM_OFFSET_MASK) | in smfi_it8xxx2_init() 274 smfi_reg->SMFI_HRAMW0BA = in smfi_it8xxx2_init() 276 /* Set host RAM window 0 size. (allow R/W) */ in smfi_it8xxx2_init() [all …]
|
D | espi_mchp_xec.c | 4 * SPDX-License-Identifier: Apache-2.0 33 /* While issuing flash erase command, it should be ensured that the transfer 34 * length specified is non-zero. 116 * --------------------------------------------------------------------------------| 118 * --------------------------------------------------------------------------------| 120 * --------------------------------------------------------------------------------| 127 * --------------------------------------------------------------------------------| 129 * --------------------------------------------------------------------------------| 219 /* Buffer size are expressed in bytes */ 231 uint8_t cap0 = ESPI_CAP_REGS->GLB_CAP0; in espi_xec_configure() [all …]
|
D | espi_mchp_xec_v2.c | 5 * SPDX-License-Identifier: Apache-2.0 16 #include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h> 39 /* While issuing flash erase command, it should be ensured that the transfer 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 * ------------------------------------------------------------------------| [all …]
|
/Zephyr-latest/boards/seco/stm32f3_seco_d23/ |
D | stm32f3_seco_d23.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include <st/f3/stm32f302v(b-c)tx-pinctrl.dtsi> 12 model = "SECO SBC-3.5-PX30 board (STM32F302VCT6)"; 13 compatible = "seco,stm32f3-d23"; 17 zephyr,code-partition = &slot0_partition; 18 zephyr,shell-uart = &usart1; 20 zephyr,flash = &flash0; 25 compatible = "gpio-leds"; 28 label = "LED-1"; [all …]
|
/Zephyr-latest/doc/releases/ |
D | migration-guide-3.6.rst | 35 instead use the new ``-DFILE_SUFFIX`` feature :ref:`application-file-suffixes`. 40 * The system heap size and its availability is now determined by a ``K_HEAP_MEM_POOL_SIZE`` 42 can specify their own custom system heap size requirements by specifying Kconfig options with 57 * NXP: Enabled :ref:`linkserver<linkserver-debug-host-tools>` to be the default runner on the 72 To enable them again use the ``west config manifest.project-filter -- +<module 73 name>`` command, or ``west config manifest.group-filter -- +optional`` to 81 command e.g. ``west flash --erase``. (:github:`64703`) 86 * If you have zcbor-generated code that relies on the zcbor libraries through Zephyr, you must 123 macro avoids run-time string comparisons, and is also safer because it will 126 .. list-table:: [all …]
|
D | release-notes-4.0.rst | 15 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 19 types, including traditional NOR flash and advanced technologies like RRAM and MRAM that support 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. 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`. 50 directory for :zephyr:code-sample-category:`code samples <samples>`. 70 * :cve:`2024-8798`: Under embargo until 2024-11-22 71 * :cve:`2024-10395`: Under embargo until 2025-01-23 [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 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 129 This may cause out-of-tree scripts or commands to fail if they have relied [all …]
|
D | release-notes-1.14.rst | 17 * CVE-2020-10066 18 * CVE-2020-10069 19 * CVE-2020-13601 20 * CVE-2020-13602 32 * :github:`issuenumber` - issue title 34 * :github:`18334` - DNS resolution is broken for some addresses in master/2.0-pre 35 * :github:`19917` - Bluetooth: Controller: Missing LL_ENC_RSP after HCI LTK Negative Reply 36 * :github:`21107` - LL_ASSERT and 'Imprecise data bus error' in LL Controller 37 * :github:`21257` - tests/net/net_pkt failed on mimxrt1050_evk board. 38 * :github:`21299` - bluetooth: Controller does not release buffer on central side after peripheral … [all …]
|
D | release-notes-2.5.rst | 27 * CVE-2021-3323: Under embargo until 2021-04-14 28 * CVE-2021-3321: Under embargo until 2021-04-14 29 * CVE-2021-3320: Under embargo until 2021-04-14 39 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_. 56 * Changed vcnl4040 dts binding default for property 'proximity-trigger'. 63 * The :c:func:`mqtt_keepalive_time_left` function now returns -1 if keep alive 67 timeout usage must use the new-style k_timeout_t type and not the 87 GPIO-only regulators a devicetree property ``supply-gpios`` is defined as a 101 * ARM Musca-A board and SoC support deprecated and planned to be removed in 2.6.0. 146 sys_heap/k_heaps. Note that the new-style heap is a general [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 28 * EEPROM now can be emulated in flash 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 [all …]
|
D | release-notes-2.0.rst | 12 * The kernel now supports both 32- and 64-bit architectures. 17 * We added support for :ref:`Point-to-Point Protocol (PPP) <ppp>`. PPP is a 20 * We added support for UpdateHub, an end-to-end solution for large scale 21 over-the-air device updates. 22 * We added support for ARM Cortex-R Architecture (Experimental). 32 * Fixes CVE-2019-9506: The Bluetooth BR/EDR specification up to and 35 negotiation. This allows practical brute-force attacks (aka "KNOB") 42 * New kernel API for per-thread disabling of Floating Point Services for 43 ARC, ARM Cortex-M, and x86 architectures. 45 * Additional support for compatibility with 64-bit architectures. [all …]
|
D | release-notes-1.13.rst | 16 * Support for IEEE 802.1AS-2011 generalized Precision Time Protocol (gPTP) 23 * Basic support for Arm TrustZone in Armv8-M 42 * arch: arm: implement ARMv8-M MPU driver 44 * arch: arm: macro API for defining non-secure entry functions 48 * arch: ARM: Change the march used by cortex-m0 and cortex-m0plus 50 * arch: arm: basic Arm TrustZone-M functionality for Cortex-M23 and Cortex-M33 51 * arch: arm: built-in stack protection using Armv8-M SPLIM registers 52 * arch: arm: API for using TT intrinsics in Secure/Non-Secure Armv8-M firmware 63 * riscv32: riscv-privilege: Microsemi Mi-V support 99 * modem: Added Wistron WNC-M14A2A LTE-M Modem driver [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | lwm2m.h | 3 * Copyright (c) 2017-2019 Foundries.io 5 * SPDX-License-Identifier: Apache-2.0 10 * @brief LwM2M high-level API 13 * LwM2M high-level interface is defined in this header. 18 * OMA-TS-LightweightM2M_Core-V1_1_1-20190617-A 20 * @defgroup lwm2m_api LwM2M high-level API 46 /* clang-format off */ 61 /* clang-format on */ 73 /* clang-format off */ 88 /* clang-format on */ [all …]
|