/Zephyr-latest/drivers/watchdog/ |
D | wdt_gecko.c | 5 * SPDX-License-Identifier: Apache-2.0 51 * (default), 1 cycle is 1 ms +/- 12%. 66 static int wdt_gecko_convert_window(uint32_t window, uint32_t period) in wdt_gecko_convert_window() argument 74 /* Valid window settings range from 12.5% of the calculated in wdt_gecko_convert_window() 78 if (window > comp_val) { in wdt_gecko_convert_window() 92 const struct wdt_gecko_cfg *config = dev->config; in wdt_gecko_setup() 93 struct wdt_gecko_data *data = dev->data; in wdt_gecko_setup() 94 WDOG_TypeDef *wdog = config->base; in wdt_gecko_setup() 96 if (!data->timeout_installed) { in wdt_gecko_setup() 98 return -EINVAL; in wdt_gecko_setup() [all …]
|
D | wdt_xmc4xxx.c | 4 * SPDX-License-Identifier: Apache-2.0 21 uint8_t mode; member 27 /* pre-warning event which gets routed to the ISR below. If the */ 30 /* Hence the reset will only happen after 2*cfg->window.max have elapsed. */ 36 struct wdt_xmc4xxx_dev_data *data = dev->data; in wdt_xmc4xxx_isr() 47 data->is_serviced = false; in wdt_xmc4xxx_isr() 49 if (data->cb) { in wdt_xmc4xxx_isr() 50 data->cb(dev, 0); in wdt_xmc4xxx_isr() 53 /* Ensure that watchdog is serviced if RESET_NONE mode is used */ in wdt_xmc4xxx_isr() 54 if (data->mode == WDT_FLAG_RESET_NONE && !data->is_serviced) { in wdt_xmc4xxx_isr() [all …]
|
D | wdt_sifive.c | 4 * SPDX-License-Identifier: Apache-2.0 65 ((const struct wdt_sifive_device_config *const)(dev)->config)->regs) 77 t = wdt->wdogcfg; in wdt_sifive_set_max_timeout() 80 wdt->wdogkey = WDOG_KEY; in wdt_sifive_set_max_timeout() 81 wdt->wdogcfg = t; in wdt_sifive_set_max_timeout() 82 wdt->wdogkey = WDOG_KEY; in wdt_sifive_set_max_timeout() 83 wdt->wdogcmp0 = WDOGCMP_MAX; in wdt_sifive_set_max_timeout() 89 struct wdt_sifive_dev_data *data = dev->data; in wdt_sifive_isr() 94 t = wdt->wdogcfg; in wdt_sifive_isr() 97 wdt->wdogkey = WDOG_KEY; in wdt_sifive_isr() [all …]
|
D | wdt_sam0.c | 5 * SPDX-License-Identifier: Apache-2.0 32 #define WDT_SYNCBUSY WDT_REGS->STATUS.bit.SYNCBUSY 34 #define WDT_SYNCBUSY WDT_REGS->SYNCBUSY.reg 54 WDT_REGS->CTRLA.bit.ENABLE = on; in wdt_sam0_set_enable() 56 WDT_REGS->CTRL.bit.ENABLE = on; in wdt_sam0_set_enable() 63 return WDT_REGS->CTRLA.bit.ENABLE; in wdt_sam0_is_enabled() 65 return WDT_REGS->CTRL.bit.ENABLE; in wdt_sam0_is_enabled() 83 next_pow2 = (1ULL << 32) >> __builtin_clz(cycles - 1); in wdt_sam0_timeout_to_wdt_period() 89 struct wdt_sam0_dev_data *data = dev->data; in wdt_sam0_isr() 91 WDT_REGS->INTFLAG.reg = WDT_INTFLAG_EW; in wdt_sam0_isr() [all …]
|
D | wdt_esp32.c | 4 * SPDX-License-Identifier: Apache-2.0 9 /* Include esp-idf headers first to avoid redefining BIT() macro */ 44 wdt_stage_action_t mode; member 60 struct wdt_esp32_data *data = dev->data; in wdt_esp32_seal() 62 wdt_hal_write_protect_enable(&data->hal); in wdt_esp32_seal() 67 struct wdt_esp32_data *data = dev->data; in wdt_esp32_unseal() 69 wdt_hal_write_protect_disable(&data->hal); in wdt_esp32_unseal() 74 struct wdt_esp32_data *data = dev->data; in wdt_esp32_enable() 77 wdt_hal_enable(&data->hal); in wdt_esp32_enable() 84 struct wdt_esp32_data *data = dev->data; in wdt_esp32_disable() [all …]
|
D | wdt_npm2100.c | 3 * SPDX-License-Identifier: Apache-2.0 36 const struct wdt_npm2100_config *config = dev->config; in wdt_npm2100_setup() 37 struct wdt_npm2100_data *data = dev->data; in wdt_npm2100_setup() 39 if (!data->timeout_valid) { in wdt_npm2100_setup() 40 return -EINVAL; in wdt_npm2100_setup() 43 return mfd_npm2100_start_timer(config->mfd); in wdt_npm2100_setup() 48 const struct wdt_npm2100_config *config = dev->config; in wdt_npm2100_disable() 49 struct wdt_npm2100_data *data = dev->data; in wdt_npm2100_disable() 52 ret = i2c_reg_write_byte_dt(&config->i2c, TIMER_TASKS_STOP, 1U); in wdt_npm2100_disable() 57 data->timeout_valid = false; in wdt_npm2100_disable() [all …]
|
D | wdt_sam.c | 4 * SPDX-License-Identifier: Apache-2.0 13 * - Once the watchdog disable bit is set, it cannot be cleared till next 15 * - Since the MCU boots with WDT enabled, the CONFIG_WDT_DISABLE_AT_BOOT 18 * - If the application needs to use the watchdog in the system, then 40 uint32_t mode; member 49 const struct wdt_sam_dev_cfg *config = dev->config; in wdt_sam_isr() 51 Wdt * const wdt = config->regs; in wdt_sam_isr() 52 struct wdt_sam_dev_data *data = dev->data; in wdt_sam_isr() 55 wdt_sr = wdt->WDT_SR; in wdt_sam_isr() 57 data->cb(dev, 0); in wdt_sam_isr() [all …]
|
D | wdt_litex.c | 4 * SPDX-License-Identifier: Apache-2.0 44 const struct wdt_litex_config *config = dev->config; in wdt_litex_is_enabled() 46 return litex_read8(config->control_addr) & BIT(0); in wdt_litex_is_enabled() 51 const struct wdt_litex_config *config = dev->config; in wdt_litex_irq_enable() 52 struct wdt_litex_data *data = dev->data; in wdt_litex_irq_enable() 54 if (!data->callback) { in wdt_litex_irq_enable() 58 litex_write8(BIT(0), config->ev_pending_addr); in wdt_litex_irq_enable() 60 litex_write8(BIT(0), config->ev_enable_addr); in wdt_litex_irq_enable() 65 const struct wdt_litex_config *config = dev->config; in wdt_litex_enable() 66 struct wdt_litex_data *data = dev->data; in wdt_litex_enable() [all …]
|
D | wdt_npm1300.c | 3 * SPDX-License-Identifier: Apache-2.0 14 #include <zephyr/dt-bindings/gpio/nordic-npm1300-gpio.h> 42 const struct wdt_npm1300_config *config = dev->config; in wdt_npm1300_setup() 43 struct wdt_npm1300_data *data = dev->data; in wdt_npm1300_setup() 45 if (!data->timeout_valid) { in wdt_npm1300_setup() 46 return -EINVAL; in wdt_npm1300_setup() 49 return mfd_npm1300_reg_write(config->mfd, TIME_BASE, TIME_OFFSET_START, 1U); in wdt_npm1300_setup() 54 const struct wdt_npm1300_config *config = dev->config; in wdt_npm1300_disable() 55 struct wdt_npm1300_data *data = dev->data; in wdt_npm1300_disable() 58 ret = mfd_npm1300_reg_write(config->mfd, TIME_BASE, TIME_OFFSET_STOP, 1U); in wdt_npm1300_disable() [all …]
|
D | wdt_rpi_pico.c | 4 * SPDX-License-Identifier: Apache-2.0 20 /* Maximum watchdog time is halved due to errata RP2040-E1 */ 43 const struct wdt_rpi_pico_config *config = dev->config; in wdt_rpi_pico_setup() 44 struct wdt_rpi_pico_data *data = dev->data; in wdt_rpi_pico_setup() 49 return -ENOTSUP; in wdt_rpi_pico_setup() 52 hw_clear_bits(&watchdog_hw->ctrl, WATCHDOG_CTRL_ENABLE_BITS); in wdt_rpi_pico_setup() 54 psm_hw->wdsel = 0; in wdt_rpi_pico_setup() 57 if (data->reset_type == WDT_FLAG_RESET_SOC) { in wdt_rpi_pico_setup() 58 hw_set_bits(&psm_hw->wdsel, PSM_WDSEL_BITS); in wdt_rpi_pico_setup() 59 } else if (data->reset_type == WDT_FLAG_RESET_CPU_CORE) { in wdt_rpi_pico_setup() [all …]
|
D | wdt_nxp_fs26.c | 4 * SPDX-License-Identifier: Apache-2.0 36 (((x) & BAD_WD_TIMING) ? "error in the timing (window)" \ 88 * Allowed values for watchdog period and duty cycle (CLOSED window). 141 for (i = size; i > 0; i--) { in fs26_calcrc() 176 tx_buf = (uint32_t)(FS26_SET_REG_ADDR(tx_frame->addr) in fs26_spi_transceive() 177 | FS26_SET_DATA(tx_frame->data) in fs26_spi_transceive() 178 | (tx_frame->write ? FS26_RW : 0)); in fs26_spi_transceive() 180 crc = fs26_calcrc((uint8_t *)&tx_buf, sizeof(tx_buf) - 1); in fs26_spi_transceive() 197 crc = fs26_calcrc((uint8_t *)&rx_buf, sizeof(rx_buf) - 1); in fs26_spi_transceive() 200 retval = -EIO; in fs26_spi_transceive() [all …]
|
D | wdt_cc13xx_cc26xx.c | 4 * SPDX-License-Identifier: Apache-2.0 23 * TI CC13xx/CC26xx watchdog is a 32-bit timer that runs on the MCU clock 30 * The watchdog will issue reset only on second in turn time-out (if the timer 31 * or the interrupt aren't reset after the first time-out). By default, regular 33 * setting the `interrupt-nmi` boolean DT property). 58 struct wdt_cc13xx_cc26xx_data *data = dev->data; in wdt_cc13xx_cc26xx_install_timeout() 60 /* window watchdog not supported */ in wdt_cc13xx_cc26xx_install_timeout() 61 if (cfg->window.min != 0U || cfg->window.max == 0U) { in wdt_cc13xx_cc26xx_install_timeout() 62 return -EINVAL; in wdt_cc13xx_cc26xx_install_timeout() 69 if (cfg->window.max > WATCHDOG_MAX_RELOAD_MS) { in wdt_cc13xx_cc26xx_install_timeout() [all …]
|
D | wdt_nxp_s32.c | 2 * Copyright 2022-2024 NXP 4 * SPDX-License-Identifier: Apache-2.0 49 /* Window */ 81 #define REG_READ(r) sys_read32(config->base + (r)) 82 #define REG_WRITE(r, v) sys_write32((v), config->base + (r)) 120 switch (config->lock_mode) { in swt_lock() 139 LOG_ERR("Watchdog hard-locked"); in swt_unlock() 140 err = -EFAULT; in swt_unlock() 150 err = -ETIMEDOUT; in swt_unlock() 161 /* Calculated pseudo-random key according to Service Key Generation chapter in RM */ in swt_gen_service_key() [all …]
|
/Zephyr-latest/dts/bindings/comparator/ |
D | nxp,kinetis-acmp.yaml | 3 # SPDX-License-Identifier: Apache-2.0 11 compatible = "nxp,kinetis-acmp"; 32 pinctrl-0 = <&acmp0_default>; 33 pinctrl-names = "default"; 35 positive-mux-input = "IN0"; 36 negative-mux-input = "IN1"; 39 compatible: "nxp,kinetis-acmp" 42 - base.yaml 43 - pinctrl-device.yaml 52 nxp,enable-output-pin: [all …]
|
/Zephyr-latest/samples/sensor/adt7420/ |
D | README.rst | 1 .. zephyr:code-sample:: adt7420 2 :name: ADT7420 high-accuracy digital I2C temperature sensor 3 :relevant-api: sensor_interface 5 Get temperature data from an ADT7420 sensor using polling and window mode. 13 When configured in trigger mode the update interval is 5 s, and the 14 sample maintains a |plusminus| 1 |deg| C window around a recent 15 temperature. As soon as the temperature goes outside the window an 17 upper and lower window boundaries. 22 - ADT7420: https://www.analog.com/adt7420 31 Depending on the baseboard used, the **SDA** and **SCL** lines require Pull-Up [all …]
|
/Zephyr-latest/include/zephyr/drivers/sensor/ |
D | mcux_lpcmp.h | 5 * SPDX-License-Identifier: Apache-2.0 10 * @brief Data structure for the NXP MCUX low-power analog comparator (LPCMP) 56 * LPCMP internal DAC high power mode disabled. 73 /** LPCMP window signal invert. */ 75 /** LPCMP window signal invert. */ 78 * LPCMP COUTA signal value when a window is closed: 85 * LPCMP COUT event to close an active window: 86 * xx0b: COUT event cannot close an active window 87 * 001b: COUT rising edge event close an active window 88 * 011b: COUT falling edge event close an active window [all …]
|
/Zephyr-latest/doc/_doxygen/ |
D | doxygen-awesome-darkmode-toggle.js | 4 https://github.com/jothepro/doxygen-awesome-css 8 Copyright (c) 2021 - 2023 jothepro 33 // https://www.apache.org/licenses/LICENSE-2.0.html 34 …-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#FCBF00"><rect fi… 35 …-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#FE9700"><rect fi… 36 static title = "Toggle Light/Dark Mode" 38 static prefersLightModeInDarkModeKey = "prefers-light-mode-in-dark-mode" 39 static prefersDarkModeInLightModeKey = "prefers-dark-mode-in-light-mode" 45 window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => { 61 const toggleButton = document.createElement('doxygen-awesome-dark-mode-toggle') [all …]
|
/Zephyr-latest/samples/sensor/jc42/ |
D | README.rst | 1 .. zephyr:code-sample:: jc42 3 :relevant-api: sensor_interface 6 mode). 15 maintains a |plusminus| 2 |deg| C window around the current temperature. 16 When the temperature moves outside the window an alert is given, and the 17 window is moved to center on the new temperature. 25 The MCP9808 digital temperature sensor converts temperatures between -20 |deg| 45 .. zephyr-app-commands:: 46 :zephyr-app: samples/sensor/jc42 56 .. code-block:: console [all …]
|
/Zephyr-latest/drivers/wifi/nrf_wifi/ |
D | Kconfig.nrfwifi | 1 # Nordic Wi-Fi driver for nRF70 series SoCs 5 # SPDX-License-Identifier: Apache-2.0 21 Nordic Wi-Fi Driver 38 bool "low power mode in QSPI" 48 Select the operating mode of the nRF70 driver 51 bool "nRF70 system mode" 55 Select this option to enable system mode of the nRF70 driver 58 bool "nRF70 scan only mode" 60 Select this option to enable scan only mode of the nRF70 driver 63 bool "Radio test mode of the nRF70 driver" [all …]
|
/Zephyr-latest/drivers/sensor/renesas/isl29035/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 65 prompt "Active sensing mode" 68 Sensing mode in which the ISL29035 will function. The chip can be 74 Sensing mode for ambient light spectrum. 79 Sensing mode for infrared spectrum. 84 prompt "Trigger mode" 89 Only available for ambient light sensing mode. 97 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_ISIL_ISL29035),int-gpios) 103 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_ISIL_ISL29035),int-gpios) 131 need to remain outside the threshold window in order for the interrupt
|
/Zephyr-latest/samples/subsys/logging/logger/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 88 * Sample multi-instance module API on two instances is called then logging 187 uint32_t window = 2U; in performance_showcase() local 203 LOG_INF("performance test - log message %d", cnt); in performance_showcase() 207 } while (current_timestamp < (start_timestamp + window)); in performance_showcase() 212 * degraded performance. Decrease window size. in performance_showcase() 214 * window can be increased to improve precision. in performance_showcase() 217 if (window >= 2) { in performance_showcase() 218 window /= 2; in performance_showcase() 223 window *= 2; in performance_showcase() [all …]
|
/Zephyr-latest/soc/nordic/nrf52/ |
D | Kconfig | 3 # Copyright (c) 2016-2023 Nordic Semiconductor ASA 4 # SPDX-License-Identifier: Apache-2.0 42 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; 69 gpio-as-nreset; 73 bool "The instruction cache (I-Cache)" 84 window after stopping (230 us to 330 us). Software reset also stops the 85 clock so if clock is initiated in certain window, the clock may also fail
|
/Zephyr-latest/scripts/kconfig/ |
D | menuconfig.py | 3 # Copyright (c) 2018-2019, Nordic Semiconductor ASA and Ulf Magnusson 4 # SPDX-License-Identifier: ISC 10 A curses-based Python 2/3 menuconfig implementation. The interface should feel 19 Ctrl-D/U: Page Down/Page Up 27 character in it in the current menu isn't supported. A jump-to feature for 33 F: Toggle show-help mode, which shows the help text of the currently selected 34 item in the window at the bottom of the menu display. This is handy when 37 C: Toggle show-name mode, which shows the symbol name before each symbol menu 40 A: Toggle show-all mode, which shows all items, including currently invisible 52 When run in standalone mode, the top-level Kconfig file to load can be passed [all …]
|
/Zephyr-latest/drivers/wifi/esp32/ |
D | Kconfig.esp32 | 18 core mode because the network stack is not aware of SMP 27 Make sure there is a minimal heap available for Wi-Fi driver. 46 bool "Activates the Station/AP co-existence mode." 49 The Station/AP coexistence mode allows the ESP32 to operate as both a station and 50 an access point simultaneously. This mode is not enabled by default. 108 initialized and released when WiFi is de-initialized. The size of each 185 when WiFi is de-initialized. The size of each static RX MGMT buffer is fixed to about 500 Bytes. 229 int "WiFi AMPDU TX BA window size" 234 Set the size of WiFi Block Ack TX window. Generally a bigger value means 249 int "WiFi AMPDU RX BA window size" [all …]
|
/Zephyr-latest/subsys/shell/ |
D | shell_vt100.h | 4 * SPDX-License-Identifier: Apache-2.0 29 /* Set new line mode */ 41 /* Set auto-wrap mode */ 43 /* Set auto-wrap mode */ 45 /* Set auto-repeat mode */ 47 /* Set interlacing mode */ 49 /* Set line feed mode */ 63 /* Reset auto-wrap mode */ 65 /* Reset auto-repeat mode */ 67 /* Reset interlacing mode */ [all …]
|