/Zephyr-latest/samples/bluetooth/cap_initiator/src/ |
D | cap_initiator.h | 4 * SPDX-License-Identifier: Apache-2.0 18 * @brief Run the application as a CAP Initiator for unicast 20 * This will start scanning for and connecting to a CAP acceptor, and then attempt to setup 28 * @brief Run the application as a CAP Initiator for broadcast 40 * will attempt to send data on all streams registered with cap_initiator_tx_register_stream(). 47 * This will add it to the list of streams the TX thread will attempt to send on. 50 * @retval -EINVAL if @p cap_stream is NULL 51 * @retval -ENOMEM if not more streams can be registered 58 * This will remove it to the list of streams the TX thread will attempt to send on. 61 * @retval -EINVAL if @p cap_stream is NULL [all …]
|
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 33 /* Broadcast is started first as the unicast part is run as loop */ in main() 38 LOG_ERR("Failed to run CAP Initiator as broadcaster: %d", err); in main() 43 * function that runs the application as a CAP Initiator for unicast. This will attempt to in main() 53 LOG_ERR("Failed to run CAP Initiator as unicast: %d", err); in main()
|
/Zephyr-latest/.github/workflows/ |
D | twister-publish.yaml | 5 workflows: ["Run tests with twister"] 7 - main 9 - completed 12 upload-to-elasticsearch: 14 github.repository == 'zephyrproject-rtos/zephyr' && 19 runs-on: ubuntu-22.04 22 - name: Checkout 25 fetch-depth: 0 26 persist-credentials: false 28 - name: Download Artifacts [all …]
|
D | footprint-tracking.yml | 3 # Run every 12 hours and on tags 6 - cron: '50 1/12 * * *' 9 - 'VERSION' 10 - '.github/workflows/footprint-tracking.yml' 12 - main 13 - v*-branch 15 # only publish v* tags, do not care about zephyr-v* which point to the 17 - 'v*' 20 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} 21 cancel-in-progress: true [all …]
|
/Zephyr-latest/doc/hardware/peripherals/sensor/ |
D | fetch_and_get.rst | 1 .. _sensor-fetch-and-get: 24 a locking mechanism is undefined and most sensor drivers do not attempt to 48 run in a user mode context. 50 There are typically two options provided for each driver where to run trigger 51 handlers. Either the trigger handler is run using the system work queue thread 70 interrupt to your callback function being run. In the work queue
|
/Zephyr-latest/tests/kernel/obj_core/obj_core_stats_api/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 21 * in the prj.conf to 1. However, for this test to allow it to be run on both 40 * Attempt to enable stats for an object core that is not enabled in ZTEST() 45 zassert_equal(status, -ENOTSUP, in ZTEST() 46 "Expected %d, got %d\n", -ENOTSUP, status); in ZTEST() 48 saved_enable = K_OBJ_CORE(test_thread)->type->stats_desc->enable; in ZTEST() 49 K_OBJ_CORE(test_thread)->type->stats_desc->enable = NULL; in ZTEST() 51 zassert_equal(status, -ENOTSUP, in ZTEST() 52 "Expected %d, got %d\n", -ENOTSUP, status); in ZTEST() 53 K_OBJ_CORE(test_thread)->type->stats_desc->enable = saved_enable; in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/tracing/ |
D | tracing.h | 4 * SPDX-License-Identifier: Apache-2.0 27 * inner-working of the kernel and various other subsystems. 237 * @brief Called before a thread has been selected to run 242 * @brief Called after a thread has been selected to run 247 * @brief Called when a thread is ready to run 752 * @brief Trace taking a Semaphore attempt start 759 * @brief Trace taking a Semaphore attempt blocking 766 * @brief Trace taking a Semaphore attempt outcome 795 * @brief Trace Mutex lock attempt start 802 * @brief Trace Mutex lock attempt blocking [all …]
|
/Zephyr-latest/scripts/ |
D | twister | 4 # SPDX-License-Identifier: Apache-2.0 13 run the tests in any available emulators or simulators on the system. 19 that testsuite meta-data. The full canonical name for each test case is <path to 28 of this script can filter the set of tests to run based on tag. 34 Don't build or run this test case unless --enable-slow was passed 35 in on the command line. Intended for time-consuming test cases 36 that are only run under certain circumstances, like daily 48 Snippets that must be applied for the test case to run. 56 If true, don't try to run the test even if the selected platform 60 If true, attempt to build test on all available platforms. [all …]
|
/Zephyr-latest/samples/drivers/virtualization/ivshmem/doorbell/ |
D | README.rst | 1 .. zephyr:code-sample:: ivshmem-doorbell 3 :relevant-api: ivshmem 5 Use Inter-VM Shared Memory to exchange messages between two processes running on different 20 ivshmem-server needs to be available and running. The server is available in 21 Zephyr SDK or pre-built in some distributions. Otherwise, it is available in 24 ivshmem-client needs to be available as it is employed in this sample as an 25 external application. The same conditions of ivshmem-server applies to the 26 ivshmem-server, as it is also available via QEMU. 31 Building ivshmem-doorbell is as follows: 36 .. zephyr-app-commands:: [all …]
|
/Zephyr-latest/subsys/debug/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 24 module-str = thread analyzer 56 bool "Run analysis with interrupts unlocked" 64 While this is a safe run from the thread list perspective it may lock 65 the interrupts for a long time - long enough to disconnect when 75 bool "Run periodic thread analysis in a thread" 77 Run the thread analyzer automatically, without the need to add 84 bool "Run thread analyzer separately on each core" 88 Run the thread analyzer auto thread on each core and report 90 on cache-incoherent architectures. [all …]
|
/Zephyr-latest/scripts/ci/ |
D | upload_test_results_es.py | 3 # Copyright (c) 2022-2024 Intel Corporation 4 # SPDX-License-Identifier: Apache-2.0 35 :param parent_name: the short, single-level, name of the ``value``. 181 _grouping = name.split("/")[-1] 288 print(f"Setting run date from command line: {args.run_date}") 308 parser.add_argument('-y','--dry-run', action="store_true", help='Dry run.') 309 parser.add_argument('-c','--create-index', action="store_true", help='Create index.') 310 parser.add_argument('-m', '--map-file', required=False, 312 parser.add_argument('-i', '--index', required=True, default='tests-zephyr-1', 314 parser.add_argument('-r', '--run-date', help='Run date in ISO format', required=False) [all …]
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/src/ |
D | main_functions.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 29 /* Globals, used for compatibility with Arduino-style sketches. */ 51 if (model->version() != TFLITE_SCHEMA_VERSION) { in setup() 54 model->version(), TFLITE_SCHEMA_VERSION); in setup() 71 /* Build an interpreter to run the model with. */ in setup() 77 interpreter->AllocateTensors(); in setup() 80 model_input = interpreter->input(0); in setup() 81 if ((model_input->dims->size != 4) || (model_input->dims->data[0] != 1) || in setup() 82 (model_input->dims->data[1] != 128) || in setup() 83 (model_input->dims->data[2] != kChannelNumber) || in setup() [all …]
|
/Zephyr-latest/include/zephyr/dfu/ |
D | mcuboot.h | 5 * SPDX-License-Identifier: Apache-2.0 42 /** Attempt to boot the contents of slot 0. */ 78 /** Swap failed because image to be run is not valid */ 238 * BOOT_UPGRADE_TEST=run image once, then confirm or revert. 239 * BOOT_UPGRADE_PERMANENT=run image forever. 252 * BOOT_UPGRADE_TEST=run image once, then confirm or revert. 253 * BOOT_UPGRADE_PERMANENT=run image forever.
|
/Zephyr-latest/doc/develop/west/ |
D | zephyr-cmds.rst | 1 .. _west-zephyr-ext-cmds: 6 This page documents miscellaneous :ref:`west-zephyr-extensions`. 8 .. _west-boards: 16 It can be run by typing:: 21 specify the display format yourself you can use the ``--format`` (or ``-f``) 24 west boards -f "{arch}:{name}" 28 west boards -h 30 .. _west-completion: 40 - bash 41 - zsh [all …]
|
D | build-flash-debug.rst | 1 .. _west-build-flash-debug: 6 Zephyr provides several :ref:`west extension commands <west-extensions>` for 11 commands, see :ref:`flash-and-debug-support` in the board porting guide. 13 .. Add a per-page contents at the top of the page. This page is nested 21 .. _west-building: 26 .. tip:: Run ``west build -h`` for a quick overview. 29 use :ref:`west config <west-config-cmd>` to configure its behavior. 33 - If there is a Zephyr build directory named :file:`build` in your current 34 working directory, it is incrementally re-compiled. The same is true if you 35 run ``west build`` from a Zephyr build directory. [all …]
|
/Zephyr-latest/arch/arm/core/cortex_m/ |
D | irq_manage.c | 2 * Copyright (c) 2013-2014 Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 9 * @brief ARM Cortex-M interrupt management 49 return NVIC->ISER[REG_FROM_IRQ(irq)] & BIT(BIT_FROM_IRQ(irq)); in arch_irq_is_enabled() 69 * run at a priority level which is not masked by irq_lock(). in z_arm_irq_priority_set() 77 /* Use caller supplied prio level as-is */ in z_arm_irq_priority_set() 86 * reduced set of priorities, like Cortex-M0/M0+). in z_arm_irq_priority_set() 88 __ASSERT(prio <= (BIT(NUM_IRQ_PRIO_BITS) - 1), in z_arm_irq_priority_set() 90 prio - _IRQ_PRIO_OFFSET, irq, in z_arm_irq_priority_set() 91 BIT(NUM_IRQ_PRIO_BITS) - (_IRQ_PRIO_OFFSET)); in z_arm_irq_priority_set() [all …]
|
/Zephyr-latest/tests/kernel/mutex/sys_mutex/src/ |
D | main.c | 2 * Copyright (c) 2012-2016 Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 14 * highest-priority thread attempting to lock the mutex. 25 * - 0.0 sec: thread_05, thread_06, thread_07, thread_08, thread_09, sleep 27 * - 0.0 sec: thread_11 sleeps 28 * - 0.5 sec: thread_09 wakes and waits on mutex_1 29 * - 1.0 sec: main thread (@ priority 9) takes mutex_2 then sleeps 30 * - 1.5 sec: thread_08 wakes and waits on mutex_2 31 * - 2.0 sec: main thread (@ priority 8) takes mutex_3 then sleeps 32 * - 2.5 sec: thread_07 wakes and waits on mutex_3 [all …]
|
/Zephyr-latest/tests/arch/arm/arm_interrupt/src/ |
D | arm_interrupt.c | 4 * SPDX-License-Identifier: Apache-2.0 13 static volatile int expected_reason = -1; 31 (pEsf->basic.r0 == 0) && in check_esf_matches_expectations() 32 (pEsf->basic.r1 == 1) && in check_esf_matches_expectations() 33 (pEsf->basic.r2 == 2) && in check_esf_matches_expectations() 34 (pEsf->basic.r3 == 3) && in check_esf_matches_expectations() 35 (pEsf->basic.lr == 15) && in check_esf_matches_expectations() 36 (*(uint16_t *)pEsf->basic.pc == expected_fault_instruction); in check_esf_matches_expectations() 39 return -1; in check_esf_matches_expectations() 43 const struct _callee_saved *callee_regs = pEsf->extra_info.callee; in check_esf_matches_expectations() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/interop/ |
D | README.md | 4 the Twister's Pytest integration to run testcases against Leshan demo server. 7 These tests require setup that is not done in Twister run, so follow this documentation to set 15 …oject.org/latest/connectivity/networking/networking_with_host.html#networking-with-the-host-system) 16 …ng for Zephyr native network on Linux](https://github.com/zephyrproject-rtos/net-tools/blob/master… 19 ### Run Lehan server from net-tools Docker container 21 Zephyr's net-tools Docker container already contains Leshan, so if you don't want to set the enviro… 22 use the pre-made docker. 26 cd tools/net-tools/docker 27 docker build -t net-tools . 32 cd tools/net-tools/ [all …]
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | environment.py | 4 # Copyright (c) 2018-2024 Intel Corporation 8 # SPDX-License-Identifier: Apache-2.0 45 def _get_installed_packages() -> Generator[str, None, None]: 63 PYTEST_PLUGIN_INSTALLED = 'pytest-twister-harness' in installed_packages 71 def add_parse_arguments(parser = None) -> argparse.ArgumentParser: 82 $ ./scripts/twister -v \\ 83 --testsuite-root tests/ztest/base \\ 84 --testsuite-root tests/kernel \\ 85 --test tests/ztest/base/testing.ztest.verbose_0 \\ 86 --test tests/kernel/fifo/fifo_api/kernel.fifo [all …]
|
/Zephyr-latest/doc/develop/test/ |
D | twister.rst | 11 defined set of boards and will run in an emulated environment if available for 20 When using (at least) one ``-v`` option, twister's console output 21 shows for every test application how the test is run (qemu, native_sim, etc.) or 25 There are a few reasons why twister only builds a test and doesn't run it: 27 - The test is marked as ``build_only: true`` in its ``.yaml`` 29 - The test configuration has defined a ``harness`` but you don't have 31 - The target device is not connected and not available for flashing 32 - You or some higher level automation invoked twister with 33 ``--build-only``. 35 To run the script in the local tree, follow the steps below: [all …]
|
/Zephyr-latest/subsys/testsuite/ztest/include/zephyr/ |
D | ztest_test.h | 4 * SPDX-License-Identifier: Apache-2.0 122 #define ZTEST_TEST_COUNT (_ztest_unit_test_list_end - _ztest_unit_test_list_start) 150 * Setup function to run before running this suite 157 * Function to run before each test in this suite 164 * Function to run after each test in this suite 171 * Teardown function to run after running this suite 178 * An optional predicate function to determine if the test should run. If NULL, then the 179 * test will only run once on the first attempt. 182 * @return True if the suite should be run; false to skip. 217 #define ZTEST_SUITE_COUNT (_ztest_suite_node_list_end - _ztest_suite_node_list_start) [all …]
|
/Zephyr-latest/drivers/lora/ |
D | sx12xx_common.c | 5 * SPDX-License-Identifier: Apache-2.0 14 /* LoRaMac-node specific includes */ 47 if (!device_is_ready(gpio->port)) { in __sx12xx_configure_pin() 48 LOG_ERR("GPIO device not ready %s", gpio->port->name); in __sx12xx_configure_pin() 49 return -ENODEV; in __sx12xx_configure_pin() 54 LOG_ERR("Cannot configure gpio %s %d: %d", gpio->port->name, in __sx12xx_configure_pin() 55 gpio->pin, err); in __sx12xx_configure_pin() 63 * @brief Attempt to acquire the modem for operations 72 return atomic_cas(&data->modem_usage, STATE_FREE, STATE_BUSY); in modem_acquire() 79 * release operations will only be run once. [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_llcp_chmu.c | 4 * SPDX-License-Identifier: Apache-2.0 61 /* Procedure run */ 74 /* Procedure run */ 94 pdu = (struct pdu_data *)tx->pdu; in lp_chmu_tx() 99 ctx->tx_opcode = pdu->llctrl.opcode; in lp_chmu_tx() 107 ull_conn_chan_map_set(conn, ctx->data.chmu.chm); in lp_chmu_complete() 109 ctx->state = LP_CHMU_STATE_IDLE; in lp_chmu_complete() 117 ctx->state = LP_CHMU_STATE_WAIT_TX_CHAN_MAP_IND; in lp_chmu_send_channel_map_update_ind() 121 ctx->data.chmu.instant = ull_conn_event_counter(conn) + CHMU_INSTANT_DELTA; in lp_chmu_send_channel_map_update_ind() 125 ctx->state = LP_CHMU_STATE_WAIT_INSTANT; in lp_chmu_send_channel_map_update_ind() [all …]
|
/Zephyr-latest/boards/arduino/due/doc/ |
D | index.rst | 10 that run on the Arduino Due board. It provides support for the Atmel 11 SAM3X8E ARM Cortex-M3 CPU and the following devices: 37 +-----------+------------+----------------------+ 40 | NVIC | on-chip | nested vectored | 42 +-----------+------------+----------------------+ 43 | SYSTICK | on-chip | system clock | 44 +-----------+------------+----------------------+ 45 | UART | on-chip | serial port | 46 +-----------+------------+----------------------+ 47 | GPIO | on-chip | gpio | [all …]
|