/Zephyr-latest/samples/basic/minimal/ |
D | README.rst | 1 .. zephyr:code-sample:: minimal 15 * :file:`mt.conf`: Enable multithreading 16 * :file:`no-mt.conf`: Disable multithreading 17 * :file:`no-preempt.conf`: Disable preemption 18 * :file:`no-timers.conf`: Disable timers 19 * :file:`arm.conf`: Arm-specific disabling of features 27 * Multithreading enabled 29 * Reference ROM size: 7-8KB 31 .. zephyr-app-commands:: 32 :zephyr-app: samples/basic/minimal [all …]
|
/Zephyr-latest/tests/arch/arm/arm_no_multithreading/ |
D | README.txt | 1 Title: Test to verify the no multithreading use-case (ARM Only) 5 This test verifies that a Zephyr build without multithreading 7 ARM Cortex-M targets. In detail the test verifies that 8 - system boots to main() 9 - PSP points to the main stack 10 - PSPLIM is set to the main stack base (if applicable) 11 - FPU state is reset (if applicable) 12 - Interrupts are enabled when switching to main() 13 - Interrupts may be registered and serviced 14 - Activating PendSV triggers a Reserved Exception error [all …]
|
/Zephyr-latest/tests/kernel/threads/no-multithreading/ |
D | CMakeLists.txt | 1 # SPDX-License-Identifier: Apache-2.0 5 project(no-multithreading) project
|
D | testcase.yaml | 2 kernel.threads.no-multithreading: 6 - qemu_cortex_m0 7 - qemu_cortex_m3 8 - mps2/an385 9 - mps2/an521/cpu0 10 - nrf52840dk/nrf52840 11 - nrf9160dk/nrf9160 12 - nrf51dk/nrf51822 13 - nsim/nsim_em 14 - nsim/nsim_em7d_v22 [all …]
|
/Zephyr-latest/subsys/logging/ |
D | Kconfig.processing | 2 # SPDX-License-Identifier: Apache-2.0 22 If enabled, then if there is no space to log a new message, the 27 depends on MULTITHREADING 35 range -1 10000 39 message is dropped. Forever blocking (-1) is possible however may lead 46 depends on MULTITHREADING 55 depends on MULTITHREADING
|
/Zephyr-latest/tests/arch/arm/arm_no_multithreading/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 14 #error test can only run on Cortex-M MCUs 19 * For ARMv8.1-M, the FPSCR[18:16] LTPSIZE field may always read 0b010 if MVE 41 printk("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler() 43 if (expected_reason == -1) { in k_sys_fatal_error_handler() 54 expected_reason = -1; in k_sys_fatal_error_handler() 59 printk("ARM no-multithreading test\n"); in test_main() 68 "PSP out of bounds: 0x%x (0x%x - 0x%x)", in test_main() 92 SCB->ICSR |= SCB_ICSR_PENDSVSET_Msk; in test_main() 101 for (i = CONFIG_NUM_IRQS - 1; i >= 0; i--) { in test_main() [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 12 config MULTITHREADING config 13 bool "Multi-threading" if ARCH_HAS_SINGLE_THREAD_SUPPORT 27 int "Number of coop priorities" if MULTITHREADING 28 default 1 if !MULTITHREADING 35 K_PRIO_COOP(0) to K_PRIO_COOP(CONFIG_NUM_COOP_PRIORITIES - 1) 39 -CONFIG_NUM_COOP_PRIORITIES to -1 52 int "Number of preemptible priorities" if MULTITHREADING [all …]
|
/Zephyr-latest/subsys/debug/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 24 module-str = thread analyzer 65 the interrupts for a long time - long enough to disconnect when 90 on cache-incoherent architectures. 133 recent-ish compiler with the ``-fsanitize=address`` command line option, 136 Note that at exit leak detection is disabled for 64-bit boards when 172 architecture, and requires a recent-ish compiler with the 173 ``-fsanitize=undefined`` command line option. 191 on a per-function basis. 196 depends on MULTITHREADING [all …]
|
/Zephyr-latest/subsys/testsuite/ztest/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 43 value. Please be aware that increasing it for long-running test cases 64 default -2 if !PREEMPT_ENABLED 65 default -1 67 Set priority of the testing thread. Default is -1 (cooperative). 87 bool "Using a pre-defined fatal handler and hook function" 89 Use the pre-defined common fatal error handler and a post hook to 95 bool "Using a pre-defined assert handler and hook function" 97 Use the pre-defined common assert fail handler and a post hook to 115 Print a CMake warning when building ztests with no compiler [all …]
|
/Zephyr-latest/tests/kernel/mem_slab/mslab_api/src/ |
D | test_mslab_api.c | 4 * SPDX-License-Identifier: Apache-2.0 85 /* TESTPOINT: -ENOMEM Returned without waiting.*/ in tmslab_alloc_timeout() 86 zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_NO_WAIT), -ENOMEM, in tmslab_alloc_timeout() 91 /* TESTPOINT: -EAGAIN Waiting period timed out*/ in tmslab_alloc_timeout() 92 zassert_equal(err, -EAGAIN); in tmslab_alloc_timeout() 99 /* If no multithreading any timeout is treated as K_NO_WAIT */ in tmslab_alloc_timeout() 100 zassert_equal(err, -ENOMEM); in tmslab_alloc_timeout() 122 zassert_equal(k_mem_slab_num_free_get(pslab), BLK_NUM - 1 - i); in tmslab_used_get() 125 zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_NO_WAIT), -ENOMEM, in tmslab_used_get() 133 IS_ENABLED(CONFIG_MULTITHREADING) ? -EAGAIN : -ENOMEM, in tmslab_used_get() [all …]
|
/Zephyr-latest/doc/services/retention/ |
D | index.rst | 11 power failure (or during some low-power modes on some devices) nor should it be 12 stored to a non-volatile storage like :ref:`flash_api`, :ref:`eeprom_api`, or 13 battery-backed RAM. 16 additional software-level features to it for ensuring the validity of data. 19 checksum (1, 2, or 4-bytes in size) of the stored data can be appended to the 21 the retained data sections into multiple distinct areas. For example, a 64-byte 25 per-instance using devicetree. 32 RAM as non-init for this purpose. The retention system is then initialised as a 33 child node of this device 1 or more times - note that the memory region will 38 .. code-block:: devicetree [all …]
|
/Zephyr-latest/include/zephyr/arch/arc/ |
D | arch.h | 4 * SPDX-License-Identifier: Apache-2.0 12 * included by the kernel interface architecture-abstraction header 24 #include "sys-io-common.h" 65 * - otherwise all interrupts will use same register bank. Such configuration isn't supported in 86 #error "Non-multithreading mode isn't supported on SMP targets" 110 * For regions that are NOT the minimum size, this define has no semantics 132 /* Kernel-only stacks have the following layout if a stack guard is enabled: 134 * +------------+ <- thread.stack_obj 136 * +------------+ <- thread.stack_info.start 142 * +------------+ <- thread.stack_info.start + thread.stack_info.size [all …]
|
/Zephyr-latest/doc/releases/ |
D | release-notes-1.14.rst | 17 * CVE-2020-10066 18 * CVE-2020-10069 19 * CVE-2020-13601 20 * CVE-2020-13602 32 * :github:`issuenumber` - issue title 34 * :github:`18334` - DNS resolution is broken for some addresses in master/2.0-pre 35 * :github:`19917` - Bluetooth: Controller: Missing LL_ENC_RSP after HCI LTK Negative Reply 36 * :github:`21107` - LL_ASSERT and 'Imprecise data bus error' in LL Controller 37 * :github:`21257` - tests/net/net_pkt failed on mimxrt1050_evk board. 38 * :github:`21299` - bluetooth: Controller does not release buffer on central side after peripheral … [all …]
|
D | release-notes-2.4.rst | 33 * CVE-2020-10060: UpdateHub Might Dereference An Uninitialized Pointer 34 * CVE-2020-10064: Improper Input Frame Validation in ieee802154 Processing 35 * CVE-2020-10066: Incorrect Error Handling in Bluetooth HCI core 36 * CVE-2020-10072: all threads can access all socket file descriptors 37 * CVE-2020-13598: FS: Buffer Overflow when enabling Long File Names in FAT_FS and calling fs_stat 38 * CVE-2020-13599: Security problem with settings and littlefs 39 * CVE-2020-13601: Under embargo until 2020/11/18 40 * CVE-2020-13602: Remote Denial of Service in LwM2M do_write_op_tlv 50 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_. 62 * The :c:func:`wdt_feed` function will now return ``-EAGAIN`` if [all …]
|
D | release-notes-2.5.rst | 27 * CVE-2021-3323: Under embargo until 2021-04-14 28 * CVE-2021-3321: Under embargo until 2021-04-14 29 * CVE-2021-3320: Under embargo until 2021-04-14 39 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_. 56 * Changed vcnl4040 dts binding default for property 'proximity-trigger'. 63 * The :c:func:`mqtt_keepalive_time_left` function now returns -1 if keep alive 67 timeout usage must use the new-style k_timeout_t type and not the 87 GPIO-only regulators a devicetree property ``supply-gpios`` is defined as a 101 * ARM Musca-A board and SoC support deprecated and planned to be removed in 2.6.0. 146 sys_heap/k_heaps. Note that the new-style heap is a general [all …]
|
D | release-notes-3.3.rst | 14 * Introduced :ref:`USB-C <usbc_api>` device stack with PD (power delivery) 17 CMSIS-DSP as the default backend. 30 * CVE-2023-0359: Under embargo until 2023-04-20 32 * CVE-2023-0779: Under embargo until 2023-04-22 45 * Newlib nano variant is no longer selected by default when 66 removed in favor of new :dtcompatible:`zephyr,flash-disk` devicetree binding. 71 * Starting from this release ``zephyr-`` prefixed tags won't be created 82 image states). Use of a truncated hash or non-sha256 hash will still work 86 * MCUmgr handlers no longer need to be registered by the application code, 88 registration function at boot-up. If applications register this then [all …]
|
D | release-notes-3.2.rst | 13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`). 15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`. 31 * CVE-2022-2993: Under embargo until 2022-11-03 33 * CVE-2022-2741: Under embargo until 2022-10-14 55 * :zephyr_file:`include/zephyr/zephyr.h` no longer defines ``__ZEPHYR__``. 56 This definition can be used by third-party code to compile code conditional 58 Therefore, any third-party code integrated using the Zephyr build system will 59 require no changes. External build systems will need to inject the definition 63 :zephyr_file:`include/zephyr/kernel.h`, since it only included that header. No 91 changed from ``-ENETDOWN`` to ``-ENETUNREACH``. A return value of ``-ENETDOWN`` now indicates [all …]
|
D | release-notes-2.6.rst | 13 * Added support for 64-bit ARCv3 14 * Split ARM32 and ARM64, ARM64 is now a top-level architecture 15 * Added initial support for Arm v8.1-m and Cortex-M55 22 https://github.com/zephyrproject-rtos/example-application 34 * CVE-2021-3581: Under embargo until 2021-09-04 41 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_. 46 * Driver APIs now return ``-ENOSYS`` if optional functions are not implemented. 47 If the feature is not supported by the hardware ``-ENOTSUP`` will be returned. 48 Formerly ``-ENOTSUP`` was returned for both failure modes, meaning this change 194 * Added support for null pointer dereferencing detection in Cortex-M. [all …]
|
D | release-notes-3.6.rst | 12 * New :ref:`GNSS subsystem <gnss_api>` added, enabling geo-awareness in Zephyr applications. 13 * New API and drivers introduced for interfacing with :ref:`keyboard matrices <gpio-kbd>`. 16 * Integrated Trusted Firmware-M (TF-M) 2.0, including an update to Mbed TLS 3.5.2. 23 * Over 30 new supported boards, spanning all Zephyr-supported architectures. 37 * CVE-2023-5779 `Zephyr project bug tracker GHSA-7cmj-963q-jj47 38 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-7cmj-963q-jj47>`_ 40 * CVE-2023-6249 `Zephyr project bug tracker GHSA-32f5-3p9h-2rqc 41 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-32f5-3p9h-2rqc>`_ 43 * CVE-2023-6749 `Zephyr project bug tracker GHSA-757h-rw37-66hw 44 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-757h-rw37-66hw>`_ [all …]
|
/Zephyr-latest/doc/services/logging/ |
D | index.rst | 17 - Deferred logging reduces the time needed to log a message by shifting time 20 - Multiple backends supported (up to 9 backends). 21 - Custom frontend support. It can work together with backends. 22 - Compile time filtering on module level. 23 - Run time filtering independent for each backend. 24 - Additional run time filtering on module instance level. 25 - Timestamping with user provided function. Timestamp can have 32 or 64 bits. 26 - Dedicated API for dumping data. 27 - Dedicated API for handling transient strings. 28 - Panic support - in panic mode logging switches to blocking, synchronous [all …]
|
/Zephyr-latest/arch/riscv/core/ |
D | pmp.c | 4 * SPDX-License-Identifier: Apache-2.0 6 * Physical Memory Protection (PMP) is RISC-V parlance for an MPU. 14 * PMP slot configurations are updated in memory to avoid read-modify-write 18 * In the stackguard case we keep an m-mode copy for each thread. Each user 19 * mode threads also has a u-mode copy. This makes faster context switching 21 * no additional processing. 23 * Thread-specific m-mode and u-mode PMP entries start from the PMP slot 30 #include <zephyr/linker/linker-defs.h> 54 #define NAPOT_RANGE(size) (((size) - 1) >> 1) 72 start = (index == 0) ? 0 : (pmp_addr[index - 1] << 2); in print_pmp_entries() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | nrf_qspi_nor.c | 2 * Copyright (c) 2019-2024, Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 69 #error "No size specified. 'size' or 'size-in-bytes' must be set" 73 "Node " DT_NODE_PATH(DT_DRV_INST(0)) " has both size and size-in-bytes " 80 * frequencies 2 - 32 MHz and the nRF53 one supports 6 - 96 MHz. 108 INST_0_SCK_FREQUENCY) - 1) 121 INST_0_SCK_FREQUENCY) - 1) 140 INST_0_SCK_FREQUENCY) - 1) 178 … "Driver only supports NONE, S1B6, S2B1v1, S2B1v4, S2B1v5 or S2B1v6 for quad-enable-requirements"); 200 * If no data to transmit/receive - pass 0. [all …]
|
/Zephyr-latest/tests/kernel/timer/timer_api/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 20 #define WITHIN_ERROR(var, target, epsilon) (llabs((int64_t) ((target) - (var))) <= (epsilon)) 32 /* On Nordic SOCs one or both of the tick and busy-wait clocks may 33 * derive from sources that have slews that sum to +/- 13%. 99 * one-ticks deltas (NOT one two-tick delta!) in interval_check() 221 busy_wait_ms(DURATION + PERIOD * (EXPIRE_TIMES - 1) + PERIOD / 2); in ZTEST_USER() 239 * Basically, acting as one-shot timer. 256 - BUSY_SLEW_THRESHOLD_TICKS(DURATION in ZTEST_USER() 259 /* Need to wait at least 2 durations to ensure one-shot behavior. */ in ZTEST_USER() 262 /** TESTPOINT: ensure it is one-shot timer */ in ZTEST_USER() [all …]
|
/Zephyr-latest/modules/nrf_wifi/bus/ |
D | qspi_if.c | 4 * SPDX-License-Identifier: Apache-2.0 9 * Zephyr OS layer of the Wi-Fi driver. 68 * frequencies 2 - 32 MHz and the nRF53 one supports 6 - 96 MHz. 96 QSPI_IF_DEVICE_FREQUENCY) - 1) 109 QSPI_IF_DEVICE_FREQUENCY) - 1) 119 #error "Unsupported base clock divider for wake-up frequency." 142 QSPI_IF_DEVICE_FREQUENCY) - 1) 164 * If no data to transmit/receive - pass 0. 175 * @param op_code is a command value (i.e 0x9F - get Jedec ID) 208 register int ret = -EINVAL; in qspi_get_mode() [all …]
|
/Zephyr-latest/arch/ |
D | Kconfig | 3 # Copyright (c) 2014-2015 Wind River Systems, Inc. 6 # SPDX-License-Identifier: Apache-2.0 18 # Should be 'select'ed by low-level symbols like SOC_SERIES_* or, lacking that, 37 # is really only necessary for Cortex-M with ARM MPU! 173 symbols above. See the top-level CMakeLists.txt. 180 module-str = arch 186 This option tells the build system that the target system is big-endian. 187 Little-endian architecture is the default and should leave this option 195 # Hidden Kconfig option representing the default little-endian architecture 196 # This is just the opposite of BIG_ENDIAN and is used for non-negative [all …]
|