/Zephyr-latest/cmake/compiler/clang/ |
D | compiler_flags.cmake | 1 # First step is to inherit all properties from gcc, as clang is compatible with most flags. 4 # Now, let's overwrite the flags that are different in clang. 6 # No property flag, clang doesn't understand fortify at all 10 # No printf-return-value optimizations in clang 14 # But clang has problems compiling these with -fno-freestanding. 17 # clang flags for coverage generation 19 set_compiler_property(PROPERTY coverage -fprofile-instr-generate -fcoverage-mapping) 21 set_compiler_property(PROPERTY coverage --coverage -fno-inline) 24 # clang flag for colourful diagnostic messages 25 set_compiler_property(PROPERTY diagnostic -fcolor-diagnostics) [all …]
|
/Zephyr-latest/samples/subsys/zbus/benchmark/src/ |
D | msg_sub.c | 3 * SPDX-License-Identifier: Apache-2.0 24 #define CREATE_OBSERVATIONS(s) ZBUS_CHAN_ADD_OBS(bm_channel, s, 3) 26 /* clang-format off */ 30 /* clang-format on */ 49 return -EFAULT; in msg_sub_thread() 53 K_THREAD_DEFINE(name##_msub_id, CONSUMER_STACK_SIZE, msg_sub_thread, &name, NULL, NULL, 3, \ 55 /* clang-format off */ 57 /* clang-format on */
|
D | sub.c | 3 * SPDX-License-Identifier: Apache-2.0 24 #define CREATE_OBSERVATIONS(s) ZBUS_CHAN_ADD_OBS(bm_channel, s, 3) 26 /* clang-format off */ 30 /* clang-format on */ 49 memcpy(zbus_chan_msg(chan), &message, chan->message_size); in sub_thread() 55 atomic_add(&count, *((uint16_t *)msg_received->bytes)); in sub_thread() 63 return -EFAULT; in sub_thread() 67 K_THREAD_DEFINE(name##_sub_id, CONSUMER_STACK_SIZE, sub_thread, &name, NULL, NULL, 3, 0, 0); 69 /* clang-format off */ 71 /* clang-format on */
|
D | lis.c | 3 * SPDX-License-Identifier: Apache-2.0 26 #define CREATE_OBSERVATIONS(s) ZBUS_CHAN_ADD_OBS(bm_channel, s, 3) 28 /* clang-format off */ 32 /* clang-format on */ 40 memcpy(zbus_chan_msg(chan), &msg_received, chan->message_size); in s_cb() 46 atomic_add(&count, *((uint16_t *)msg_received->bytes)); in s_cb()
|
/Zephyr-latest/tests/net/lib/lwm2m/observation/src/ |
D | lwm2m_observation.c | 4 * SPDX-License-Identifier: Apache-2.0 25 if (level >= LWM2M_PATH_LEVEL_OBJECT && path->obj_id != compare_path->obj_id) { in lwm2m_path_object_equal_upto() 30 path->obj_inst_id != compare_path->obj_inst_id) { in lwm2m_path_object_equal_upto() 34 if (level >= LWM2M_PATH_LEVEL_RESOURCE && path->res_id != compare_path->res_id) { in lwm2m_path_object_equal_upto() 39 path->res_inst_id != compare_path->res_inst_id) { in lwm2m_path_object_equal_upto() 63 if (entry->path.level > prev->path.level) { in assert_path_list_order() 67 if (prev->path.level >= LWM2M_PATH_LEVEL_OBJECT) { in assert_path_list_order() 68 is_after = entry->path.obj_id >= prev->path.obj_id; in assert_path_list_order() 70 if (is_after && prev->path.level >= LWM2M_PATH_LEVEL_OBJECT_INST && in assert_path_list_order() 71 entry->path.obj_id == prev->path.obj_id) { in assert_path_list_order() [all …]
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_obj_binaryappdata.h | 7 * SPDX-License-Identifier: Apache-2.0 13 /* clang-format off */ 17 #define LWM2M_BINARYAPPDATA_DATA_DESCRIPTION_ID 3 20 /* clang-format on */
|
D | ucifi_battery.h | 7 * SPDX-License-Identifier: Apache-2.0 13 /* clang-format off */ 16 #define UCIFI_BATTERY_VOLTAGE_RID 3 26 /* clang-format on */
|
D | ipso_filling_sensor.h | 7 * SPDX-License-Identifier: Apache-2.0 15 /* clang-format off */ 18 #define ACTUAL_FILL_LEVEL_FILLING_SENSOR_RID 3 29 /* clang-format on */
|
D | ucifi_lpwan.h | 4 * SPDX-License-Identifier: Apache-2.0 10 /* Mandatory resource: ID 6 - IEEE MAC address of the device (up to 64 bits) */ 14 /* clang-format off */ 17 #define UCIFI_LPWAN_IPV6_ADDRESS_RID 3 39 /* clang-format on */
|
D | lwm2m_obj_gateway.h | 7 * SPDX-License-Identifier: Apache-2.0 15 /* clang-format off */ 19 #define LWM2M_GATEWAY_IOT_DEVICE_OBJECTS_RID 3 20 /* clang-format on */ 35 * // Write CoAP packet to msg->out.out_cpkt 48 * @return -ENOENT if no object instance with obj_inst_id was found 56 * @return -ENOENT if this msg was not handled by Gateway object.
|
D | README_lwm2m | 2 ---------------------- 13 The CDDL description is based on the RFC 8428 - Sensor Measurement Lists (SenML). For further 14 details please see the chapter 11 - CDDL. 19 pip install --upgrade zcbor 24 …you can attempt to use the 3-way merge capabilities by committing the un-patched changes (i.e. up … 27 git am -3 < lwm2m_senml_cbor.patch 33 git format-patch --stdout HEAD~1.. > lwm2m_senml_cbor.patch
|
/Zephyr-latest/scripts/ |
D | requirements-compliance.txt | 4 # zephyr-keep-sorted-start 5 clang-format>=15.0.0 10 pylint>=3 11 python-magic-bin; sys_platform == "win32" 12 python-magic; sys_platform != "win32" 14 sphinx-lint 17 # zephyr-keep-sorted-stop
|
/Zephyr-latest/tests/arch/arm/arm_irq_vector_table/src/ |
D | arm_irq_vector_table.c | 4 * SPDX-License-Identifier: Apache-2.0 21 /* For the nRF51-based QEMU Cortex-M0 platform, the first set of consecutive 27 /* For nRF54L Series, use SWI00-02 interrupt lines. */ 30 /* For nRF54H and nRF92 Series, use BELLBOARD_0-2 interrupt lines. */ 33 /* For other nRF targets, use TIMER0-2 interrupt lines. */ 38 struct k_sem sem[3]; 99 printk("Test Cortex-M IRQs installed directly in the vector table\n"); in ZTEST() 101 for (int ii = 0; ii < 3; ii++) { in ZTEST() 111 for (int ii = 0; ii < 3; ii++) { in ZTEST() 118 NVIC->STIR = _ISR_OFFSET + ii; in ZTEST() [all …]
|
/Zephyr-latest/tests/drivers/sensor/ina230/src/ |
D | ina230_emul.c | 4 * SPDX-License-Identifier: Apache-2.0 40 struct ina230_reg *c_reg = data->regs; in get_register() 42 while (c_reg->bytes) { in get_register() 43 if (c_reg->id == reg) { in get_register() 57 return -EINVAL; in ina230_mock_set_register() 60 reg_ptr->value = value; in ina230_mock_set_register() 75 return -EINVAL; in ina230_mock_get_register() 78 *value_ptr = reg_ptr->value; in ina230_mock_get_register() 85 struct ina230_emul_data *data = (struct ina230_emul_data *)target->data; in ina230_emul_transfer_i2c() 87 /* The INA230 uses big-endian read 16, read 24, and write 16 transactions */ in ina230_emul_transfer_i2c() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/util/ |
D | mem.h | 5 * SPDX-License-Identifier: Apache-2.0 10 * @brief Force compiler to place memory at-least on a x-byte boundary 11 * @details Compiler extension. Supported by GCC and Clang 20 * The addition of 3 forces x into the next multiple of 4. This is responsible 22 * For ANDing of ~3: We observe y & (~3) == (y>>2)<<2, and we recognize 23 * (y>>2) as a floored division, which is almost undone by the left-shift. The 30 * MROUND( 3) = 4 37 #define MROUND(x) (((uint32_t)(x)+3) & (~((uint32_t)3)))
|
/Zephyr-latest/soc/atmel/sam0/common/ |
D | soc_samd5x.c | 3 * Copyright (c) 2023-2025 Gerson Fernando Budke <nandojve@gmail.com> 5 * SPDX-License-Identifier: Apache-2.0 16 * Reference -> GCLK Gen 1 -> DFLL48M -> GCLK Gen 0 -> GCLK_MAIN 18 * GCLK Gen 0 -> GCLK_MAIN @ DPLL0 19 * GCLK Gen 1 -> DFLL48M @ 32768 Hz 20 * GCLK Gen 2 -> USB @ DFLL48M 21 * GCLK Gen 3 -> ADC @ reserved 22 * GCLK Gen 4 -> RTC @ xtal 32768 Hz 30 /* clang-format off */ 42 OSC32KCTRL->XOSC32K.reg = OSC32KCTRL_XOSC32K_ENABLE in xosc32k_init() [all …]
|
D | soc_samd2x.c | 4 * Copyright (c) 2023-2025 Gerson Fernando Budke <nandojve@gmail.com> 6 * SPDX-License-Identifier: Apache-2.0 17 * Reference -> GCLK Gen 1 -> DFLL48M -> GCLK Gen 0 -> GCLK_MAIN 19 * GCLK Gen 0 -> GCLK_MAIN 20 * GCLK Gen 1 -> DFLL48M (variable) 21 * GCLK Gen 2 -> WDT @ 32768 Hz 22 * GCLK Gen 3 -> ADC @ 8 MHz 23 * GCLK Gen 4 -> RTC @ xtal 32768 Hz 33 /* clang-format off */ 46 GCLK->GENDIV.reg = GCLK_GENDIV_ID(gclk) in gclk_connect() [all …]
|
D | soc_saml2x.c | 3 * Copyright (c) 2023-2025 Gerson Fernando Budke <nandojve@gmail.com> 5 * SPDX-License-Identifier: Apache-2.0 19 /* clang-format off */ 22 * and low-power operation are not currently supported by the BSP 26 * Reference -> GCLK Gen 1 -> DFLL48M -> GCLK Gen 0 -> GCLK_MAIN 28 * GCLK Gen 0 -> GCLK_MAIN @ 48 Mhz 29 * GCLK Gen 1 -> DFLL48M (variable) 30 * GCLK Gen 2 -> USB @ 48 MHz 31 * GCLK Gen 3 -> ADC @ 24 MHz (further /2 in the ADC peripheral) 32 * GCLK Gen 4 -> RTC @ reserved [all …]
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_shell.c | 4 * SPDX-License-Identifier: Apache-2.0 44 .timeout_min = 3, 68 return -ENOTSUP; in parse_named_int() 78 return -ENODEV; in cmd_setup() 91 return -ENODEV; in cmd_disable() 109 return -ENODEV; in cmd_timeout() 115 return -EINVAL; in cmd_timeout() 121 return -EINVAL; in cmd_timeout() 127 return -EINVAL; in cmd_timeout() 151 return -ENODEV; in cmd_feed() [all …]
|
/Zephyr-latest/ |
D | .clang-format | 1 # SPDX-License-Identifier: Apache-2.0 5 # git grep -h '^#define [^[:space:]]*FOR_EACH[^[:space:]]*(' include/ \ 6 # | sed "s,^#define \([^[:space:]]*FOR_EACH[^[:space:]]*\)(.*$, - '\1'," \ 10 # - https://clang.llvm.org/docs/ClangFormatStyleOptions.html 12 --- 22 - __aligned 23 - __deprecated 24 - __packed 25 - __printf_like 26 - __syscall [all …]
|
/Zephyr-latest/include/zephyr/arch/arm/mpu/ |
D | arm_mpu_v8.h | 5 * SPDX-License-Identifier: Apache-2.0 10 /* Convenience macros to represent the ARMv8-M-specific 12 * cache-ability attribution. 20 #define MPU_RBAR_SH_Pos 3U 66 /* Attribute flag for not-allowing execution (eXecute Never) */ 69 /* Attribute flags for share-ability */ 78 #define REGION_LIMIT_ADDR(base, size) (((base & MPU_RBAR_BASE_Msk) + size - 1) & MPU_RLAR_LIMIT_Msk) 80 /* Attribute flags for cache-ability */ 94 * 3 Early Write Acknowledgment (E/nE) 112 #define NORMAL_O_WT_NT 0x80 /* Normal, Outer Write-through non-transient */ [all …]
|
/Zephyr-latest/drivers/audio/ |
D | codec_shell.c | 4 * SPDX-License-Identifier: Apache-2.0 57 .channel = 3, 79 return -ENOTSUP; in parse_named_int() 89 return -ENODEV; in cmd_start() 103 return -ENODEV; in cmd_stop() 122 return -ENODEV; in cmd_set_prop() 129 return -EINVAL; in cmd_set_prop() 136 return -EINVAL; in cmd_set_prop() 141 return -EINVAL; in cmd_set_prop() 144 return -EINVAL; in cmd_set_prop() [all …]
|
/Zephyr-latest/soc/nordic/ |
D | validate_rram_partitions.c | 4 * SPDX-License-Identifier: Apache-2.0 18 * For example, FOR_EACH_PAIR(f, (,), 1, 2, 3, 4) should expand to: 20 * f(2, 1) , f(3, 1) , f(4, 1) , f(3, 2) , f(4, 2) , f(4, 3) 31 * @brief Get a node's non-secure register block start address. 38 * @brief Get a node's non-secure register block end address. 44 /* clang-format off */ 50 #error "Missing \"rram-controller\" node" 55 "Missing compatible \"soc-nv-flash\" from " DT_NODE_FULL_NAME(node_id) \ 69 /* Retrieve all RRAM nodes that are children of "rram-controller". */ 75 /* Check that every RRAM node matches the "soc-nv-flash" compatible. */ [all …]
|
/Zephyr-latest/subsys/llext/ |
D | shell.c | 4 * SPDX-License-Identifier: Apache-2.0 50 return -ENOENT; in cmd_llext_list_symbols() 53 shell_print(sh, "Extension: %s symbols", m->name); in cmd_llext_list_symbols() 55 for (elf_word i = 0; i < m->exp_tab.sym_cnt; i++) { in cmd_llext_list_symbols() 56 shell_print(sh, "| %16s | %p |", m->exp_tab.syms[i].name, in cmd_llext_list_symbols() 57 m->exp_tab.syms[i].addr); in cmd_llext_list_symbols() 73 if (cmd->tgt == cmd->idx) { in llext_shell_name_cb() 74 cmd->ext = ext; in llext_shell_name_cb() 78 cmd->idx++; in llext_shell_name_cb() 89 entry->syntax = cmd.ext ? cmd.ext->name : NULL; in llext_name_get() [all …]
|
/Zephyr-latest/tests/subsys/ipc/pbuf/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 22 printk("----------stats start-----------\n"); in print_pbuf_info() 23 printk("cfg->rd_idx_loc: %p, val: %u\n", pb->cfg->rd_idx_loc, *(pb->cfg->rd_idx_loc)); in print_pbuf_info() 24 printk("cfg->wr_idx_loc: %p, val: %u\n", pb->cfg->wr_idx_loc, *(pb->cfg->wr_idx_loc)); in print_pbuf_info() 25 printk("cfg->data_loc: %p\n", pb->cfg->data_loc); in print_pbuf_info() 26 printk("cfg->len: %u\n", pb->cfg->len); in print_pbuf_info() 27 printk("cfg->dcache_alignment: %u\n", pb->cfg->dcache_alignment); in print_pbuf_info() 29 printk("data.rd_idx: %u\n", pb->data.rd_idx); in print_pbuf_info() 30 printk("data.wr_idx: %u\n", pb->data.wr_idx); in print_pbuf_info() 31 printk("-----------stats end------------\n"); in print_pbuf_info() [all …]
|