/Zephyr-latest/dts/bindings/led_strip/ |
D | worldsemi,ws2812-i2s.yaml | 2 # SPDX-License-Identifier: Apache-2.0 10 compatible: "worldsemi,ws2812-i2s" 12 include: [i2s-device.yaml, ws2812.yaml] 16 out-active-low: 20 nibble-one: 23 description: 4-bit value to shift out for a 1 pulse. 25 nibble-zero: 28 description: 4-bit value to shift out for a 0 pulse. 30 lrck-period: 35 extra-wait-time: [all …]
|
/Zephyr-latest/drivers/entropy/ |
D | entropy_esp32.c | 4 * SPDX-License-Identifier: Apache-2.0 26 * of extra entropy from a hardware randomness source every APB clock cycle in entropy_esp32_get_u32() 28 * faster than it is added, this function needs to wait for at least 16 APB in entropy_esp32_get_u32() 30 * wait a bit longer due to extra time spent in arithmetic and branch statements. in entropy_esp32_get_u32() 41 } while (ccount - last_ccount < cpu_to_apb_freq_ratio * 16); in entropy_esp32_get_u32() 59 len -= to_copy; in entropy_esp32_get_entropy() 76 return -ENODEV; in entropy_esp32_init()
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/ |
D | blob_cli.rst | 18 .. code-block:: C 37 Inputs structure must at least be initialized with a list of targets, an application key and a time 40 .. code-block:: c 61 ------------- 69 BLOB Transfer Client sends each message to all Target nodes at the same time. However, sending 78 ---------------- 80 If a Target node fails to respond to an acknowledged message within the BLOB Transfer Client's time 82 by giving the BLOB Transfer Client extra time through the context structure. The extra time may be 83 set in 10-second increments, up to 182 hours, in addition to the base time of 20 seconds. The wait 84 time scales automatically with the transfer TTL. [all …]
|
/Zephyr-latest/tests/boards/native_sim/cpu_wait/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 21 * at a time 31 zassert_true(time2 - time1 == wait_times[i], in ZTEST() 33 PRIu64"-"PRIu64"!="PRIu32"\n", in ZTEST() 41 zassert_true(time2 - time1 == wait_times[i], in ZTEST() 43 PRIu64"-"PRIu64"!="PRIu32"\n", in ZTEST() 74 * Thread meant to come up and waste time during the k_busy_wait() and 93 /* Waste time */ in thread_entry() 102 * takes time during this test thread waits 106 * probably give problems if the tick time is not a relatively even number [all …]
|
/Zephyr-latest/samples/boards/espressif/light_sleep/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 23 /* Add an extra delay when sleeping to make sure that light sleep 34 printk("Error: button device %s is not ready\n", button.port->name); in main() 48 /* Wait until GPIO goes high */ in main() 58 * need to wait until UART TX FIFO is empty in main() 66 * pre-defined power state. Light sleep is used here because there is enough in main() 67 * time to consider it, energy-wise, worthy. in main() 92 wakeup_reason, t_after_ms, (t_after_ms - t_before_ms)); in main()
|
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/ |
D | ec_host_cmd_backend_uart.c | 4 * SPDX-License-Identifier: Apache-2.0 64 * If extra bytes are received when the host command is being processed, 65 * host is sending extra bytes which indicates data overrun. 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() 121 switch (hc_uart->state) { in rx_timeout() 128 * process request was cancelled and extra rx bytes were 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() [all …]
|
/Zephyr-latest/doc/kernel/services/scheduling/ |
D | index.rst | 6 The kernel's priority-based scheduler allows an application's threads 13 at any point in time; this thread is known as the **current thread**. 15 There are various points in time when the scheduler is given an 19 - transition of a thread from running state to a suspended or waiting 21 - transition of a thread to the :ref:`ready state <thread_states>`, for 23 - return to thread context after processing an interrupt 24 - when a running thread invokes :c:func:`k_yield` 43 However, when both earliest-deadline-first scheduling is enabled 46 to have the higher priority. Thus, when earliest-deadline-first scheduling is 54 at any time unless interrupts have been masked. This applies to both [all …]
|
/Zephyr-latest/tests/benchmarks/latency_measure/ |
D | README.rst | 7 * Context switch time between preemptive threads using k_yield 8 * Context switch time between cooperative threads using k_yield 9 * Time to switch from ISR back to interrupted thread 10 * Time from ISR to executing a different thread (rescheduled) 11 * Time to signal a semaphore then test that semaphore 12 * Time to signal a semaphore then test that semaphore with a context switch 14 * Time it takes to create a new thread (without starting it) 15 * Time it takes to start a newly created thread 16 * Time it takes to suspend a thread 17 * Time it takes to resume a suspended thread [all …]
|
/Zephyr-latest/kernel/ |
D | Kconfig | 3 # Copyright (c) 2014-2015 Wind River Systems, Inc. 4 # SPDX-License-Identifier: Apache-2.0 9 module-str = kernel 13 bool "Multi-threading" if ARCH_HAS_SINGLE_THREAD_SUPPORT 35 K_PRIO_COOP(0) to K_PRIO_COOP(CONFIG_NUM_COOP_PRIORITIES - 1) 39 -CONFIG_NUM_COOP_PRIORITIES to -1 48 The extra one is for the idle thread, which must run at the lowest 58 to priorities 0 to CONFIG_NUM_PREEMPT_PRIORITIES - 1. 66 The extra one is for the idle thread, which must run at the lowest 71 default -2 if !PREEMPT_ENABLED [all …]
|
/Zephyr-latest/boards/native/doc/ |
D | arch_soc.rst | 22 Zephyr application, eliminating the need for architecture-specific 56 You must have the 32-bit C library installed in your system 57 (in Ubuntu 16.04 install the gcc-multilib package) 67 for Linux (WSL1) because WSL1 does not support native 32-bit binaries. 72 <https://github.com/microsoft/WSL/issues/2468#issuecomment-374904520>`_ it 88 which runs at an infinitely fast clock: No time passes while the CPU is 102 - There can **not** be busy wait loops in the application code that wait for 104 If busy wait loops do exist, they will behave as infinite loops and 105 will stall the execution. For example, the following busy wait loop code, 109 .. code-block:: c [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | phy_gecko.c | 5 * SPDX-License-Identifier: Apache-2.0 18 /* Maximum time to establish a link through auto-negotiation for 19 * 10BASE-T, 100BASE-TX is 3.7s, to add an extra margin the timeout 27 eth->NETWORKCTRL |= ETH_NETWORKCTRL_MANPORTEN; in mdio_bus_enable() 33 eth->NETWORKCTRL &= ~ETH_NETWORKCTRL_MANPORTEN; in mdio_bus_disable() 36 /* Wait PHY operation complete. */ 39 uint32_t retries = 100U; /* will wait up to 1 s */ in mdio_bus_wait() 41 while (!(eth->NETWORKSTATUS & ETH_NETWORKSTATUS_MANDONE)) { in mdio_bus_wait() 42 if (retries-- == 0U) { in mdio_bus_wait() 44 return -ETIMEDOUT; in mdio_bus_wait() [all …]
|
/Zephyr-latest/doc/kernel/services/ |
D | polling.rst | 6 The polling API is used to wait concurrently for any one of multiple conditions 20 The polling API allows a single thread to wait concurrently for one or more 25 - a semaphore becomes available 26 - a kernel FIFO contains data ready to be retrieved 27 - a kernel message queue contains data ready to be retrieved 28 - a kernel pipe contains data ready to be retrieved 29 - a poll signal is raised 31 A thread that wants to wait on multiple conditions must define an array of 48 Apart from the kernel objects, there is also a **poll signal** pseudo-object 54 :c:func:`k_poll` was called, or due to the preemptive multi-threading [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_friendship.c | 4 * SPDX-License-Identifier: Apache-2.0 77 while (--polls) { in friend_wait_for_polls() 78 /* Wait for LPN to poll until the "no more data" message. in friend_wait_for_polls() 87 K_SECONDS(2)) != -EAGAIN) { in friend_wait_for_polls() 88 FAIL("Unexpected extra poll"); in friend_wait_for_polls() 95 /** Initialize as a friend and wait for the friendship to be established. 110 /** Initialize as a friend, and wait for multiple friendships to be established 129 /* Wait for all friends to do at least one poll without terminating */ in test_friend_est_multi() 163 /* Wait for LPN to poll for message and the "no more messages" msg */ in test_friend_msg() 175 * This tests the friend role's re-encryption mechanism for the second in test_friend_msg() [all …]
|
/Zephyr-latest/tests/kernel/events/event_api/src/ |
D | test_event_apis.c | 4 * SPDX-License-Identifier: Apache-2.0 53 * This is a white-box test to verify that the k_event_init() API initializes 65 * The type of wait queue used by the event may vary depending upon in ZTEST() 80 * Sync point 1-1 : test_event contains events 0x1234. in receive_existing_events() 81 * Test for events 0x2448 (no waiting)--expect an error in receive_existing_events() 89 * Sync point 1-2 : test_event still contains event 0x1234. in receive_existing_events() 90 * Test for events 0x2448 (with waiting)--expect an error in receive_existing_events() 98 * Sync point 1-3: test_event still contains event 0x1234. in receive_existing_events() 99 * Test for events 0x1235 (no waiting)--expect an error in receive_existing_events() 107 * Sync point 1-4: test_event still contains event 0x1234. in receive_existing_events() [all …]
|
/Zephyr-latest/subsys/bluetooth/common/ |
D | Kconfig | 5 # SPDX-License-Identifier: Apache-2.0 21 In a Host-only build the Host will read the maximum ACL size supported 81 int "Number of extra incoming ACL data buffers" 85 Number of incoming extra ACL data buffers sent from the Controller to 109 enforced by a build-time check: BT_BUF_ACL_RX_COUNT needs to be at 195 ZEPHYR_BT_HCI := zephyr,bt-hci 199 default $(dt_chosen_bool_prop,$(ZEPHYR_BT_HCI),bt-hci-vs-ext) 202 for the Zephyr HCI Vendor-Specific Commands and Event. 205 bool "Zephyr HCI Vendor-Specific Commands" 209 Enable support for the Zephyr HCI Vendor-Specific Commands in the [all …]
|
/Zephyr-latest/arch/arm64/core/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 18 This option signifies the use of a CPU of the Cortex-A family. 31 This option signifies the use of a CPU of the Cortex-R 64-bit family. 38 This option signifies the use of a Cortex-A53 CPU 45 This option signifies the use of a Cortex-A55 CPU 52 This option signifies the use of a Cortex-A57 CPU 59 This option signifies the use of a Cortex-A72 CPU 66 This option signifies the use of a Cortex-A76 CPU 73 This option signifies the use of a Cortex-A76 and A55 big little CPU cluster 80 This option signifies the use of a Cortex-R82 CPU [all …]
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 15 module-dep = LOG 16 module-str = Log level for LwM2M library 90 bool "Use path matching as fallback for cancel-observe" 93 implementations to implement cancel-observe by specifying the resource 95 this option, cancel-observe may not work properly when connecting to 104 int "Specify time the LwM2M client should stay online in queue mode." if LWM2M_QUEUE_MODE_ENABLED 107 This config specifies time (in seconds) the device should stay online 140 According to LwM2M specification v1.0 and v1.1, non-core object versions other than 1.0 177 int "Default server ssid when using the lwm2m-client. (used for access control)" [all …]
|
/Zephyr-latest/drivers/i3c/ |
D | i3c_mcux.c | 6 * SPDX-License-Identifier: Apache-2.0 129 * @param reg Pointer to 32-bit Register. 134 * @retval 0 If masked register value matches before time out. 135 * @retval -ETIMEDOUT Timedout without matching. 143 * quickly (some sub-microseconds) so no extra in reg32_poll_timeout() 147 return -ETIMEDOUT; in reg32_poll_timeout() 155 * @param reg Pointer to 32-bit Register. 173 * @param reg Pointer to 32-bit register. 190 * @param reg Pointer to 32-bit register. 209 uint32_t intmask = base->MINTSET; in mcux_i3c_interrupt_disable() [all …]
|
/Zephyr-latest/include/zephyr/ |
D | kernel.h | 4 * SPDX-License-Identifier: Apache-2.0 53 #define K_PRIO_COOP(x) (-(CONFIG_NUM_COOP_PRIORITIES - (x))) 56 #define K_HIGHEST_THREAD_PRIO (-CONFIG_NUM_COOP_PRIORITIES) 60 #define K_LOWEST_APPLICATION_THREAD_PRIO (K_LOWEST_THREAD_PRIO - 1) 245 * bits, arch-specific use high bits. 289 * from within a user-provided callback they have been invoked. 290 * Effectively it serves as a tiny bit of zero-overhead TLS data. 328 /* end - thread options */ 335 * - @ref K_USER allocate a userspace thread (requires `CONFIG_USERSPACE=y`) 353 * @retval -EBUSY if the thread stack is in use. [all …]
|
/Zephyr-latest/tests/net/dhcpv4/server/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 20 /* 00-00-5E-00-53-xx Documentation RFC 7042 */ 57 #define NO_LEASE_TIME -1 77 size_t payload_len = net_pkt_get_len(pkt) - net_pkt_ip_hdr_len(pkt) - in send_icmp_echo_reply() 84 zassert_ok(net_ipv4_create(reply, (struct in_addr *)ipv4_hdr->dst, in send_icmp_echo_reply() 85 (struct in_addr *)ipv4_hdr->src), in send_icmp_echo_reply() 107 if (ipv4_hdr->proto == IPPROTO_ICMP) { in server_send() 110 memcpy(&test_ctx.declined_ip, ipv4_hdr->dst, in server_send() 239 /* Wait for reply */ in client_send_discover() 241 zassert_ok(ret, "Exchange not completed in required time"); in client_send_discover() [all …]
|
/Zephyr-latest/doc/connectivity/networking/ |
D | net_config_guide.rst | 17 are able to either send or receive at the same time. 20 Maximum amount of network packets we can receive at the same time. 23 Maximum amount of network packet sends pending at the same time. 52 data we need for the network data. The extra cost here is the amount of time 79 5-tuple that is used when listening or sending network traffic. Each BSD socket in the 155 How long to wait in TCP *TIME_WAIT* state (in milliseconds). 156 To avoid a (low-probability) issue when delayed packets from 159 `RFC 793 <https://www.rfc-editor.org/rfc/rfc793>`_ (TCP) suggests 167 For low-resource systems, having large MSL may lead to quick 168 resource exhaustion (and related DoS attacks). At the same time, [all …]
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | h4_ifx_cyw43xxx.c | 5 * SPDX-License-Identifier: Apache-2.0 32 /* BT settling time after power on */ 60 * This function executes vendor-specific commands sequence to 62 * bt_h4_vnd_setup function must be implemented in vendor-specific HCI 79 /* Re-configure UART */ in bt_hci_uart_set_baudrate() 96 * - To speed up application downloading, the MCU host commands the CYWxxx device in bt_update_controller_baudrate() 100 * In the above command, the xx xx xx xx bytes specify the 32-bit little-endian in bt_update_controller_baudrate() 105 * - The host switches to the new baud rate after receiving the response at the old in bt_update_controller_baudrate() 121 * It will be BT_HCI_OP_RESET with extra parameters. in bt_update_controller_baudrate() 127 return -ENOMEM; in bt_update_controller_baudrate() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/ |
D | radio.c | 2 * Copyright (c) 2016 - 2020 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/dt-bindings/gpio/gpio.h> 84 /* These headers require the above gpiote-related variables to be declared. */ 93 * can't use the Zephyr GPIO API here, so we need this extra 131 NRF_DT_CHECK_GPIO_CTLR_IS_SOC(FEM_NODE, pdn_gpios, "pdn-gpios"); 171 NRF_GPIO_PA->DIRSET = BIT(NRF_GPIO_PA_PIN); in radio_setup() 173 NRF_GPIO_PA->OUTSET = BIT(NRF_GPIO_PA_PIN); in radio_setup() 175 NRF_GPIO_PA->OUTCLR = BIT(NRF_GPIO_PA_PIN); in radio_setup() 180 NRF_GPIO_LNA->DIRSET = BIT(NRF_GPIO_LNA_PIN); in radio_setup() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull.c | 2 * Copyright (c) 2017-2021 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 92 #define BT_ADV_TICKER_NODES ((TICKER_ID_ADV_LAST) - (TICKER_ID_ADV_STOP) + 1) 94 #define BT_ADV_AUX_TICKER_NODES ((TICKER_ID_ADV_AUX_LAST) - \ 97 #define BT_ADV_SYNC_TICKER_NODES ((TICKER_ID_ADV_SYNC_LAST) - \ 100 #define BT_ADV_ISO_TICKER_NODES ((TICKER_ID_ADV_ISO_LAST) - \ 122 #define BT_SCAN_TICKER_NODES ((TICKER_ID_SCAN_LAST) - (TICKER_ID_SCAN_STOP) + 1) 127 #define BT_SCAN_AUX_TICKER_NODES ((TICKER_ID_SCAN_AUX_LAST) - \ 131 #define BT_SCAN_SYNC_TICKER_NODES ((TICKER_ID_SCAN_SYNC_LAST) - \ 134 #define BT_SCAN_SYNC_ISO_TICKER_NODES ((TICKER_ID_SCAN_SYNC_ISO_LAST) - \ [all …]
|
/Zephyr-latest/tests/kernel/events/sys_event/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 64 * This is a white-box test to verify that the k_event_init() API initializes 78 * Sync point 1-1 : test_event contains events 0x1234. in receive_existing_events() 79 * Test for events 0x2448 (no waiting)--expect an error in receive_existing_events() 87 * Sync point 1-2 : test_event still contains event 0x1234. in receive_existing_events() 88 * Test for events 0x2448 (with waiting)--expect an error in receive_existing_events() 96 * Sync point 1-3: test_event still contains event 0x1234. in receive_existing_events() 97 * Test for events 0x1235 (no waiting)--expect an error in receive_existing_events() 105 * Sync point 1-4: test_event still contains event 0x1234. in receive_existing_events() 106 * Test for events 0x1235 (no waiting)--expect an error in receive_existing_events() [all …]
|