/Zephyr-latest/scripts/kconfig/ |
D | hardenconfig.py | 3 # Copyright (c) 2019-2024 Intel Corporation 4 # SPDX-License-Identifier: Apache-2.0 44 for row in csvreader: 56 for node in kconf.node_iter(): 57 for select in node.selects: 58 if kconf.syms["EXPERIMENTAL"] in select or kconf.syms["DEPRECATED"] in select: 72 for opt in options: 73 if opt.result == 'FAIL' and opt.symbol.visibility != 0: 75 opt.name, opt.current, opt.recommended), end='') 76 print('||{:^28}\n'.format(opt.result), end='')
|
/Zephyr-latest/drivers/can/ |
D | can_native_linux_adapt.c | 5 * SPDX-License-Identifier: Apache-2.0 11 * Routines setting up the host system. Those are placed in separate file 48 int fd, opt, ret = -EINVAL; in linux_socketcan_iface_open() local 52 return -errno; in linux_socketcan_iface_open() 58 strncpy(ifr.ifr_name, if_name, IFNAMSIZ - 1); in linux_socketcan_iface_open() 63 return -errno; in linux_socketcan_iface_open() 72 return -errno; in linux_socketcan_iface_open() 75 /* this option must always be enabled in order to receive TX confirmations */ in linux_socketcan_iface_open() 76 opt = 1; in linux_socketcan_iface_open() 77 ret = setsockopt(fd, SOL_CAN_RAW, CAN_RAW_RECV_OWN_MSGS, &opt, sizeof(opt)); in linux_socketcan_iface_open() [all …]
|
/Zephyr-latest/doc/develop/toolchains/ |
D | intel_oneapi_toolkit.rst | 7 <https://software.intel.com/content/www/us/en/develop/tools/oneapi/all-toolkits.html>`_ 9 #. Assuming the toolkit is installed in ``/opt/intel/oneApi``, set environment 13 export ONEAPI_TOOLCHAIN_PATH=/opt/intel/oneapi 21 source /opt/intel/oneapi/setvars.sh
|
D | cadence_xcc.rst | 12 * A SoC-specific add-on to be installed on top of Xtensa Xplorer. 14 * This add-on allows the compiler to generate code for the SoC on hand. 16 #. Install Xtensa Xplorer and then the SoC add-on. 22 * GCC-based compiler: ``xt-xcc`` and its friends. 24 * Clang-based compiler: ``xt-clang`` and its friends. 31 * Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to ``xcc`` or ``xt-clang``. 51 #. For example, assuming the SDK is installed in ``/opt/xtensa``, and 57 .. code-block:: console 60 export ZEPHYR_TOOLCHAIN_VARIANT=xt-clang 61 export XTENSA_TOOLCHAIN_PATH=/opt/xtensa/XtDevTools/install/tools/ [all …]
|
D | other_x_compilers.rst | 8 GNU-based cross toolchain. 12 from the net. Unlike toolchains specifically listed in 15 toolchain set-up mechanism itself is supported.) 21 For example, you might install the ``gcc-arm-none-eabi`` package on 22 Debian-based Linux systems, or ``arm-none-eabi-newlib`` on Fedora or Red 25 .. code-block:: console 28 sudo apt-get install gcc-arm-none-eabi 30 sudo dnf install arm-none-eabi-newlib 34 - Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to ``cross-compile``. 35 - Set ``CROSS_COMPILE`` to the common path prefix which your [all …]
|
D | arm_compiler.rst | 11 - Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to ``armclang``. 12 - Set :envvar:`ARMCLANG_TOOLCHAIN_PATH` to the toolchain installation 20 .. code-block:: bash 27 .. code-block:: batch 36 …https://developer.arm.com/tools-and-software/software-development-tools/license-management/resourc… 37 For example if the Arm Development Studio is installed in: 38 ``/opt/armds-2020-1`` with a Gold license, then set :envvar:`ARM_PRODUCT_DEF` 39 to point to ``/opt/armds-2020-1/gold.elmap``. 46 supports generating scatter files. Basic scatter file support is in 47 place, but there are still areas covered in ld templates which are not [all …]
|
D | zephyr_sdk.rst | 11 certain conditions (for example, running tests in QEMU for some architectures). 18 * ARC (32-bit and 64-bit; ARCv1, ARCv2, ARCv3) 19 * ARM (32-bit and 64-bit; ARMv6, ARMv7, ARMv8; A/R/M Profiles) 20 * MIPS (32-bit and 64-bit) 22 * RISC-V (32-bit and 64-bit; RV32I, RV32E, RV64I) 23 * x86 (32-bit and 64-bit) 34 script. Additional OS-specific instructions are described in the sections below. 40 If you install the Zephyr SDK outside any of the default locations (listed in 42 of the Zephyr SDK, then you must register the Zephyr SDK in the CMake package registry 43 by running the setup script. If you decide not to register the Zephyr SDK in the CMake registry, [all …]
|
/Zephyr-latest/scripts/ |
D | coccicheck | 2 # SPDX-License-Identifier: GPL-2.0 6 DIR="$(dirname $(readlink -f $0))/.." 9 if [ ! -x "$SPATCH" ]; then 18 ------- 20 -m= , --mode= specify the mode use {report, patch, org, context, chain} 21 -v= , --verbose= enable verbose output {1} 22 -j= , --jobs= number of jobs to use {0 - `nproc`} 23 -c= , --cocci= specify cocci script to use 24 -d= , --debug= specify file to store debug log 25 -f= , --sp-flag= pass additional flag to spatch [all …]
|
/Zephyr-latest/boards/nxp/mimxrt1180_evk/ |
D | board.cmake | 4 # SPDX-License-Identifier: Apache-2.0 8 "${ZEPHYR_HAL_NXP_MODULE_DIR}/mcux/mcux-sdk/boards/evkmimxrt1180") 10 …m/design/design-center/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-sec… 11 …sage of SPT on MIMXRT1180-EVK board can be referred on chapter 7 of getting start with Mcuxpresso … 13 board_runner_args(linkserver "--device=MIMXRT1189xxxxx:MIMXRT1180-EVK") 14 board_runner_args(jlink "--device=MIMXRT1189xxx8_M33" "--reset-after-load" "--tool-opt=-jlinkscript… 17 board_runner_args(linkserver "--device=MIMXRT1189xxxxx:MIMXRT1180-EVK") 18 board_runner_args(linkserver "--core=cm7") 19 …--device=MIMXRT1189xxx8_M7" "--speed=4000" "--no-reset" "--tool-opt=-jlinkscriptfile ${RT1180_BOAR…
|
/Zephyr-latest/samples/net/sockets/echo_service/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 26 [0] = { .fd = -1 }, /* UDP socket */ 29 [0] = { .fd = -1 }, /* TCP socket */ 41 /* Note that in this application we receive / send data from in tcp_service_handler() 42 * system work queue. In proper application the socket reading and data in tcp_service_handler() 62 struct pollfd *pfd = &pev->event; in receive_data() 63 int client = pfd->fd; in receive_data() 73 LOG_ERR("recv: %d", -errno); in receive_data() 78 sockfd_tcp[0].fd = -1; in receive_data() 103 LOG_ERR("sendto: %d", -errno); in receive_data() [all …]
|
/Zephyr-latest/drivers/pcie/host/ |
D | pcie.c | 5 * SPDX-License-Identifier: Apache-2.0 38 /* functions documented in drivers/pcie/pcie.h */ 108 * @param bar_index 0-based BAR index 201 &bar->phys_addr)) { in pcie_get_bar() 205 bar->phys_addr = PCIE_CONF_BAR_ADDR(phys_addr); in pcie_get_bar() 207 bar->size = size & ~(size-1); in pcie_get_bar() 222 * are order-preserving with respect to the endpoint BARs: e.g., index 0 223 * will return the lowest-numbered BAR on the endpoint. 226 * @param index (0-based) index 239 (index > 0) && (reg <= PCIE_CONF_BAR5); reg++, index--) { in pcie_probe_bar() [all …]
|
/Zephyr-latest/samples/net/sockets/echo/src/ |
D | socket_echo.c | 4 * SPDX-License-Identifier: Apache-2.0 13 #include <netinet/in.h> 29 int opt; in main() local 45 ret = getsockopt(serv, IPPROTO_IPV6, IPV6_V6ONLY, &opt, &optlen); in main() 47 if (opt) { in main() 50 opt = 0; in main() 52 &opt, optlen); in main() 71 printf("Single-threaded TCP echo server waits for a connection on " in main() 110 len -= out_len; in main()
|
/Zephyr-latest/boards/cdns/xt-sim/doc/ |
D | index.rst | 1 .. zephyr:board:: xt-sim 7 synthesizable 32-bit RISC processor core. Processor and SOC vendors can select 8 from various processor options and even create customized instructions in 11 For more information, see https://ip.cadence.com/ipportfolio/tensilica-ip/xtensa-customizable 18 - sample_controller 35 Only Xtensa tools version ``RF-2016.4-linux`` or later are officially 38 In order to set up the Zephyr OS build system, a Linux 32-bit GCC compiler must 42 On Debian/Ubuntu systems, you can install ``gcc-multilib`` package as follows: 44 .. code-block:: console 46 #aptitude install gcc-multilib # Or what ever package manager (apt, apt-get, ...) [all …]
|
/Zephyr-latest/scripts/checkpatch/ |
D | timestamp | 6 # SPDX-License-Identifier: Apache-2.0 11 # outputs the date and time in pre-set formats 12 # default format is: 20150114-181112 13 # usage: timestamp [-a] [-d] [-u] [-s] [-S] 14 # where: -a changes default to: 2015-01-14-18-11-56 15 # -d changes default to: 20150114 16 # -u changes default to: 20150114_181201 17 # -s changes default to: 20150114-1812.04 18 # -S changes default to: 20150114-1812 19 # Some switches can be mixed and matched, eg. -Sa gives 2015-01-14-18-13 [all …]
|
D | maintainer-checkpatch.bash | 6 # SPDX-License-Identifier: Apache-2.0 12 # usage: maintainer-checkpatch.bash [(-n <num commits>) | (-c <commit>)] [-s] 13 # where: -n <num commits> selects the last n commits (default: 1) 14 # -c <commit> selects the "since" commit 15 # -s asks for a summary instead of details 17 # -c and -n are mutually exclusive 20 --patch \ 21 --no-tree \ 22 --show-types \ 23 --max-line-length=100 \ [all …]
|
/Zephyr-latest/include/zephyr/drivers/misc/grove_lcd/ |
D | grove_lcd.h | 1 /* grove_lcd.h - Public API for the Grove RGB LCD device */ 5 * SPDX-License-Identifier: Apache-2.0 30 * @param size the length of the text in bytes 39 * @param col the column for the cursor to be moved to (0-15) 66 * @param opt An 8bit bitmask of GLCD_DS_* options. 69 void glcd_display_state_set(const struct device *dev, uint8_t opt); 92 * @param opt A bitmask of GLCD_IS_* options 95 void glcd_input_state_set(const struct device *dev, uint8_t opt); 117 * @param opt A bitmask of GLCD_FS_* options 123 void glcd_function_set(const struct device *dev, uint8_t opt);
|
/Zephyr-latest/tests/drivers/flash/stm32/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 36 flash_get_page_info_by_offs(dev, offset + size - 1, &end_page)) { in sector_mask_from_offset() 37 return -EINVAL; in sector_mask_from_offset() 40 *mask = ((1UL << (end_page.index + 1)) - 1) & in sector_mask_from_offset() 41 ~((1UL << start_page.index) - 1); in sector_mask_from_offset() 57 /* Check if tested region fits in flash. */ in flash_stm32_setup() 97 if (buf[i] != flash_params->erase_value) { in flash_stm32_setup() 142 zassert_true(buf[i] == flash_params->erase_value, in ZTEST() 196 return regs->OPTCR & FLASH_OPTCR_OPTLOCK; in flash_opt_locked() 203 regs->KEYR = FLASH_KEY1; in flash_cr_unlock() [all …]
|
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | dhcpv4_server.c | 8 * SPDX-License-Identifier: Apache-2.0 85 for (int i = 0; i < ARRAY_SIZE(ctx->addr_pool); i++) { in dhcpv4_server_timeout_recalc() 86 struct dhcpv4_addr_slot *slot = &ctx->addr_pool[i]; in dhcpv4_server_timeout_recalc() 88 if (slot->state == DHCPV4_SERVER_ADDR_RESERVED || in dhcpv4_server_timeout_recalc() 89 slot->state == DHCPV4_SERVER_ADDR_ALLOCATED || in dhcpv4_server_timeout_recalc() 90 slot->state == DHCPV4_SERVER_ADDR_DECLINED) { in dhcpv4_server_timeout_recalc() 91 if (sys_timepoint_cmp(slot->expiry, next) < 0) { in dhcpv4_server_timeout_recalc() 92 next = slot->expiry; in dhcpv4_server_timeout_recalc() 101 k_work_cancel_delayable(&ctx->timeout_work); in dhcpv4_server_timeout_recalc() 103 k_work_reschedule(&ctx->timeout_work, timeout); in dhcpv4_server_timeout_recalc() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/notify/src/ |
D | gatt_client_test.c | 4 * SPDX-License-Identifier: Apache-2.0 83 /* We're only interested in connectable events */ in device_found() 122 printk("[ATTRIBUTE] handle %u\n", attr->handle); in discover_func() 124 if (params->type == BT_GATT_DISCOVER_PRIMARY && in discover_func() 125 bt_uuid_cmp(params->uuid, TEST_SERVICE_UUID) == 0) { in discover_func() 127 params->uuid = NULL; in discover_func() 128 params->start_handle = attr->handle + 1; in discover_func() 129 params->type = BT_GATT_DISCOVER_CHARACTERISTIC; in discover_func() 137 } else if (params->type == BT_GATT_DISCOVER_CHARACTERISTIC) { in discover_func() 138 const struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() [all …]
|
/Zephyr-latest/cmake/modules/ |
D | FindZephyr-sdk.cmake | 1 # SPDX-License-Identifier: Apache-2.0 3 # Copyright (c) 2022-2023, Nordic Semiconductor ASA 5 # FindZephyr-sdk module for supporting module search mode of Zephyr SDK. 7 # It is possible to control the behavior of the Zephyr-SDK package using 9 # The Zephyr-SDK package supports the components: 10 # - LOAD: Load a Zephyr-SDK. This is the default behavior if no COMPONENTS is specified. 15 # It extends the Zephyr-sdk CMake package by providing more flexibility in when 18 # The module defines the following variables when used in normal search and load mode: 25 # 'Zephyr-sdk_FOUND' 28 # - LIST: Will list all available Zephyr SDKs found in the system but not load [all …]
|
/Zephyr-latest/subsys/net/lib/coap/ |
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/scripts/west_commands/tests/ |
D | test_pyocd.py | 3 # SPDX-License-Identifier: Apache-2.0 20 TEST_PYOCD = 'test-pyocd' 22 TEST_DEV_ID = 'test-dev-id' 23 TEST_FREQUENCY = 'test-frequency' 24 TEST_DAPARG = 'test-daparg' 25 TEST_TARGET = 'test-target' 26 TEST_FLASH_OPTS = ['--test-flash', 'args'] 29 TEST_TOOL_OPTS = ['test-opt-1', 'test-opt-2'] 47 ['--target', TEST_TARGET, 48 '--daparg', TEST_DAPARG, [all …]
|
/Zephyr-latest/doc/services/device_mgmt/smp_groups/ |
D | smp_group_1.rst | 11 +-------------------+-----------------------------------------------+ 15 +-------------------+-----------------------------------------------+ 17 +-------------------+-----------------------------------------------+ 20 +-------------------+-----------------------------------------------+ 23 +-------------------+-----------------------------------------------+ 26 +-------------------+-----------------------------------------------+ 28 +-------------------+-----------------------------------------------+ 30 +-------------------+-----------------------------------------------+ 32 Notion of "slots" and "images" in Zephyr 38 uploaded to the "secondary slot"; the mcuboot is responsible in swapping [all …]
|
/Zephyr-latest/scripts/west_commands/runners/ |
D | ezflashcli.py | 3 # SPDX-License-Identifier: Apache-2.0 13 '''Runner front-end for ezFlashCLI''' 26 for opts in [shlex.split(opt) for opt in tool_opt]: 38 def dev_id_help(cls) -> str: 39 return '''Device identifier. Use it to select the J-Link Serial Number 43 def tool_opt_help(cls) -> str: 44 return "Additional options for ezFlashCLI e.g. '--verbose'" 48 parser.add_argument('--tool', default=DEFAULT_EZFLASHCLI, 71 device_args = ['-j', f'{self.dev_id}']
|
/Zephyr-latest/.github/workflows/ |
D | bsim-tests.yaml | 6 - ".github/workflows/bsim-tests.yaml" 7 - ".github/workflows/bsim-tests-publish.yaml" 8 - "west.yml" 9 - "subsys/bluetooth/**" 10 - "tests/bsim/**" 11 - "boards/nordic/nrf5*/*dt*" 12 - "dts/*/nordic/**" 13 - "tests/bluetooth/common/testlib/**" 14 - "samples/bluetooth/**" 15 - "boards/native/**" [all …]
|