/Zephyr-Core-3.5.0/dts/bindings/input/ |
D | xptek,xpt2046.yaml | 2 # SPDX-License-Identifier: Apache-2.0 7 include: spi-device.yaml 10 int-gpios: 11 type: phandle-array 15 touchscreen-size-x: 20 touchscreen-size-y: 25 min-x: 28 description: minimum raw X value reported. 30 min-y: 35 max-x: [all …]
|
D | st,stmpe811.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 include: i2c-device.yaml 11 int-gpios: 12 type: phandle-array 17 screen-width: 24 screen-height: 31 raw-x-min: 34 Signed raw X axis start for scaling the reported coordinates. 37 raw-y-min: 43 raw-x-max: [all …]
|
/Zephyr-Core-3.5.0/drivers/watchdog/ |
D | wdt_opentitan.c | 4 * SPDX-License-Identifier: Apache-2.0 35 const struct wdt_ot_aontimer_cfg *const cfg = dev->config; in ot_aontimer_setup() 36 volatile uintptr_t regs = cfg->regs; in ot_aontimer_setup() 40 if (cfg->wdog_lock) { in ot_aontimer_setup() 50 const struct wdt_ot_aontimer_cfg *const cfg = dev->config; in ot_aontimer_disable() 51 volatile uintptr_t regs = cfg->regs; in ot_aontimer_disable() 54 LOG_ERR("Cannot disable - watchdog settings locked."); in ot_aontimer_disable() 55 return -EPERM; in ot_aontimer_disable() 61 return -EFAULT; in ot_aontimer_disable() 69 * The OpenTitan AON Timer includes a multi-level watchdog timer. [all …]
|
/Zephyr-Core-3.5.0/tests/lib/c_lib/src/ |
D | test_sqrt.c | 4 * SPDX-License-Identifier: Apache-2.0 13 #define local_abs(x) (((x) < 0) ? -(x) : (x)) argument 50 static int isinf(double x) in isinf() argument 53 ieee754.d = x; in isinf() 61 static int isnan(double x) in isnan() argument 64 ieee754.d = x; in isnan() 72 static int isinff(float x) in isinff() argument 75 ieee754.f = x; in isinff() 83 static int isnanf(float x) in isnanf() argument 86 ieee754.f = x; in isnanf() [all …]
|
/Zephyr-Core-3.5.0/scripts/gitlint/ |
D | zephyr_commit_rules.py | 1 # SPDX-License-Identifier: Apache-2.0 4 The classes below are examples of user-defined CommitRules. Commit rules are gitlint rules that 22 name = "body-min-line-count" 24 # A rule MUST have an *unique* id, we recommend starting with UC (for User-defined Commit-rule). 28 … options_spec = [IntOption('min-line-count', 1, "Minimum body line count excluding Signed-off-by")] 31 …filtered = [x for x in commit.message.body if not x.lower().startswith("signed-off-by") and x != '… 33 min_line_count = self.options['min-line-count'].value 40 name = "body-max-line-count" 42 # A rule MUST have an *unique* id, we recommend starting with UC (for User-defined Commit-rule). 46 options_spec = [IntOption('max-line-count', 200, "Maximum body line count")] [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/controller/mock_ctrl/include/hal/ |
D | ticker_vendor_hal.h | 4 * SPDX-License-Identifier: Apache-2.0 16 /* Macro defining the max. counter update latency in ticks */ 28 #define HAL_TICKER_US_TO_TICKS(x) \ argument 30 ((uint32_t)(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC) / \ 38 #define HAL_TICKER_US_TO_TICKS_CEIL(x) \ argument 40 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \ 46 #define HAL_TICKER_TICKS_TO_US(x) \ argument 48 ((uint32_t)(((uint64_t)(x) * HAL_TICKER_CNTR_CLK_UNIT_FSEC) / \ 52 /* Macro returning remainder in picoseconds (to fit in 32-bits) */ 53 #define HAL_TICKER_REMAINDER(x) \ argument [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/build_all/input/ |
D | app.overlay | 4 * SPDX-License-Identifier: Apache-2.0 9 #address-cells = <1>; 10 #size-cells = <1>; 14 gpio-controller; 16 #gpio-cells = <0x2>; 20 gpio-keys { 21 compatible = "gpio-keys"; 22 debounce-interval-ms = <30>; 29 qdec-gpio { 30 compatible = "gpio-qdec"; [all …]
|
/Zephyr-Core-3.5.0/samples/bluetooth/central_multilink/src/ |
D | central_multilink.c | 1 /* main.c - Application main entry point */ 5 * Copyright (c) 2015-2016 Intel Corporation 7 * SPDX-License-Identifier: Apache-2.0 29 #define CONN_TIMEOUT MIN(MAX((CONN_INTERVAL * 125 * \ 30 MAX(CONFIG_BT_MAX_CONN, 6) / 1000), 10), 3200) 73 if (rssi < -70) { in device_found() 185 printk("Disconnected: %s (reason 0x%02x)\n", addr, reason); in disconnected() 193 conn_count--; in disconnected() 202 printk("LE conn param req: %s int (0x%04x, 0x%04x) lat %d to %d\n", in le_param_req() 203 addr, param->interval_min, param->interval_max, param->latency, in le_param_req() [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/ |
D | ticker.h | 2 * Copyright (c) 2016-2018 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 17 /* Macro defining the max. counter update latency in ticks */ 34 #define HAL_TICKER_US_TO_TICKS(x) \ argument 36 ((uint32_t)(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC) / \ 44 #define HAL_TICKER_US_TO_TICKS_CEIL(x) \ argument 46 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \ 52 #define HAL_TICKER_TICKS_TO_US(x) \ argument 54 ((uint32_t)(((uint64_t)(x) * HAL_TICKER_CNTR_CLK_UNIT_FSEC) / \ 58 /* Macro returning remainder in picoseconds (to fit in 32-bits) */ [all …]
|
D | swi.h | 4 * SPDX-License-Identifier: Apache-2.0 9 #define SetPendingIRQ(x) (EVENT_UNIT->INTPTPENDSET |= (uint32_t)(1 << (x))) argument 13 /* No platform-specific initialization required. */ in hal_swi_init() 18 /* Split architecture uses max. two SWI */
|
/Zephyr-Core-3.5.0/samples/drivers/jesd216/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 36 [JESD216_MODE_111] = "1-1-1", 37 [JESD216_MODE_112] = "1-1-2", 38 [JESD216_MODE_114] = "1-1-4", 39 [JESD216_MODE_118] = "1-1-8", 40 [JESD216_MODE_122] = "1-2-2", 41 [JESD216_MODE_144] = "1-4-4", 42 [JESD216_MODE_188] = "1-8-8", 43 [JESD216_MODE_222] = "2-2-2", 44 [JESD216_MODE_444] = "4-4-4", [all …]
|
/Zephyr-Core-3.5.0/tests/arch/arm/arm_sw_vector_relay/src/ |
D | arm_sw_vector_relay.c | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/linker/linker-defs.h> 33 "vector relay table not pointing to the relay handler: 0x%x, 0x%x\n", in ZTEST() 46 uint32_t mask = MAX(128, Z_POW2_CEIL(4 * (16 + CONFIG_NUM_IRQS))) - 1; in ZTEST() 49 "vector table not properly aligned: 0x%x\n", in ZTEST() 52 "vector relay table not properly aligned: 0x%x\n", in ZTEST() 58 zassert_true(SCB->VTOR == (uint32_t)_vector_start, in ZTEST() 62 * before loading any child chain-loadable image. in ZTEST() 65 "vector table pointer not pointing to vector start, 0x%x, 0x%x\n", in ZTEST()
|
/Zephyr-Core-3.5.0/include/zephyr/sys/ |
D | util.h | 2 * Copyright (c) 2011-2014, Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 39 * @defgroup sys-util Utility Functions 44 /** @brief Cast @p x, a pointer, to an unsigned integer. */ 45 #define POINTER_TO_UINT(x) ((uintptr_t) (x)) argument 46 /** @brief Cast @p x, an unsigned integer, to a <tt>void*</tt>. */ 47 #define UINT_TO_POINTER(x) ((void *) (uintptr_t) (x)) argument 48 /** @brief Cast @p x, a pointer, to a signed integer. */ 49 #define POINTER_TO_INT(x) ((intptr_t) (x)) argument 50 /** @brief Cast @p x, a signed integer, to a <tt>void*</tt>. */ [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/ |
D | blob.h | 4 * SPDX-License-Identifier: Apache-2.0 27 #define BLOB_CHUNK_SIZE_MAX(sdu_max) ((sdu_max) - BLOB_CHUNK_SDU_OVERHEAD) 39 #define _BLOB_LOG_2_CEIL(l, x) ((x) <= (1U << l)) ? l : argument 40 #define _BLOB_LOG_2_FLOOR(l, x) ((x) < (1U << (l + 1))) ? l : argument 42 #define BLOB_BLOCK_SIZE_LOG_CEIL(x) (LISTIFY(20, _BLOB_LOG_2_CEIL, (), x) 20) argument 43 #define BLOB_BLOCK_SIZE_LOG_FLOOR(x) (LISTIFY(20, _BLOB_LOG_2_FLOOR, (), x) 20) argument 52 MAX(sizeof(((struct bt_mesh_blob_block *)0)->missing), \ 55 MAX(sizeof(((struct bt_mesh_blob_block *)0)->missing), \ 58 #define BLOB_BLOCK_REPORT_STATUS_MSG_MAXLEN sizeof(((struct bt_mesh_blob_srv *)0)->block.missing) 59 #define BLOB_BLOCK_STATUS_MSG_MAXLEN (5 + sizeof(((struct bt_mesh_blob_srv *)0)->block.missing)) [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/mm/sys_mm_drv_bank/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 12 #define EXPECTED(x) ((x) * CONFIG_MM_DRV_PAGE_SIZE) argument 20 zassert_equal(stats->free_bytes, expected->free_bytes, in test_stats() 22 stats->free_bytes, expected->free_bytes); in test_stats() 23 zassert_equal(stats->allocated_bytes, expected->allocated_bytes, in test_stats() 25 stats->allocated_bytes, expected->allocated_bytes); in test_stats() 26 zassert_equal(stats->max_allocated_bytes, expected->max_allocated_bytes, in test_stats() 28 stats->max_allocated_bytes, in test_stats() 29 expected->max_allocated_bytes); in test_stats() 72 expected.free_bytes = EXPECTED(BANK_PAGES - 2); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ |
D | ticker.h | 2 * Copyright (c) 2016-2018 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 17 /* Macro defining the max. counter update latency in ticks */ 29 #define HAL_TICKER_US_TO_TICKS(x) \ argument 31 ((uint32_t)(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC) / \ 39 #define HAL_TICKER_US_TO_TICKS_CEIL(x) \ argument 41 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \ 47 #define HAL_TICKER_TICKS_TO_US(x) \ argument 49 ((uint32_t)(((uint64_t)(x) * HAL_TICKER_CNTR_CLK_UNIT_FSEC) / \ 53 /* Macro returning remainder in picoseconds (to fit in 32-bits) */ [all …]
|
/Zephyr-Core-3.5.0/lib/os/ |
D | printk.c | 2 * Copyright (c) 2010, 2013-2014 Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 9 * @brief Low-level debug output 11 * Low-level debugging output. Platform installs a character output routine at 73 * current hook - if any - for later re-installation. 92 k_str_out(ctx->buf, ctx->buf_count); in buf_flush() 93 ctx->buf_count = 0U; in buf_flush() 100 ctx->buf[ctx->buf_count++] = c; in buf_char_out() 101 if (ctx->buf_count == CONFIG_PRINTK_BUFFER_SIZE) { in buf_char_out() 187 * printf-like formatting is available. [all …]
|
/Zephyr-Core-3.5.0/drivers/timer/ |
D | ite_it8xxx2_timer.c | 3 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/interrupt-controller/ite-intc.h> 26 /* Event timer max count is 512 sec (base on clock source 32768Hz) */ 38 /* Busy wait high timer max count is 71.58min (base on clock source 1MHz) */ 70 /* Event timer max count is as how much system (kernel) tick */ 130 timer2_reg->ET2PSR = EXT_PSR_32P768K; in timer_5ms_one_shot() 137 timer2_reg->ET2CNTLH2R = (uint8_t)((hw_cnt >> 16) & 0xff); in timer_5ms_one_shot() 138 timer2_reg->ET2CNTLHR = (uint8_t)((hw_cnt >> 8) & 0xff); in timer_5ms_one_shot() 139 timer2_reg->ET2CNTLLR = (uint8_t)(hw_cnt & 0xff); in timer_5ms_one_shot() 153 usec_to_wait--; in arch_busy_wait() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/drivers/i3c/ |
D | ccc.h | 4 * SPDX-License-Identifier: Apache-2.0 89 * Set Max Write Length (Broadcast or Direct) 96 * Set Max Read Length (Broadcast or Direct) 115 /** Enter HDR Mode (HDR-DDR) (Broadcast) */ 116 #define I3C_CCC_ENTHDR(x) (0x20U + (x)) argument 118 /** Enter HDR Mode 0 (HDR-DDR) (Broadcast) */ 121 /** Enter HDR Mode 1 (HDR-TSP) (Broadcast) */ 124 /** Enter HDR Mode 2 (HDR-TSL) (Broadcast) */ 127 /** Enter HDR Mode 3 (HDR-BT) (Broadcast) */ 169 /** Multi-Lane Data Transfer Control (Broadcast) */ [all …]
|
/Zephyr-Core-3.5.0/drivers/ieee802154/ |
D | ieee802154_rf2xx.c | 1 /* ieee802154_rf2xx.c - ATMEL RF2XX IEEE 802.15.4 Driver */ 6 * Copyright (c) 2019-2020 Gerson Fernando Budke 8 * SPDX-License-Identifier: Apache-2.0 67 .rssi = -40, 84 k_sem_give(&ctx->trx_isr_lock); in trx_isr_handler() 111 * Datasheet: Figure 7-13. Timing Example of an RX_AACK Transaction in rf2xx_trx_set_tx_state() 141 struct rf2xx_context *ctx = dev->data; in rf2xx_set_rssi_base() 144 if (ctx->cc_page == IEEE802154_ATTR_PHY_CHANNEL_PAGE_ZERO_OQPSK_2450_BPSK_868_915) { in rf2xx_set_rssi_base() 148 } else if (ctx->cc_page == IEEE802154_ATTR_PHY_CHANNEL_PAGE_TWO_OQPSK_868_915) { in rf2xx_set_rssi_base() 156 ctx->trx_rssi_base = base; in rf2xx_set_rssi_base() [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/ |
D | ull_internal.h | 2 * Copyright (c) 2017-2019 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 12 #define CONN_INTERVAL_MIN(x) (6) argument 15 #define CONN_INTERVAL_MIN(x) (MAX(ull_conn_interval_min_get(x), 1)) argument 22 #define DEFER_APM_CHECK(x, y, z) (false) argument 34 * 0U - Accept CPR (possibly with changed offsets) 35 * BT_HCI_ERR_UNSUPP_LL_PARAM_VAL - Reject CPR 40 #define DEFER_APM_CHECK(x, y, z) (ull_handle_cpr_anchor_point_move(x, y, z)) argument 43 #define RADIO_CONN_EVENTS(x, y) ((uint16_t)DIV_ROUND_UP(x, y)) argument 46 #define RADIO_SYNC_EVENTS(x, y) ((uint16_t)DIV_ROUND_UP(x, y)) argument [all …]
|
/Zephyr-Core-3.5.0/doc/build/dts/ |
D | zephyr_dt_i2c_example.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 6 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 9 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 11 style="background-color: rgb(255, 255, 255);" 15 viewBox="-0.5 -0.5 945 708" 16 …-10-03T19:55:39.802Z" agent="Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Fir… 19 inkscape:version="0.92.4 5da689c313, 2019-01-14" 20 inkscape:export-filename="/home/mbolivar/zp/zephyr/doc/guides/dts/zephyr_dt_i2c_example.png" 21 inkscape:export-xdpi="96" 22 inkscape:export-ydpi="96"> [all …]
|
/Zephyr-Core-3.5.0/boards/xtensa/m5stack_core2/ |
D | m5stack_core2.dts | 4 * SPDX-License-Identifier: Apache-2.0 6 /dts-v1/; 9 #include "m5stack_core2-pinctrl.dtsi" 11 #include <zephyr/dt-bindings/display/ili9xxx.h> 12 #include <zephyr/dt-bindings/regulator/axp192.h> 19 pwr-led = &pwr_led; 20 uart-0 = &uart0; 21 i2c-0 = &i2c0; 30 zephyr,shell-uart = &uart0; 33 zephyr,code-partition = &slot0_partition; [all …]
|
/Zephyr-Core-3.5.0/dts/bindings/regulator/ |
D | x-powers,axp192-regulator.yaml | 3 # SPDX -License-Identifier: Apache-2.0 17 compatible = "x-powers,axp192-regulator"; 41 compatible: "x-powers,axp192-regulator" 45 child-binding: 47 - name: regulator.yaml 48 property-allowlist: 49 - regulator-init-microvolt 50 - regulator-min-microvolt 51 - regulator-max-microvolt 52 - regulator-always-on [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/nordic/lll/ |
D | lll_df_types.h | 4 * SPDX-License-Identifier: Apache-2.0 7 /* @brief Max supported CTE length in 8us units */ 68 #define RSSI_DBM_TO_DECI_DBM(x) (-(x) * 10) argument 82 #define IQ_SAMPLE_CONVERT_12_TO_8_BIT(x) ((int16_t)((x) >> 4)) argument 84 #define IQ_SAMPLE_CONVERT_12_TO_8_BIT(x) ((int16_t)((x) >> 2)) argument 86 #define IQ_SAMPLE_CONVERT_12_TO_8_BIT(x) ((int8_t)(x)) argument 123 uint8_t max_cte_count:5; /* Max number of received CTEs. */
|