Home
last modified time | relevance | path

Searched +full:max +full:- +full:x (Results 1 – 25 of 430) sorted by relevance

12345678910>>...18

/Zephyr-latest/dts/bindings/input/
Dxptek,xpt2046.yaml2 # 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 …]
Dcirque,pinnacle-common.yaml2 # SPDX-License-Identifier: Apache-2.0
7 data-ready-gpios:
8 type: phandle-array
16 default: "4x"
18 ADC attenuation, 1x is the most sensitive and 4x is the least sensitive.
20 - "1x"
21 - "2x"
22 - "3x"
23 - "4x"
25 data-mode:
[all …]
Dst,stmpe811.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [i2c-device.yaml, touchscreen-common.yaml]
11 int-gpios:
12 type: phandle-array
17 raw-x-min:
20 Signed raw X axis start for scaling the reported coordinates.
23 raw-y-min:
29 raw-x-max:
32 Raw X axis end for scaling the reported coordinates.
35 raw-y-max:
[all …]
Danalog-axis.yaml2 # SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
15 compatible = "analog-axis";
16 poll-period-ms = <15>;
17 axis-x {
18 io-channels = <&adc 0>;
19 in-deadzone = <50>;
20 in-min = <100>;
21 in-max = <800>;
26 compatible: "analog-axis"
[all …]
/Zephyr-latest/drivers/watchdog/
Dwdt_opentitan.c4 * 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-latest/drivers/can/
Dcan_common.c4 * SPDX-License-Identifier: Apache-2.0
30 ctx->status = error; in can_tx_default_cb()
31 k_sem_give(&ctx->done); in can_tx_default_cb()
38 const struct can_driver_api *api = (const struct can_driver_api *)dev->api; in z_impl_can_send()
42 return -EINVAL; in z_impl_can_send()
45 if ((frame->flags & CAN_FRAME_IDE) != 0U) { in z_impl_can_send()
51 CHECKIF((frame->id & ~(id_mask)) != 0U) { in z_impl_can_send()
52 LOG_ERR("invalid frame with %s (%d-bit) CAN ID 0x%0*x", in z_impl_can_send()
53 (frame->flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in z_impl_can_send()
54 (frame->flags & CAN_FRAME_IDE) != 0 ? 29 : 11, in z_impl_can_send()
[all …]
/Zephyr-latest/tests/lib/c_lib/common/src/
Dtest_sqrt.c4 * SPDX-License-Identifier: Apache-2.0
13 #define local_abs(x) (((x) < 0) ? -(x) : (x)) argument
42 static int isinf(double x) in isinf() argument
45 ieee754.d = x; in isinf()
53 static int isnan(double x) in isnan() argument
56 ieee754.d = x; in isnan()
64 static int isinff(float x) in isinff() argument
67 ieee754.f = x; in isinff()
75 static int isnanf(float x) in isnanf() argument
78 ieee754.f = x; in isnanf()
[all …]
/Zephyr-latest/tests/drivers/build_all/input/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
11 #address-cells = <1>;
12 #size-cells = <1>;
17 #io-channel-cells = <1>;
18 #address-cells = <1>;
19 #size-cells = <0>;
26 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
32 gpio-controller;
34 #gpio-cells = <0x2>;
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/
Dticker.h2 * Copyright (c) 2016-2018 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
20 /* Macro defining the max. counter update latency in ticks */
35 /* Macro defining the max. counter update latency in ticks */
46 #define HAL_TICKER_US_TO_TICKS(x) \ argument
48 ((uint32_t)(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC) / \
56 #define HAL_TICKER_US_TO_TICKS_CEIL(x) \ argument
58 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \
64 #define HAL_TICKER_TICKS_TO_US_64BIT(x) \ argument
66 (((uint64_t)(x) * HAL_TICKER_CNTR_CLK_UNIT_FSEC) / \
[all …]
/Zephyr-latest/scripts/gitlint/
Dzephyr_commit_rules.py1 # 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-latest/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/
Dticker.h2 * Copyright (c) 2016-2018 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
16 /* Macro defining the max. counter update latency in ticks */
33 #define HAL_TICKER_US_TO_TICKS(x) \ argument
35 ((uint32_t)(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC) / \
43 #define HAL_TICKER_US_TO_TICKS_CEIL(x) \ argument
45 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \
51 #define HAL_TICKER_TICKS_TO_US(x) \ argument
53 ((uint32_t)(((uint64_t)(x) * HAL_TICKER_CNTR_CLK_UNIT_FSEC) / \
57 /* Macro returning remainder in picoseconds (to fit in 32-bits) */
[all …]
Dswi.h4 * 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-latest/samples/drivers/jesd216/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
40 [JESD216_MODE_111] = "1-1-1",
41 [JESD216_MODE_112] = "1-1-2",
42 [JESD216_MODE_114] = "1-1-4",
43 [JESD216_MODE_118] = "1-1-8",
44 [JESD216_MODE_122] = "1-2-2",
45 [JESD216_MODE_144] = "1-4-4",
46 [JESD216_MODE_188] = "1-8-8",
47 [JESD216_MODE_222] = "2-2-2",
48 [JESD216_MODE_444] = "4-4-4",
[all …]
/Zephyr-latest/tests/arch/arm/arm_sw_vector_relay/src/
Darm_sw_vector_relay.c4 * 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-latest/tests/drivers/flash_simulator/flash_sim_impl/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
76 "flash word at offset 0x%x has value 0x%08x, " \ in test_check_pattern32()
77 "expected 0x%08x", in test_check_pattern32()
93 size_t chunk = MIN(size - i, sizeof(buf)); in test_check_erase()
107 if ((uint8_t)buf[i & (sizeof(buf) - 1)] != in test_check_erase()
114 --chunk; in test_check_erase()
144 "sim flash byte at offset 0x%x has value 0x%08x", in ZTEST()
165 "flash_write (%d) should succeed at off 0x%x", rc, in test_write_read()
178 "flash byte at offset 0x%x has value 0x%08x, expected" \ in test_write_read()
179 " 0x%08x", in test_write_read()
[all …]
/Zephyr-latest/samples/bluetooth/central_multilink/src/
Dcentral_multilink.c1 /* 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)
74 if (rssi < -50) { in device_found()
186 printk("Disconnected: %s, reason 0x%02x %s\n", addr, reason, bt_hci_err_to_str(reason)); in disconnected()
194 conn_count--; in disconnected()
203 printk("LE conn param req: %s int (0x%04x, 0x%04x) lat %d to %d\n", in le_param_req()
204 addr, param->interval_min, param->interval_max, param->latency, in le_param_req()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dblob.h4 * SPDX-License-Identifier: Apache-2.0
27 #define BLOB_CHUNK_SIZE_MAX(sdu_max) ((sdu_max) - BLOB_CHUNK_SDU_OVERHEAD)
53 #define _BLOB_LOG_2_CEIL(l, x) ((x) <= (1U << l)) ? l : argument
54 #define _BLOB_LOG_2_FLOOR(l, x) ((x) < (1U << (l + 1))) ? l : argument
56 #define BLOB_BLOCK_SIZE_LOG_CEIL(x) (LISTIFY(20, _BLOB_LOG_2_CEIL, (), x) 20) argument
57 #define BLOB_BLOCK_SIZE_LOG_FLOOR(x) (LISTIFY(20, _BLOB_LOG_2_FLOOR, (), x) 20) argument
66 MAX(sizeof(((struct bt_mesh_blob_block *)0)->missing), \
69 MAX(sizeof(((struct bt_mesh_blob_block *)0)->missing), \
72 #define BLOB_BLOCK_REPORT_STATUS_MSG_MAXLEN sizeof(((struct bt_mesh_blob_srv *)0)->block.missing)
73 #define BLOB_BLOCK_STATUS_MSG_MAXLEN (5 + sizeof(((struct bt_mesh_blob_srv *)0)->block.missing))
[all …]
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/include/hal/
Dticker_vendor_hal.h4 * SPDX-License-Identifier: Apache-2.0
15 /* Macro defining the max. counter update latency in ticks */
27 #define HAL_TICKER_US_TO_TICKS(x) \ argument
29 ((uint32_t)(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC) / \
37 #define HAL_TICKER_US_TO_TICKS_CEIL(x) \ argument
39 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \
45 #define HAL_TICKER_TICKS_TO_US(x) \ argument
47 ((uint32_t)(((uint64_t)(x) * HAL_TICKER_CNTR_CLK_UNIT_FSEC) / \
51 /* Macro returning remainder in picoseconds (to fit in 32-bits) */
52 #define HAL_TICKER_REMAINDER(x) \ argument
[all …]
/Zephyr-latest/boards/m5stack/m5stack_core2/
Dm5stack_core2_procpu.dts4 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
9 #include "m5stack_core2-pinctrl.dtsi"
12 #include <zephyr/dt-bindings/display/ili9xxx.h>
13 #include <zephyr/dt-bindings/regulator/axp192.h>
21 pwr-led = &pwr_led;
22 uart-0 = &uart0;
23 i2c-0 = &i2c0;
33 zephyr,shell-uart = &uart0;
36 zephyr,code-partition = &slot0_partition;
[all …]
/Zephyr-latest/tests/drivers/mm/sys_mm_drv_bank/src/
Dmain.c4 * 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-latest/boards/m5stack/m5stickc_plus/
Dm5stickc_plus_procpu.dts4 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
9 #include "m5stickc_plus-pinctrl.dtsi"
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
11 #include <zephyr/dt-bindings/regulator/axp192.h>
12 #include <zephyr/dt-bindings/mipi_dbi/mipi_dbi.h>
17 compatible = "m5stack,m5stickc-plus";
23 uart-0 = &uart0;
24 i2c-0 = &i2c0;
33 zephyr,shell-uart = &uart0;
[all …]
/Zephyr-latest/tests/drivers/build_all/display/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 * with real-world devicetree nodes, to allow these tests to run on
13 #include <zephyr/dt-bindings/led/led.h>
14 #include <zephyr/dt-bindings/mipi_dbi/mipi_dbi.h>
18 #address-cells = <1>;
19 #size-cells = <1>;
23 gpio-controller;
25 #gpio-cells = <0x2>;
30 compatible = "zephyr,mipi-dbi-spi";
32 dc-gpios = <&test_gpio 0 0>;
[all …]
/Zephyr-latest/lib/os/
Dprintk.c2 * 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
17 #include <zephyr/sys/printk-hooks.h>
78 k_str_out(ctx->buf, ctx->buf_count); in buf_flush()
79 ctx->buf_count = 0U; in buf_flush()
86 ctx->buf[ctx->buf_count] = c; in buf_char_out()
87 ++ctx->buf_count; in buf_char_out()
88 if (ctx->buf_count == CONFIG_PRINTK_BUFFER_SIZE) { in buf_char_out()
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx.c1 /* 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-latest/dts/bindings/regulator/
Dx-powers,axp192-regulator.yaml3 # 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 …]

12345678910>>...18