Home
last modified time | relevance | path

Searched +full:active +full:- +full:range +full:- +full:x +full:- +full:min (Results 1 – 25 of 34) sorted by relevance

12

/Zephyr-latest/dts/bindings/input/
Dcirque,pinnacle-common.yaml2 # SPDX-License-Identifier: Apache-2.0
7 data-ready-gpios:
8 type: phandle-array
11 which is active high when SW_DR or SW_CC are asserted. If connected
12 directly, the MCU pin should be configured as active low.
16 default: "4x"
18 ADC attenuation, 1x is the most sensitive and 4x is the least sensitive.
20 - "1x"
21 - "2x"
22 - "3x"
[all …]
/Zephyr-latest/drivers/dai/intel/dmic/
Ddmic.h4 * SPDX-License-Identifier: Apache-2.0
29 #define DMIC_HW_CIC_SHIFT_MIN -8
38 #define DMIC_HW_PDM_CLK_MIN 100000 /* Note: Practical min value */
39 #define DMIC_HW_DUTY_MIN 20 /* Note: Practical min value */
53 #define DMIC_HW_FIR_COEF_MAX ((1 << (DMIC_HW_BITS_FIR_COEF - 1)) - 1)
54 #define DMIC_HW_FIR_COEF_Q (DMIC_HW_BITS_FIR_COEF - 1)
60 #define DMIC_HW_FIR_GAIN_MAX ((1 << (DMIC_HW_BITS_FIR_GAIN - 1)) - 1)
67 * decibels, set to -90 dB.
72 * dy = y48 - y16; dx = 48000 - 16000;
74 * offs = round(y16 - coef/2^15 * 16000)
[all …]
/Zephyr-latest/drivers/clock_control/
Dclock_control_litex.c4 * SPDX-License-Identifier: Apache-2.0
66 …* https://github.com/Digilent/Zybo-hdmi-out/blob/b991fff6e964420ae3c00c3dbee52f2ad748b3ba/sdk/disp…
213 return litex_clk_filter_table[glob_mul - 1]; in litex_clk_lookup_filter()
219 return litex_clk_lock_table[glob_mul - 1]; in litex_clk_lookup_lock()
234 int assert = (1 << (drp[reg].size * BITS_PER_BYTE)) - 1; in litex_clk_assert_reg()
251 timeout = ldev->timeout.lock; in litex_clk_wait()
253 timeout = ldev->timeout.drdy; in litex_clk_wait()
257 timeout--; in litex_clk_wait()
261 LOG_WRN("Timeout occured when waiting for the register: 0x%x", reg); in litex_clk_wait()
262 return -ETIME; in litex_clk_wait()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dregulator.h2 * Copyright (c) 2019-2020 Peter Bigot Consulting, LLC
7 * SPDX-License-Identifier: Apache-2.0
67 /** @brief Driver-specific API functions to support parent regulator control. */
100 /** @brief Driver-specific API functions to support regulator control. */
130 /** Regulator active discharge state mask */
132 /** Regulator active discharge state flag position*/
134 /** Disable regulator active discharge */
136 /** Enable regulator active discharge */
138 /** Leave regulator active discharge state as default */
140 /** Regulator active discharge set bits */
[all …]
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_uac2.c2 * Copyright (c) 2023-2024 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
37 * requires 6 bytes) and feedback endpoint (4 bytes on High-Speed, 3 bytes on
38 * Full-Speed). Because the total number of endpoints is really small (typically
40 * the USB specification itself is 30 non-control endpoints). Therefore, the
51 /* A.14 Audio Class-Specific Request Codes */
53 #define RANGE 0x02 macro
60 #define CONTROL_ATTRIBUTE(setup) (setup->bRequest)
61 #define CONTROL_ENTITY_ID(setup) ((setup->wIndex & 0xFF00) >> 8)
62 #define CONTROL_SELECTOR(setup) ((setup->wValue & 0xFF00) >> 8)
[all …]
/Zephyr-latest/drivers/usb/udc/
Dudc_stm32.c4 * SPDX-License-Identifier: Apache-2.0
78 const struct device *dev = priv->dev; in HAL_PCD_ResetCallback()
79 const struct udc_stm32_config *cfg = dev->config; in HAL_PCD_ResetCallback()
82 /* Re-Enable control endpoints */ in HAL_PCD_ResetCallback()
84 if (ep && ep->stat.enabled) { in HAL_PCD_ResetCallback()
85 HAL_PCD_EP_Open(&priv->pcd, USB_CONTROL_EP_OUT, cfg->ep0_mps, in HAL_PCD_ResetCallback()
90 if (ep && ep->stat.enabled) { in HAL_PCD_ResetCallback()
91 HAL_PCD_EP_Open(&priv->pcd, USB_CONTROL_EP_IN, cfg->ep0_mps, in HAL_PCD_ResetCallback()
95 udc_submit_event(priv->dev, UDC_EVT_RESET, 0); in HAL_PCD_ResetCallback()
102 udc_submit_event(priv->dev, UDC_EVT_VBUS_READY, 0); in HAL_PCD_ConnectCallback()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_central_iso.c4 * 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 …]
Disoal.c4 * SPDX-License-Identifier: Apache-2.0
65 * [Payload (min) + Segmentation Header + Time Offset]
72 /* Defined the wrapping point and mid point in the range of time input values,
73 * which depend on range of the controller's clock in microseconds.
100 * Zero-init entire ISO-AL state
109 * @brief Initialize ISO-AL
131 * @brief Wraps given time within the range of 0 to ISOAL_TIME_WRAPPING_POINT_US
146 * @return Validity - valid if time_after leads time_before with
160 if ((time_before - time_after) <= ISOAL_TIME_SPAN_HALF_US) { in isoal_get_time_diff()
164 *result = time_after + ISOAL_TIME_SPAN_FULL_US - time_before; in isoal_get_time_diff()
[all …]
Dull_adv_iso.c4 * SPDX-License-Identifier: Apache-2.0
127 if (!adv_iso || adv_iso->lll.adv) { in big_create()
141 lll_adv_sync = adv->lll.sync; in big_create()
142 if (!lll_adv_sync || lll_adv_sync->iso) { in big_create()
192 if (!IN_RANGE(max_pdu, 0x01, MIN(0xFB, LL_BIS_OCTETS_TX_MAX))) { in big_create()
243 if (adv->lll.aux) { in big_create()
244 aux = HDR_LLL2ULL(adv->lll.aux); in big_create()
250 if (aux && aux->is_started) { in big_create()
251 ticks_slot_aux = aux->ull.ticks_slot; in big_create()
254 MAX(aux->ull.ticks_active_to_start, in big_create()
[all …]
/Zephyr-latest/drivers/usb/device/
Dusb_dc_stm32.c3 * Copyright (c) 2017, I-SENSE group of ICCS
5 * SPDX-License-Identifier: Apache-2.0
41 * pin(s) in the device tree. E.g: pinctrl-0 = <&usb_otg_fs_vbus_pa9 ...>;
133 /* We need a minimum size for RX FIFO - exact number seemingly determined through trial and error */
139 #define TX_FIFO_WORDS (USB_RAM_SIZE / 4 - RX_FIFO_EP_WORDS - TX_FIFO_EP_0_WORDS)
141 #define TX_FIFO_EP_WORDS (TX_FIFO_WORDS / (TX_FIFO_NUM - 1))
234 return -EIO; in usb_dc_stm32u5_phy_clock_select()
246 return -EINVAL; in usb_dc_stm32u5_phy_clock_select()
256 return -EIO; in usb_dc_stm32u5_phy_clock_enable()
262 return -EIO; in usb_dc_stm32u5_phy_clock_enable()
[all …]
/Zephyr-latest/drivers/input/
Dinput_pinnacle.c4 * SPDX-License-Identifier: Apache-2.0
27 * Standard registers have 5-bit addresses, BIT[4:0], that range from
87 /* X max to 0 */
136 #define PINNACLE_SPI_FC 0xFC /* Auto-increment byte */
217 const struct pinnacle_config *config = dev->config; in pinnacle_bus_is_ready()
219 return config->bus.is_ready(&config->bus); in pinnacle_bus_is_ready()
224 const struct pinnacle_config *config = dev->config; in pinnacle_write()
226 return config->bus.write(&config->bus, address, value); in pinnacle_write()
231 const struct pinnacle_config *config = dev->config; in pinnacle_seq_write()
233 return config->bus.seq_write(&config->bus, address, value, count); in pinnacle_seq_write()
[all …]
/Zephyr-latest/drivers/dai/intel/ssp/
Dssp.c4 * SPDX-License-Identifier: Apache-2.0
22 #define dai_set_drvdata(dai, data) (dai->priv_data = data)
23 #define dai_get_drvdata(dai) dai->priv_data
24 #define dai_get_plat_data(dai) dai->ssp_plat_data
25 #define dai_get_mn(dai) dai->ssp_plat_data->mn_inst
26 #define dai_get_ftable(dai) dai->ssp_plat_data->ftable
27 #define dai_get_fsources(dai) dai->ssp_plat_data->fsources
28 #define dai_mn_base(dai) dai->ssp_plat_data->mn_inst->base
29 #define dai_base(dai) dai->ssp_plat_data->base
30 #define dai_ip_base(dai) dai->ssp_plat_data->ip_base
[all …]
/Zephyr-latest/drivers/display/
Dssd16xx.c3 * Copyright (c) 2018-2020 PHYTEC Messtechnik GmbH
6 * SPDX-License-Identifier: Apache-2.0
48 /* Width (bits) of integer type representing an x coordinate */
115 const struct ssd16xx_config *config = dev->config; in ssd16xx_busy_wait()
116 int pin = gpio_pin_get_dt(&config->busy_gpio); in ssd16xx_busy_wait()
121 pin = gpio_pin_get_dt(&config->busy_gpio); in ssd16xx_busy_wait()
128 const struct ssd16xx_config *config = dev->config; in ssd16xx_write_cmd()
133 err = mipi_dbi_command_write(config->mipi_dev, &config->dbi_config, in ssd16xx_write_cmd()
135 mipi_dbi_release(config->mipi_dev, &config->dbi_config); in ssd16xx_write_cmd()
148 const struct ssd16xx_config *config = dev->config; in ssd16xx_read_cmd()
[all …]
Duc81xx.c6 * SPDX-License-Identifier: Apache-2.0
71 int (*set_ptl)(const struct device *dev, uint16_t x, uint16_t y,
99 const struct uc81xx_config *config = dev->config; in uc81xx_busy_wait()
100 int pin = gpio_pin_get_dt(&config->busy_gpio); in uc81xx_busy_wait()
105 pin = gpio_pin_get_dt(&config->busy_gpio); in uc81xx_busy_wait()
112 const struct uc81xx_config *config = dev->config; in uc81xx_write_cmd()
117 err = mipi_dbi_command_write(config->mipi_dev, &config->dbi_config, in uc81xx_write_cmd()
119 mipi_dbi_release(config->mipi_dev, &config->dbi_config); in uc81xx_write_cmd()
127 const struct uc81xx_config *config = dev->config; in uc81xx_write_cmd_pattern()
134 err = mipi_dbi_command_write(config->mipi_dev, &config->dbi_config, in uc81xx_write_cmd_pattern()
[all …]
/Zephyr-latest/drivers/dma/
Ddma_iproc_pax_v2.c4 * SPDX-License-Identifier: Apache-2.0
32 * @brief Opaque/packet id allocator, range 0 to 31
36 return ring->pkt_id = 0x0; in reset_pkt_id()
41 ring->pkt_id = (ring->pkt_id + 1) % 32; in alloc_pkt_id()
42 return ring->pkt_id; in alloc_pkt_id()
47 return ring->pkt_id; in curr_pkt_id()
52 return ring->curr.toggle; in curr_toggle_val()
64 r->opq = opq; in rm_write_header_desc()
65 r->bdf = 0x0; in rm_write_header_desc()
66 r->res1 = 0x0; in rm_write_header_desc()
[all …]
/Zephyr-latest/drivers/rtc/
Drtc_ll_stm32.c6 * SPDX-License-Identifier: Apache-2.0
76 #define MIN_PPB -NB_PULSES_TO_PPB(MAX_CALM)
126 /* user-defined alarm mask, values from RTC_ALARM_TIME_MASK */
144 const struct rtc_stm32_config *cfg = dev->config; in rtc_stm32_configure()
158 (sync_prescaler != cfg->sync_prescaler) || in rtc_stm32_configure()
159 (async_prescaler != cfg->async_prescaler)) { in rtc_stm32_configure()
164 LL_RTC_SetSynchPrescaler(RTC, cfg->sync_prescaler); in rtc_stm32_configure()
165 LL_RTC_SetAsynchPrescaler(RTC, cfg->async_prescaler); in rtc_stm32_configure()
167 err = -EIO; in rtc_stm32_configure()
174 LL_RTC_CAL_SetOutputFreq(RTC, cfg->cal_out_freq); in rtc_stm32_configure()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dhas.c4 * SPDX-License-Identifier: Apache-2.0
49 #define MAX_INSTS MIN(CONFIG_BT_MAX_CONN, CONFIG_BT_MAX_PAIRED)
66 LOG_DBG("attr %p value 0x%04x", attr, value); in active_preset_index_cfg_changed()
82 LOG_DBG("attr %p value 0x%04x", attr, value); in preset_cp_cfg_changed()
105 LOG_DBG("attr %p value 0x%04x", attr, value); in features_cfg_changed()
251 bt_addr_le_copy(&context->addr, addr); in context_alloc()
258 bt_addr_le_copy(&context->addr, BT_ADDR_LE_ANY); in context_free()
267 (void)k_work_cancel_delayable(&client->notify_work); in client_free()
270 err = bt_conn_get_info(client->conn, &info); in client_free()
273 if (client->context != NULL && !bt_addr_le_is_bonded(info.id, info.le.dst)) { in client_free()
[all …]
/Zephyr-latest/drivers/flash/
Dspi_nor.c2 * Copyright (c) 2018 Savoir-Faire Linux.
8 * SPDX-License-Identifier: Apache-2.0
34 * active.
36 * * Some devices support a Deep Power-Down mode which reduces current
40 * * PM_DEVICE_STATE_ACTIVE covers both active and standby modes;
41 * * PM_DEVICE_STATE_SUSPENDED corresponds to deep-power-down mode;
63 #define DEV_CFG(_dev_) ((const struct spi_nor_config * const) (_dev_)->config)
66 /* MXICY Low-power/high perf mode is second bit in configuration register 2 */
72 /* Build-time data associated with the device. */
92 /* Expected JEDEC ID, from jedec-id property */
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dgatt.c1 /* gatt.c - Generic Attribute Profile handling */
4 * Copyright (c) 2015-2016 Intel Corporation
7 * SPDX-License-Identifier: Apache-2.0
73 * Entry x is free for reuse whenever (subscriptions[x].peer == BT_ADDR_LE_ANY).
74 * Invariant: (sys_slist_is_empty(subscriptions[x].list))
75 * <=> (subscriptions[x].peer == BT_ADDR_LE_ANY).
185 /* This checks if the range entered is valid */
287 SC_RANGE_CHANGED, /* SC range changed */
295 /* Total number of flags - must be at the end of the enum */
339 err = bt_settings_store_sc(cfg->id, &cfg->peer, &cfg->data, sizeof(cfg->data)); in sc_store()
[all …]
/Zephyr-latest/kernel/
Dmmu.c4 * SPDX-License-Identifier: Apache-2.0
17 #include <zephyr/linker/linker-defs.h>
31 * - A page frame is a page-sized physical memory region in RAM. It is a
37 * - A data page is a page-sized region of data. It may exist in a page frame,
76 #define COLOR(x) printk(_CONCAT(ANSI_, x)) argument
78 #define COLOR(x) do { } while (false) argument
86 printk("-"); in page_frame_dump()
113 printk("Physical memory from 0x%lx to 0x%lx\n", in k_mem_page_frames_dump()
160 * +--------------+ <- K_MEM_VIRT_RAM_START
161 * | Undefined VM | <- May contain ancillary regions like x86_64's locore
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Daccess.c4 * SPDX-License-Identifier: Apache-2.0
36 /* 20 - 50ms */
38 /* 20 - 500ms */
75 /** Type of relation; value in range 0x00-0xFE marks correspondence
100 (mod_rel_list[(idx)].elem_base == mod->rt->elem_idx && \
101 mod_rel_list[(idx)].idx_base == mod->rt->mod_idx + (offset))
104 (mod_rel_list[(idx)].elem_ext == mod->rt->elem_idx && \
105 mod_rel_list[(idx)].idx_ext == mod->rt->mod_idx + (offset))
130 for (i = 0; i < dev_comp->elem_count; i++) { in bt_mesh_model_foreach()
131 const struct bt_mesh_elem *elem = &dev_comp->elem[i]; in bt_mesh_model_foreach()
[all …]
/Zephyr-latest/include/zephyr/net/
Dwifi.h5 * SPDX-License-Identifier: Apache-2.0
10 * @brief IEEE 802.11 protocol and general Wi-Fi definitions.
14 * @brief Wi-Fi Management API.
15 * @defgroup wifi_mgmt Wi-Fi Management
45 /** WPA2-PSK security. */
47 /** WPA2-PSK-SHA256 security. */
49 /** WPA3-SAE security. */
51 /** WPA3-SAE security with hunting-and-pecking loop. */
53 /** WPA3-SAE security with hash-to-element. */
55 /** WPA3-SAE security with both hunting-and-pecking loop and hash-to-element enabled. */
[all …]
/Zephyr-latest/scripts/kconfig/
Dkconfiglib.py1 # Copyright (c) 2011-2019, Ulf Magnusson
2 # SPDX-License-Identifier: ISC
9 from Kconfig (https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt)
27 $ wget -qO- https://raw.githubusercontent.com/ulfalizer/Kconfiglib/master/makefile.patch | git am
28 …$ wget -qO- https://raw.githubusercontent.com/ulfalizer/Kconfiglib/master/makefile.patch | patch -
30 Warning: Not passing -p1 to patch will cause the wrong file to be patched.
43 $ git am Kconfiglib/makefile.patch (or 'patch -p1 < Kconfiglib/makefile.patch')
53 ----------------
61 --------------
69 --------------------------------
[all …]
/Zephyr-latest/subsys/net/ip/
Dnet_context.c11 * SPDX-License-Identifier: Apache-2.0
91 return context->options.reuseaddr; in net_context_is_reuseaddr_set()
100 return context->options.reuseport; in net_context_is_reuseport_set()
113 return context->options.ipv6_v6only; in net_context_is_v6only_set()
124 return context->options.recv_pktinfo; in net_context_is_recv_pktinfo_set()
135 return (bool)(context->options.timestamping > 0); in net_context_is_timestamping_set()
162 const struct tcp *tcp_conn = context->tcp; in is_in_tcp_time_wait_state()
197 contexts[i].local)->sin_port == local_port)) { in check_used_port()
208 local_addr->sa_family == AF_INET6) { in check_used_port()
209 if (net_sin6_ptr(&contexts[i].local)->sin6_addr == NULL || in check_used_port()
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-3.5.rst38 * 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 …]

12