/Zephyr-latest/dts/bindings/watchdog/ |
D | nuvoton,npcx-watchdog.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: Nuvoton, NPCX-TWD node 6 compatible: "nuvoton,npcx-watchdog" 13 t0-out: 17 Mapping table between Wake-Up Input (WUI) and t0-out timer expired signal. 18 For example, the WUI mapping on NPCX7 t0-out timer would be 19 t0-out = <&wui_t0out>;
|
/Zephyr-latest/soc/common/riscv-privileged/ |
D | vector.S | 2 * Copyright (c) 2017 Jean-Paul Etienne <fractalclone@gmail.com> 5 * SPDX-License-Identifier: Apache-2.0 41 la t0, _isr_wrapper 43 add t0, zero, zero 45 addi t0, t0, 0x03 /* Enable CLIC vectored mode by setting LSB */ 46 csrw mtvec, t0 60 la t0, _irq_vector_table 61 csrw 0x307, t0 /* mtvt */ 68 * Set mtvec (Machine Trap-Vector Base-Address Register) 71 * is used (LSB = 0x1). CPU will mask the LSB out of [all …]
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_npcx.c | 4 * SPDX-License-Identifier: Apache-2.0 14 * clocks and interrupts (T0 Timer) used for its callback functions in the 18 * +---------------------+ +-----------------+ 19 * LFCLK --->| T0 Prescale Counter |-+->| 16-Bit T0 Timer |--------> T0 Timer 21 * +---------------------+ | +-----------------+ 22 * +---------------------------------+ 24 * | +-------------------+ +-----------------+ 25 * +--->| Watchdog Prescale |--->| 8-Bit Watchdog |-----> Watchdog Event/Reset 27 * +-------------------+ +-----------------+ 50 * (TWCP) to 0x5. Since the watchdog counter is 8-bits, maximum time supported [all …]
|
/Zephyr-latest/tests/arch/riscv/fatal/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 13 * Value is register ABI name kinda spelled out, in main() 16 * follwed by the "hex-coded-decismal" number of the register. in main() 19 /* "RA" -> "DA". Kind of a stretch, but okay. */ in main() 25 /* T0 -> D0. Kinda close in pronunciation. */ in main() 29 /* S0 -> C0. Kinda close in pronunciation. */ in main() 32 /* A0 -> A0. Actual match! */ in main() 58 "li t0, 0\n\t" in main()
|
/Zephyr-latest/tests/boards/mtk_adsp/src/ |
D | main.c | 2 * SPDX-License-Identifier: Apache-2.0 9 /* Simple test of SOC-specific hardware on the MediaTek Audio DSP 25 uint32_t t0 = k_cycle_get_32(), cc0 = ccount(); in cpu_hz() local 30 uint32_t hz = ((uint64_t)cc1 - cc0) * NOM_HZ / (t1 - t0); in cpu_hz() 49 int32_t err = hz0 / abs((int32_t)(hz0 - hz)); in ZTEST() 71 /* Test in/out interrupts from the host. This relies on a SOF driver
|
/Zephyr-latest/drivers/led_strip/ |
D | ws2812_rpi_pico_pio.c | 4 * SPDX-License-Identifier: Apache-2.0 11 #include <zephyr/dt-bindings/led/led.h> 42 const struct ws2812_led_strip_config *config = dev->config; in ws2812_led_strip_sm_init() 44 sys_clock_hw_cycles_per_sec() / (config->cycles_per_bit * config->frequency); in ws2812_led_strip_sm_init() 49 pio = pio_rpi_pico_get_pio(config->piodev); in ws2812_led_strip_sm_init() 53 return -EINVAL; in ws2812_led_strip_sm_init() 57 sm_config_set_sideset_pins(&sm_config, config->gpio_pin); in ws2812_led_strip_sm_init() 58 sm_config_set_out_shift(&sm_config, false, true, (config->num_colors == 4 ? 32 : 24)); in ws2812_led_strip_sm_init() 61 pio_sm_set_consecutive_pindirs(pio, sm, config->gpio_pin, 1, true); in ws2812_led_strip_sm_init() 62 pio_sm_init(pio, sm, -1, &sm_config); in ws2812_led_strip_sm_init() [all …]
|
/Zephyr-latest/soc/mediatek/mt8xxx/ |
D | cpuclk.c | 2 * SPDX-License-Identifier: Apache-2.0 13 * * power-on default is 26Mhz, confirmed with a hacked SOF that 14 * loads but stubs out the clk code. 72 /* Can't use CPU-counted loops when changing CPU speed, and don't have 80 uint32_t t0 = TIMER; in delay_us() local 82 while (TIMER - t0 < (us * 13)) { in delay_us() 107 * used to set 4-bit fields at a specific offset. After that, a 162 mtk_adsp_set_cpu_freq(freqs[ARRAY_SIZE(freqs) - 1].mhz); in mtk_adsp_cpu_freq_init()
|
/Zephyr-latest/drivers/sdhc/ |
D | sdhc_esp32.c | 4 * SPDX-License-Identifier: Apache-2.0 81 uint32_t bus_clock; /* Value in Hz. ESP-IDF functions use kHz instead */ 98 * - one is the clock generator which drives SDMMC peripheral, 99 * it can be configured using sdio_hw->clock register. It can generate 101 * - 4 clock dividers inside SDMMC peripheral, which can divide clock 105 * For cards which aren't UHS-1 or UHS-2 cards, which we don't support, 107 * Note: for non-UHS-1 cards, HS mode is optional. 140 sdio_hw->ctrl.dma_enable = 1; in sdmmc_host_dma_init() 141 sdio_hw->bmod.val = 0; in sdmmc_host_dma_init() 142 sdio_hw->bmod.sw_reset = 1; in sdmmc_host_dma_init() [all …]
|
/Zephyr-latest/subsys/net/lib/coap/ |
D | coap_client.c | 4 * SPDX-License-Identifier: Apache-2.0 48 return ret >= 0 ? ret : -errno; in send_request() 64 return err >= 0 ? err : -errno; in receive() 73 .last_response_id = -1, in reset_internal_request() 83 request->request_ongoing = false; in release_internal_request() 84 request->pending.timeout = 0; in release_internal_request() 91 client->fd = sock; in coap_client_schedule_poll() 92 memcpy(&internal_req->coap_request, req, sizeof(struct coap_client_request)); in coap_client_schedule_poll() 93 internal_req->request_ongoing = true; in coap_client_schedule_poll() 104 if (coap_header_get_type(&internal_req->request) == COAP_TYPE_NON_CON) { in exchange_lifetime_exceeded() [all …]
|
D | coap.c | 4 * SPDX-License-Identifier: Apache-2.0 32 /* Values as per RFC 7252, section-3.1. 34 * Option Delta/Length: 4-bit unsigned integer. A value between 0 and 37 * 13: An 8-bit unsigned integer precedes the Option Value and indicates 39 * 14: A 16-bit unsigned integer in network byte order precedes the 73 cpkt->data[offset] = data; in encode_u8() 74 ++cpkt->offset; in encode_u8() 79 cpkt->data[offset] = data >> 8; in encode_be16() 80 cpkt->data[offset + 1] = (uint8_t)data; in encode_be16() 81 cpkt->offset += 2; in encode_be16() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | crypto.c | 5 * SPDX-License-Identifier: Apache-2.0 82 uint8_t out[16]; in bt_mesh_k2() local 109 err = bt_mesh_aes_cmac_raw_key(t, sg, ARRAY_SIZE(sg), out); in bt_mesh_k2() 114 net_id[0] = out[15] & 0x7f; in bt_mesh_k2() 116 sg[0].data = out; in bt_mesh_k2() 117 sg[0].len = sizeof(out); in bt_mesh_k2() 120 err = bt_mesh_aes_cmac_raw_key(t, sg, ARRAY_SIZE(sg), out); in bt_mesh_k2() 125 err = bt_mesh_key_import(BT_MESH_KEY_TYPE_CCM, out, enc_key); in bt_mesh_k2() 132 err = bt_mesh_aes_cmac_raw_key(t, sg, ARRAY_SIZE(sg), out); in bt_mesh_k2() 137 err = bt_mesh_key_import(BT_MESH_KEY_TYPE_ECB, out, priv_key); in bt_mesh_k2() [all …]
|
/Zephyr-latest/scripts/kconfig/ |
D | kconfiglib.py | 1 # 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/tests/kernel/context/src/ |
D | main.c | 2 * Copyright (c) 2012-2015 Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 42 #define UNKNOWN_COMMAND -1 43 #define INVALID_BEHAVIOUR -2 54 * The Cortex-M use the SYSTICK exception for the system timer, which is 75 /* Cortex-M1 and Nios II do have a power saving instruction, so k_cpu_idle() 138 if (arch_current_thread()->base.prio < 0) { in isr_handler() 225 uint64_t t0, dt; in _test_kernel_cpu_idle() local 236 t0 = k_uptime_ticks(); in _test_kernel_cpu_idle() 251 dt = k_uptime_ticks() - t0; in _test_kernel_cpu_idle() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_engine/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 75 /* It is enough that some slow-down is happening on sleeps, it does not have to be in setup() 104 ctx.sock_fd = -1; in ZTEST() 134 ctx.sock_fd = -1; in ZTEST() 140 zassert_equal(ret, -EPERM); in ZTEST() 180 ctx.sock_fd = -1; in ZTEST() 184 zassert_equal(ret, -EPROTONOSUPPORT); in ZTEST() 195 ctx.sock_fd = -1; in ZTEST() 200 z_impl_zsock_connect_fake.return_val = -1; in ZTEST() 202 zassert_equal(ret, -ENETDOWN); in ZTEST() [all …]
|
/Zephyr-latest/dts/arm/nuvoton/npcx/ |
D | npcx.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <arm/armv7-m.dtsi> 10 #include <zephyr/dt-bindings/adc/adc.h> 11 #include <zephyr/dt-bindings/clock/npcx_clock.h> 12 #include <zephyr/dt-bindings/flash_controller/npcx_fiu_qspi.h> 13 #include <zephyr/dt-bindings/gpio/gpio.h> 14 #include <zephyr/dt-bindings/i2c/i2c.h> 15 #include <zephyr/dt-bindings/pinctrl/npcx-pinctrl.h> 16 #include <zephyr/dt-bindings/pwm/pwm.h> 17 #include <zephyr/dt-bindings/sensor/npcx_tach.h> [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | coap.h | 5 * SPDX-License-Identifier: Apache-2.0 47 COAP_OPTION_IF_MATCH = 1, /**< If-Match */ 48 COAP_OPTION_URI_HOST = 3, /**< Uri-Host */ 50 COAP_OPTION_IF_NONE_MATCH = 5, /**< If-None-Match */ 52 COAP_OPTION_URI_PORT = 7, /**< Uri-Port */ 53 COAP_OPTION_LOCATION_PATH = 8, /**< Location-Path */ 54 COAP_OPTION_URI_PATH = 11, /**< Uri-Path */ 55 COAP_OPTION_CONTENT_FORMAT = 12, /**< Content-Format */ 56 COAP_OPTION_MAX_AGE = 14, /**< Max-Age */ 57 COAP_OPTION_URI_QUERY = 15, /**< Uri-Query */ [all …]
|