/Zephyr-latest/drivers/counter/ |
D | Kconfig.ace | 3 # SPDX-License-Identifier: Apache-2.0 6 bool "DSP ART Wall Clock for ACE V1X" 10 DSP ART Wall Clock used by ACE V1X. 13 bool "DSP RTC Wall Clock for ACE V1X" 17 DSP RTC Wall Clock used by ACE V1X.
|
/Zephyr-latest/subsys/net/lib/mqtt/ |
D | mqtt_os.h | 4 * SPDX-License-Identifier: Apache-2.0 12 * @details Memory management, mutex, logging and wall clock are the needed 39 sys_mutex_init(&client->internal.mutex); in mqtt_mutex_init() 49 int ret = sys_mutex_lock(&client->internal.mutex, K_FOREVER); in mqtt_mutex_lock() 59 int ret = sys_mutex_unlock(&client->internal.mutex); in mqtt_mutex_unlock() 65 /**@brief Method to get the sys tick or a wall clock in millisecond resolution. 67 * @retval Current wall clock or sys tick value in milliseconds. 82 int32_t diff = k_uptime_get_32() - last_activity; in mqtt_elapsed_time_in_ms_get()
|
/Zephyr-latest/drivers/timer/ |
D | Kconfig.mtk_adsp | 2 # SPDX-License-Identifier: Apache-2.0 11 MediaTek MT81xx Audio DSPs have a 13 Mhz wall clock timer
|
D | Kconfig.cavs | 1 # Copyright (c) 2014-2015 Wind River Systems, Inc. 4 # SPDX-License-Identifier: Apache-2.0 26 The DSP wall clock timer is a timer driven directly by
|
D | arcv2_timer0.c | 2 * Copyright (c) 2014-2015 Wind River Systems, Inc. 5 * SPDX-License-Identifier: Apache-2.0 51 #define MAX_TICKS ((COUNTER_MAX / CYC_PER_TICK) - 1) 168 * - reprogramming of LIMIT must be clearing the COUNT 169 * - ISR must be clearing the 'overflow_cycles' counter. 170 * - no more than one counter-wrap has occurred between 171 * - the timer reset or the last time the function was called 172 * - and until the current call of the function is completed. 173 * - the function is invoked with interrupts disabled. 224 /* gfrc is the wall clock */ in timer_int_handler() [all …]
|
D | intel_adsp_timer.c | 4 * SPDX-License-Identifier: Apache-2.0 12 #include <cavs-idc.h> 21 * @brief Intel Audio DSP Wall Clock Timer driver 39 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) 112 dticks = (curr - last_count) / CYC_PER_TICK; in compare_isr() 123 if ((int64_t)(next - curr) < MIN_DELAY) { in compare_isr() 140 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout() 148 adj = (uint32_t)(curr - last_count) + (CYC_PER_TICK - 1); in sys_clock_set_timeout() 149 if (cyc <= MAX_CYC - adj) { in sys_clock_set_timeout() 157 if (((uint32_t)next - (uint32_t)curr) < MIN_DELAY) { in sys_clock_set_timeout() [all …]
|
/Zephyr-latest/soc/intel/intel_adsp/common/include/ |
D | cavs-idc.h | 4 * SPDX-License-Identifier: Apache-2.0 41 * the PRID of the CPU, equal to arch_curr_cpu()->id in Zephyr) to 61 * level 2 bit for IDC in the per-core INTCTRL DSP register AND the 89 * level 2-5 interrupts). The "mask" field shows the current masking 115 #define CAVS_L2_DWCT1 BIT(23) /* DSP Wall Clock Timer 1 */ 116 #define CAVS_L2_DWCT0 BIT(22) /* DSP Wall Clock Timer 0 */ 119 #define CAVS_L2_SHA BIT(16) /* SHA-256 */ 137 #define CAVS_L5_DWCT1 BIT(15) /* DSP Wall CLock Timer 1 */ 138 #define CAVS_L5_DWCT0 BIT(14) /* DSP Wall Clock Timer 0 */
|
D | soc.h | 4 * SPDX-License-Identifier: Apache-2.0 15 /* DSP Wall Clock Timers (0 and 1) */ 47 * @return 0 on success, -EINVAL on error 55 while (n--) { in z_idelay()
|
/Zephyr-latest/soc/intel/intel_adsp/ace/include/ |
D | dmic_regs.h | 1 /* SPDX-License-Identifier: Apache-2.0 */ 42 /* Capture Link Select - select which link wall clock to time stamp. */ 48 /* Link Wall Clock Select */ 57 /* Snapshot of Audio Wall Clock Offset counter (frame offset). */ 60 /* Snapshot of Audio Wall Clock Offset counter (clock offset). */ 68 /* Common FIFO channels register (primary & secondary) (0000 - 0FFF) 82 * (crossed out) 0010h LOCAL_TSC0 64-bit Wall Clock timestamp 83 * (crossed out) 0018h LOCAL_SAMPLE0 64-bit Sample Count 84 * 001Ch - 00FFh Reserved space for extensions
|
/Zephyr-latest/modules/trusted-firmware-m/psa/ |
D | GNUARM.cmake | 3 # SPDX-License-Identifier: Apache-2.0 6 # https://github.com/ARM-software/psa-arch-tests/blob/master/api-tests/tools/cmake/compiler/GNUARM.… 9 # https://github.com/ARM-software/psa-arch-tests/pull/276 12 set(TARGET_SWITCH "-march=armv7-m") 14 set(TARGET_SWITCH "-march=armv8-m.main -mcmse") 16 set(TARGET_SWITCH "-march=armv8-m.base -mcmse") 19 set(CMAKE_C_FLAGS "${TARGET_SWITCH} -g -Wall -Werror -Wextra -fdata-sections -ffunction-sections … 20 set(CMAKE_ASM_FLAGS "${TARGET_SWITCH} -mthumb") 21 set(CMAKE_EXE_LINKER_FLAGS "-Xlinker --fatal-warnings -Xlinker --gc-sections -z max-page-size=0x400…
|
/Zephyr-latest/samples/boards/bbc/microbit/pong/ |
D | README.rst | 1 .. zephyr:code-sample:: bbc_microbit_pong 14 button A to toggle between single- and multi-player, and press button B 18 When multi-player mode has been selected the game will try to look for 19 and connect to a second micro:bit which has also been set into multi-player 23 generate beeps whenever the ball hits a wall or the paddle. 28 .. zephyr-app-commands:: 29 :zephyr-app: samples/boards/bbc/microbit/pong
|
/Zephyr-latest/modules/liblc3/ |
D | CMakeLists.txt | 4 -O3 -std=c11 -ffast-math -Wno-array-bounds -Wall -Wextra -Wdouble-promotion -Wvla -pedantic 10 zephyr_library_compile_options(-DLC3_PLUS=1) 12 zephyr_library_compile_options(-DLC3_PLUS=0) 16 zephyr_library_compile_options(-DLC3_PLUS_HR=1) 18 zephyr_library_compile_options(-DLC3_PLUS_HR=0)
|
/Zephyr-latest/soc/intel/intel_adsp/cavs/include/cavs25/ |
D | dmic_regs.h | 1 /* SPDX-License-Identifier: Apache-2.0 */ 45 /* Link Wall Clock Select */ 54 /* Snapshot of Audio Wall Clock Offset counter (frame offset). */ 57 /* Snapshot of Audio Wall Clock Offset counter (clock offset). */ 65 /* Common FIFO channels register (primary & secondary) (0000 - 0FFF) 79 * (crossed out) 0010h LOCAL_TSC0 64-bit Wall Clock timestamp 80 * (crossed out) 0018h LOCAL_SAMPLE0 64-bit Sample Count 81 * 001Ch - 00FFh Reserved space for extensions
|
/Zephyr-latest/samples/posix/gettimeofday/ |
D | README.rst | 1 .. zephyr:code-sample:: posix-gettimeofday 10 absolute wall clock time and local time every second. At system startup, the current time is 18 - :ref:`networking_with_host` 19 - or, a board with hardware networking 20 - NAT/routing should be set up to allow connections to the Internet 21 - DNS server should be available on the host to resolve domain names 28 .. zephyr-app-commands:: 29 :zephyr-app: samples/posix/gettimeofday 30 :host-os: unix 37 .. code-block:: console [all …]
|
/Zephyr-latest/boards/native/native_sim/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 37 Note that this only decouples simulated time from real/wall time. In either
|
/Zephyr-latest/subsys/net/lib/config/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 7 module-dep = NET_LOG 8 module-str = Log level for network config library 9 module-help = Enables net config library to output debug messages. 19 some link-layer dedicated settings like the channel. 152 The key string to use for the link-layer security part. 160 The key mode to use for the link-layer security part. 164 int "IEEE 802.15.4 security level (0-7)" 169 The security level to use for the link-layer security part. 174 4 deprecated since IEEE 802.15.4-2015 [all …]
|
/Zephyr-latest/cmake/compiler/clang/ |
D | compiler_flags.cmake | 10 # No printf-return-value optimizations in clang 14 # But clang has problems compiling these with -fno-freestanding. 19 set_compiler_property(PROPERTY coverage -fprofile-instr-generate -fcoverage-mapping) 21 set_compiler_property(PROPERTY coverage --coverage -fno-inline) 25 set_compiler_property(PROPERTY diagnostic -fcolor-diagnostics) 28 set_compiler_property(PROPERTY save_temps -save-temps) 30 # clang doesn't handle the -T flag 31 set_compiler_property(PROPERTY linker_script -Wl,-T) 39 -Wall 40 -Wformat [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/sample_test/test_scripts/ |
D | run.sh | 3 # SPDX-License-Identifier: Apache-2.0 5 set -eu 28 # option), something very wrong can still happen and this additional time-out 31 # It measures wall-clock time, not simulated time. E.g. a test that simulates 5 36 # - Do not set it to a value lower or equal to the default. 37 # - If the test takes over 5 seconds of runtime, set `EXECUTE_TIMEOUT` to at 38 # least 5 times the run-time on your machine. 44 # If you are not early-exiting the devices (e.g. using `TEST_PASS_AND_EXIT()`), 65 Execute "${test_exe}" -v=${verbosity_level} -s=${simulation_id} -d=0 -rs=420 -testid=dut \ 66 -argstest log_level 3 [all …]
|
/Zephyr-latest/cmake/modules/ |
D | unittest.cmake | 1 # SPDX-License-Identifier: Apache-2.0 98 set (CMAKE_C_FLAGS "-m64") 99 set (CMAKE_CXX_FLAGS "-m64") 101 set (CMAKE_C_FLAGS "-m32") #deprecated on macOS 102 set (CMAKE_CXX_FLAGS "-m32") #deprecated on macOS 108 -imacros ${AUTOCONF_H} 109 -Wall 110 -I ${KOBJ_GEN_DIR} 115 -Wno-format-zero-length 119 -T "${ZEPHYR_BASE}/subsys/testsuite/include/zephyr/ztest_unittest.ld" [all …]
|
/Zephyr-latest/samples/boards/bbc/microbit/pong/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 21 /* The micro:bit has a 5x5 LED display, using (x, y) notation the top-left 22 * corner has coordinates (0, 0) and the bottom-right has (4, 4). To make 24 * system where top-left is (0, 0) and bottom-right is (49, 49). 37 #define BALL_VEL_Y_START -4 /* Default ball vertical speed */ 52 /* Ball starting position (just to the left of the paddle mid-point) */ 117 SOUND_WALL, /* Ball has hit a wall */ 161 SCROLL_SPEED, "%s", select->choice[select_idx].str); in pong_select() 168 select_idx = (select_idx + 1) % select->choice_count; in pong_select_change() 170 SCROLL_SPEED, "%s", select->choice[select_idx].str); in pong_select_change() [all …]
|
/Zephyr-latest/arch/x86/zefi/ |
D | zefi.py | 3 # SPDX-License-Identifier: Apache-2.0 63 bytesz = h.p_memsz - h.p_filesz 65 verbose("%d bytes of zero-fill at 0x%x" % (bytesz, addr)) 73 cf = open("zefi-segments.h", "w") 77 cf.write("/* Sizes and offsets specified in 4-byte units.\n") 78 cf.write(" * All addresses 4-byte aligned.\n") 114 # + UEFI API assumes 16-bit wchar_t 117 includes.extend(["-I", include_dir]) 118 cmd = ([args.compiler, "-shared", "-Wall", "-Werror", "-I."] + includes + 119 ["-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar", [all …]
|
/Zephyr-latest/soc/intel/intel_adsp/cavs/ |
D | power.c | 4 * SPDX-License-Identifier: Apache-2.0 22 #include <cavs-idc.h> 158 imr_layout->imr_state.header = hdr; in pm_state_set() 161 /* turn off all HPSRAM banks - get a full bitmap */ in pm_state_set() 166 /* do power down - this function won't return */ in pm_state_set() 172 __ASSERT(false, "invalid argument - unsupported power state"); in pm_state_set() 187 __ASSERT(false, "invalid argument - unsupported power state"); in pm_state_exit_post_ops() 199 /* xt-clang removes any NOPs more than 8. So we need to set 205 * Re-evalulate its use and add #ifdef if this assumption 258 * - Disabling "prevent clock gating" means allowing clock gating in power_init() [all …]
|
/Zephyr-latest/scripts/native_simulator/ |
D | Makefile | 2 # SPDX-License-Identifier: Apache-2.0 18 -include ${NSI_CONFIG_FILE} 35 NSI_ARCH?=-m32 37 NSI_COVERAGE?=--coverage 61 NSI_DEBUG?=-g 63 NSI_OPT?=-O0 65 NSI_WARNINGS?=-Wall -Wpedantic 67 NSI_CPPFLAGS?=-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED 69 NO_PIE_CO:=-fno-pie -fno-pic 70 DEPENDFLAGS:=-MMD -MP [all …]
|
/Zephyr-latest/cmake/compiler/gcc/ |
D | compiler_flags.cmake | 3 -Werror=implicit-int 4 -Wold-style-definition 5 -Wno-pointer-sign 15 set_compiler_property(PROPERTY no_optimization -O0) 17 set_compiler_property(PROPERTY optimization_debug -O0) 19 set_compiler_property(PROPERTY optimization_debug -Og) 21 set_compiler_property(PROPERTY optimization_speed -O2) 22 set_compiler_property(PROPERTY optimization_size -Os) 23 set_compiler_property(PROPERTY optimization_size_aggressive -Oz) 24 set_compiler_property(PROPERTY optimization_fast -Ofast) [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | charger.h | 4 * SPDX-License-Identifier: Apache-2.0 107 * Reserved to demark downstream custom properties - use this value as the actual value may 179 * is being handled externally, typically by a "smart" wall adaptor 355 const struct charger_driver_api *api = (const struct charger_driver_api *)dev->api; in z_impl_charger_get_prop() 357 return api->get_property(dev, prop, val); in z_impl_charger_get_prop() 376 const struct charger_driver_api *api = (const struct charger_driver_api *)dev->api; in z_impl_charger_set_prop() 378 return api->set_property(dev, prop, val); in z_impl_charger_set_prop() 388 * @retval -EIO if communication with the charger failed 389 * @retval -EINVAL if the conditions for initiating charging are invalid 395 const struct charger_driver_api *api = (const struct charger_driver_api *)dev->api; in z_impl_charger_charge_enable() [all …]
|