/Zephyr-latest/dts/bindings/usb/uac2/ |
D | zephyr,uac2-clock-source.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "zephyr,uac2-clock-source" 9 clock-type: 17 - "external" 18 - "internal-fixed" 19 - "internal-variable" 20 - "internal-programmable" 22 sof-synchronized: 28 frequency-control: 30 description: Clock Frequency Control capabilities [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_mmio32.c | 4 * SPDX-License-Identifier: Apache-2.0 9 * @brief Driver to provide the GPIO API for a simple 32-bit i/o register 11 * This is a driver for accessing a simple, fixed purpose, 32-bit 12 * memory-mapped i/o register using the same APIs as GPIO drivers. This is 14 * block and these registers are used to control things that Zephyr normally 16 * chip-select line for an SPI device. 21 * stems from the use of a read-modify-write method for all changes. 36 struct gpio_mmio32_context *context = dev->data; in gpio_mmio32_config() 37 const struct gpio_mmio32_config *config = context->config; in gpio_mmio32_config() 39 if ((config->mask & (1 << pin)) == 0) { in gpio_mmio32_config() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | dma.h | 10 * SPDX-License-Identifier: Apache-2.0 137 * - 0b00 increment 138 * - 0b01 decrement 139 * - 0b10 no change 145 * - 0b00 increment 146 * - 0b01 decrement 147 * - 0b10 no change 157 * Transfer flow control mode 159 * - 0b0 source request service upon data availability 160 * - 0b1 source request postponed until destination request happens [all …]
|
/Zephyr-latest/doc/kernel/usermode/ |
D | overview.rst | 13 control another user mode thread or the kernel. 15 Example use-cases of Zephyr's user mode features: 17 - The kernel can protect against many unintentional programming errors which 20 - The kernel can sandbox complex data parsers such as interpreters, network 21 protocols, and filesystems such that malicious third-party code or data 24 - The kernel can support the notion of multiple logical "applications", each 31 For threads running in a non-privileged CPU state (hereafter referred to as 34 - We prevent access to memory not specifically granted, or incorrect access to 36 read-only area. 38 - Access to thread stack buffers will be controlled with a policy which [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_xlnx_ps.c | 1 /* uart_xlnx_ps.c - Xilinx Zynq family serial driver */ 6 * SPDX-License-Identifier: Apache-2.0 19 * - the following macro for the number of bytes between register addresses: 42 * Comp. Xilinx Zynq-7000 Technical Reference Manual (ug585), chap. B.33 46 #define XUARTPS_CR_OFFSET 0x0000U /**< Control Register [8:0] */ 55 #define XUARTPS_MODEMCR_OFFSET 0x0024U /**< Modem Control [5:0] */ 64 /* Control Register Bits Definition */ 120 /* Modem Control Register Bits Definition */ 121 #define XUARTPS_MODEMCR_FCM_RTS_CTS 0x00000020 /**< RTS/CTS hardware flow control. */ 122 #define XUARTPS_MODEMCR_FCM_NONE 0x00000000 /**< No hardware flow control. */ [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_stm32wbx.c | 5 * SPDX-License-Identifier: Apache-2.0 39 if (regs->ACR & FLASH_ACR_DCEN) { in flush_cache() 40 regs->ACR &= ~FLASH_ACR_DCEN; in flush_cache() 44 regs->ACR |= FLASH_ACR_DCRST; in flush_cache() 45 regs->ACR &= ~FLASH_ACR_DCRST; in flush_cache() 46 regs->ACR |= FLASH_ACR_DCEN; in flush_cache() 49 if (regs->ACR & FLASH_ACR_ICEN) { in flush_cache() 50 regs->ACR &= ~FLASH_ACR_ICEN; in flush_cache() 55 regs->ACR |= FLASH_ACR_ICRST; in flush_cache() 56 regs->ACR &= ~FLASH_ACR_ICRST; in flush_cache() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_ll_stm32.c | 5 * SPDX-License-Identifier: Apache-2.0 32 #include "i2c-priv.h" 50 struct i2c_stm32_data *data = dev->data; in i2c_stm32_get_config() 52 if (!data->is_configured) { in i2c_stm32_get_config() 54 return -EIO; in i2c_stm32_get_config() 57 *config = data->dev_config; in i2c_stm32_get_config() 64 if (data->current_timing.i2c_speed == 100000) { in i2c_stm32_get_config() 66 data->current_timing.periph_clock, in i2c_stm32_get_config() 67 data->current_timing.timing_setting); in i2c_stm32_get_config() 68 } else if (data->current_timing.i2c_speed == 400000) { in i2c_stm32_get_config() [all …]
|
D | i2c_esp32.c | 5 * SPDX-License-Identifier: Apache-2.0 10 /* Include esp-idf headers first to avoid redefining BIT() macro */ 31 #include "i2c-priv.h" 44 #define I2C_CLOCK_INVALID (-1) 151 const struct i2c_esp32_config *config = dev->config; in i2c_esp32_config_pin() 154 if (config->index >= SOC_I2C_NUM) { in i2c_esp32_config_pin() 156 return -EINVAL; in i2c_esp32_config_pin() 159 gpio_pin_set_dt(&config->sda.gpio, 1); in i2c_esp32_config_pin() 160 ret = gpio_pin_configure_dt(&config->sda.gpio, GPIO_PULL_UP | GPIO_OUTPUT | GPIO_INPUT); in i2c_esp32_config_pin() 161 esp_rom_gpio_matrix_out(config->sda.gpio.pin, config->sda.sig_out, 0, 0); in i2c_esp32_config_pin() [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_xlnx_gem.c | 5 * SPDX-License-Identifier: Apache-2.0 8 * - Only supports 32-bit addresses in buffer descriptors, therefore 9 * the ZynqMP APU (Cortex-A53 cores) may not be fully supported. 10 * - Hardware timestamps not considered. 11 * - VLAN tags not considered. 12 * - Wake-on-LAN interrupt not supported. 13 * - Send function is not SMP-capable (due to single TX done semaphore). 14 * - Interrupt-driven PHY management not supported - polling only. 15 * - No explicit placement of the DMA memory area(s) in either a 18 * with the Cortex-R5 QEMU target or an actual R5 running without the [all …]
|
/Zephyr-latest/doc/security/ |
D | security-overview.rst | 1 .. _security-overview: 14 documents are created, this document is a top-level overview and entry 32 relevant sub-modules is created, threats are identified, and 34 validity of the threat models are checked by code reviews. 43 .. figure:: media/security-process-steps.png 64 noted in RFC-2119, "These terms are frequently used to specify behavior 98 - **Security** **Functionality** with a focus on cryptographic 104 - **Quality Assurance** is driven by using a development process that 111 - **Execution Protection** including thread separation, stack and 164 - Verifying correct functionality of the implementation [all …]
|
/Zephyr-latest/drivers/usb/common/nrf_usbd_common/ |
D | nrf_usbd_common.c | 2 * Copyright (c) 2016 - 2023, Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 55 /* Anomaly 211 - Device remains in SUSPEND too long when host resumes 71 * @brief Assert endpoint number validity. 76 * @param ep Endpoint number to validity check. 183 * - true - bus suspended 184 * - false - ongoing normal communication on the bus 251 /** NRFX_SUCCESS or error code, never NRFX_ERROR_BUSY - this one is calculated. */ 294 return &NRF_USBD->EVENTS_ENDEPIN[ep_num]; in usbd_ep_to_endevent() 296 return &NRF_USBD->EVENTS_ENDEPOUT[ep_num]; in usbd_ep_to_endevent() [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 70 * Pinmux API has been removed. Pin control needs to be used as its replacement, refer to 71 :ref:`pinctrl-guide` for more details. [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/hci/ |
D | hci_driver.c | 5 * SPDX-License-Identifier: Apache-2.0 126 * tree) 'recv blocking' API to the normal single-receiver 131 struct hci_driver_data *data = dev->data; in bt_recv_prio() 134 struct bt_hci_evt_hdr *hdr = (void *)buf->data; in bt_recv_prio() 135 uint8_t evt_flags = bt_hci_evt_get_flags(hdr->evt); in bt_recv_prio() 144 return data->recv(dev, buf); in bt_recv_prio() 164 sdu_buffer->dbuf = buf; in sink_sdu_alloc_hci() 165 sdu_buffer->size = net_buf_tailroom(buf); in sink_sdu_alloc_hci() 179 struct hci_driver_data *data = dev->data; in sink_sdu_emit_hci() 191 buf = (struct net_buf *) sdu_frag->sdu.contents.dbuf; in sink_sdu_emit_hci() [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/zbus/ |
D | zbus.h | 3 * SPDX-License-Identifier: Apache-2.0 41 /** Access control semaphore. Points to the semaphore used to avoid race conditions 77 * Every channel has a zbus_channel structure associated used to control the channel 103 * validity before actually performing the publishing. No invalid messages can be 191 #define ZBUS_MIN_THREAD_PRIORITY (CONFIG_NUM_PREEMPT_PRIORITIES - 1) 200 return -EFAULT; \ 209 #define _ZBUS_CHAN_NAME(_chan) (_chan)->name 217 #define _ZBUS_OBS_NAME(_obs) (_obs)->name 238 COND_CODE_0(/* are there zero non-empty arguments ? */ \ 272 /* clang-format off */ [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_central_iso.c | 4 * SPDX-License-Identifier: Apache-2.0 152 * - Calculate ISO_Interval to allow SDU_Interval < ISO_Interval 187 /* CIG does not exist - create it */ in ll_cig_parameters_commit() 195 cig->lll.num_cis = 0U; in ll_cig_parameters_commit() 198 } else if (cig->state != CIG_STATE_CONFIGURABLE) { in ll_cig_parameters_commit() 204 num_cis = cig->lll.num_cis; in ll_cig_parameters_commit() 209 cig->state = CIG_STATE_CONFIGURABLE; in ll_cig_parameters_commit() 212 cig->lll.handle = ll_conn_iso_group_handle_get(cig); in ll_cig_parameters_commit() 213 cig->lll.role = BT_HCI_ROLE_CENTRAL; in ll_cig_parameters_commit() 214 cig->lll.resume_cis = LLL_HANDLE_INVALID; in ll_cig_parameters_commit() [all …]
|
D | ull_llcp.c | 4 * SPDX-License-Identifier: Apache-2.0 99 ctx = (struct proc_ctx *)mem_acquire(&owner->free); in proc_ctx_acquire() 103 ctx->owner = owner; in proc_ctx_acquire() 112 LL_ASSERT(ctx->owner); in llcp_proc_ctx_release() 115 mem_release(ctx, &ctx->owner->free); in llcp_proc_ctx_release() 124 if (conn->llcp.tx_buffer_alloc > CONFIG_BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM) { in ull_cp_update_tx_buffer_queue() 125 common_tx_buffer_alloc -= (conn->llcp.tx_buffer_alloc - in ull_cp_update_tx_buffer_queue() 132 * @brief Check for per conn pre-allocated tx buffer allowance 138 /* Check if per connection pre-aloted tx buffer is available */ in static_tx_buffer_available() 139 if (conn->llcp.tx_buffer_alloc < CONFIG_BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM) { in static_tx_buffer_available() [all …]
|
/Zephyr-latest/doc/contribute/coding_guidelines/ |
D | index.rst | 13 but not enforced. Rules are not yet enforced in CI and pull-requests cannot be 41 <https://github.com/zephyrproject-rtos/zephyr/issues/58903>`__ is being worked on. 46 The coding guideline rules are based on MISRA-C 2012 and are a **subset** of MISRA-C. 54 available through the project. If you need a copy of MISRA-C 2012, please 60 .. list-table:: Main rules 61 :header-rows: 1 64 * - Zephyr rule 65 - Description 66 - MISRA-C 2012 rule 67 - MISRA-C severity [all …]
|