Home
last modified time | relevance | path

Searched +full:check +full:- +full:signed +full:- +full:off +full:- +full:by (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-latest/scripts/gitlint/
Dzephyr_commit_rules.py1 # SPDX-License-Identifier: Apache-2.0
4 The classes below are examples of user-defined CommitRules. Commit rules are gitlint rules that
22 name = "body-min-line-count"
24 # A rule MUST have an *unique* id, we recommend starting with UC (for User-defined Commit-rule).
28 … options_spec = [IntOption('min-line-count', 1, "Minimum body line count excluding Signed-off-by")]
31 …filtered = [x for x in commit.message.body if not x.lower().startswith("signed-off-by") and x != '…
33 min_line_count = self.options['min-line-count'].value
40 name = "body-max-line-count"
42 # A rule MUST have an *unique* id, we recommend starting with UC (for User-defined Commit-rule).
46 options_spec = [IntOption('max-line-count', 200, "Maximum body line count")]
[all …]
/Zephyr-latest/tests/unit/intmath/
Dmain.c5 * SPDX-License-Identifier: Apache-2.0
10 /* Built-time math test. Zephyr code depends on a standard C ABI with
11 * 2's complement signed math. As this isn't technically guaranteed
12 * by the compiler or language standard, validate it explicitly here.
17 * the whole point here, so turn that warning off.
20 #pragma GCC diagnostic ignored "-Woverflow"
23 /* Two's complement negation check: "-N" must equal "(~N)+1" */
24 #define NEG_CHECK(T, N) BUILD_ASSERT((-((T)N)) == (~((T)N)) + 1)
31 #pragma clang diagnostic ignored "-Winteger-overflow"
38 NEG_CHECK(signed char, 1);
[all …]
/Zephyr-latest/doc/contribute/
Dguidelines.rst6 As an open-source project, we welcome and encourage the community to submit
52 https://github.com/zephyrproject-rtos/zephyr/blob/main/LICENSE
54 .. _GitHub repo: https://github.com/zephyrproject-rtos/zephyr
62 this, check out articles such as `Why choose Apache 2.0 licensing`_ and
66 https://www.zephyrproject.org/faqs/#1571346989065-9216c551-f523
69 https://www.whitesourcesoftware.com/whitesource-blog/top-10-apache-license-questions-answered/
71 A license tells you what rights you have as a developer, as provided by the
85 context and approved by the Zephyr governing board.
87 By carefully reviewing potential contributions and also enforcing a
92 See :ref:`external-contributions` for more information about
[all …]
/Zephyr-latest/scripts/
Dcheckpatch.pl2 # SPDX-License-Identifier: GPL-2.0
7 # (c) 2008-2010 Andy Whitcroft <apw@canonical.com>
8 # (c) 2010-2018 Joe Perches <joe@perches.com>
36 my $check = 0;
67 my $git_command ='export LANGUAGE=en_US.UTF-8; git';
78 -q, --quiet quiet
79 --no-tree run without a kernel tree
80 --no-signoff do not check for 'Signed-off-by' line
81 --patch treat FILE as patchfile (default)
82 --emacs emacs compile window format
[all …]
/Zephyr-latest/modules/trusted-firmware-m/
DCMakeLists.txt1 # Copyright (c) 2019 - 2023 Linaro
2 # Copyright (c) 2020 - 2023 Nordic Semiconductor ASA
4 # SPDX-License-Identifier: Apache-2.0
6 # List of all partitions supported by TF-M
7 # Name must match name in 'trusted-firmware-m/tools/tfm_manifest_list.yaml'
19 # PSA API awareness for the Non-Secure application
22 list(APPEND TFM_CMAKE_ARGS -DCONFIG_TFM_SPM_BACKEND="SFN")
24 list(APPEND TFM_CMAKE_ARGS -DCONFIG_TFM_SPM_BACKEND="IPC")
27 list(APPEND TFM_CMAKE_ARGS -DTEST_S=ON)
28 list(APPEND TFM_CMAKE_ARGS -DTFM_S_REG_TEST:BOOL=ON)
[all …]
/Zephyr-latest/scripts/ci/
Dcheck_compliance.py5 # SPDX-License-Identifier: Apache-2.0
42 # Called like git("diff"). Exits with SystemError (raised by sys.exit()) on
56 f"{cp.stdout.decode('utf-8')}\n"
58 f"{cp.stderr.decode('utf-8')}\n")
60 return cp.stdout.decode("utf-8").rstrip()
69 return git('rev-list',
70 f'--max-count={-1 if "." in refspec else 1}', refspec).split()
73 filter_arg = (f'--diff-filter={filter}',) if filter else ()
74 paths_arg = ('--', *paths) if paths else ()
75 out = git('diff', '--name-only', *filter_arg, COMMIT_RANGE, *paths_arg)
[all …]
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/
Ddtlib.py2 # SPDX-License-Identifier: BSD-3-Clause
10 The top-level entry point of the library is the DT class. DT.__init__() takes a
30 "Exception raised for devicetree-related errors"
34 Represents a node in the devicetree ('node-name { ... };').
56 their values. 'props' is indexed by property name (a string), and values
68 stored in big-endian format.
71 A dict containing the subnodes of the node, indexed by name.
96 Node constructor. Not meant to be called directly by clients.
121 def name(self) -> str:
125 # Converted to a property to discourage renaming -- that has to be done
[all …]
/Zephyr-latest/include/zephyr/sys/
Dutil.h2 * Copyright (c) 2011-2014, Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
11 * Misc utilities usable by the kernel and application code.
40 * @defgroup sys-util Utility Functions
51 /** @brief Cast @p x, a pointer, to a signed integer. */
53 /** @brief Cast @p x, a signed integer, to a <tt>void*</tt>. */
80 (((~0UL) - (1UL << (l)) + 1) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
83 * @brief Create a contiguous 64-bit bitmask starting at bit position @p l
87 (((~0ULL) - (1ULL << (l)) + 1) & (~0ULL >> (BITS_PER_LONG_LONG - 1 - (h))))
89 /** @brief 0 if @p cond is true-ish; causes a compile error otherwise. */
[all …]
/Zephyr-latest/doc/security/
Dvulnerabilities.rst14 CVE-2017
17 :cve:`2017-14199`
18 -----------------
22 - `Zephyr project bug tracker ZEPSEC-12
23 <https://zephyrprojectsec.atlassian.net/browse/ZEPSEC-12>`_
25 - `PR6158 fix for 1.11.0
26 <https://github.com/zephyrproject-rtos/zephyr/pull/6158>`_
28 :cve:`2017-14201`
29 -----------------
40 - `Zephyr project bug tracker ZEPSEC-17
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/
Dshell.rst30 sub-commands. Every time the device boots up, make sure to call ``mesh init`` before any of the
43 The simplest way to provision the device is through self-provisioning. To do this the user must
49 devices, as long as they're assigned non-overlapping unicast addresses. Alternatively, to provision
51 ``mesh prov pb-adv on`` or ``mesh prov pb-gatt on``. The beacons can be picked up by an external
54 Once the mesh node is part of a network, its transmission parameters can be controlled by the
61 By default, the transmission parameters are set to send messages to the provisioned address and
67 By setting the destination address to the local unicast address (``0x0001`` in the
68 ``mesh prov local`` command above), we can perform self-configuration through any of the
73 uart:~$ mesh models cfg get-comp
77 Next, since the device has no application keys by default, it's a good idea to add one::
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-2.5.rst20 The following sections provide detailed lists of changes by component.
25 The following CVEs are addressed by this release:
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
37 You can check all currently known issues by listing them using the GitHub
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
64 messages are disabled by setting ``CONFIG_MQTT_KEEPALIVE`` to 0.
[all …]
Drelease-notes-2.2.rst18 * Fix CVE-2020-10028
19 * Fix CVE-2020-10060
20 * Fix CVE-2020-10063
21 * Fix CVE-2020-10066
32 * :github:`23494` - Bluetooth: LL/PAC/SLA/BV-01-C fails if Slave-initiated Feature Exchange is disa…
33 * :github:`23485` - BT: host: Service Change indication sent regardless of whether it is needed or …
34 * :github:`23482` - 2M PHY + DLE and timing calculations on an encrypted link are wrong
35 * :github:`23070` - Bluetooth: controller: Fix ticker implementation to avoid catch up
36 * :github:`22967` - Bluetooth: controller: ASSERTION FAIL on invalid packet sequence
37 * :github:`24183` - [v2.2] Bluetooth: controller: split: Regression slave latency during connection…
[all …]
Drelease-notes-3.7.rst10 This release is the last non-maintenance 3.x release and, as such, will be the next
18 * A long-awaited :ref:`HTTP Server <http_server_interface>` library, and associated service API,
21 * :ref:`POSIX support <posix_support>` has been extended, with most Options of the IEEE 1003-2017
25 * Bluetooth Host has been extended with support for the Nordic UART Service (NUS), Hands-free Audio
29 :ref:`read-then-decode approach <sensor-read-and-decode>` that enables more types of sensors and
35 * Trusted Firmware-M (TF-M) 2.1.0 and Mbed TLS 3.6.0 have been integrated into Zephyr.
39 1588) allows to synchronize time across devices with sub-microsecond accuracy.
52 * 1-Wire
71 :ref:`pinctrl-guide` for more details.
79 The following sections provide detailed lists of changes by component.
[all …]
Drelease-notes-3.6.rst12 * 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.
20 * Bluetooth Mesh protocol 1.1 now supported by default.
23 * Over 30 new supported boards, spanning all Zephyr-supported architectures.
28 The following sections provide detailed lists of changes by component.
32 The following CVEs are addressed by this release:
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
[all …]
Drelease-notes-2.6.rst13 * 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
24 The following sections provide detailed lists of changes by component.
29 The following CVEs are addressed by this release:
34 * CVE-2021-3581: Under embargo until 2021-09-04
39 You can check all currently known issues by listing them using the GitHub
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.
[all …]
Drelease-notes-2.4.rst17 * Enabled the new TCP stack, TCP2, by default. This stack was introduced in
24 Zephyr types can be enabled by Kconfig DEPRECATED_ZEPHYR_INT_TYPES option.
26 The following sections provide detailed lists of changes by component.
31 The following CVEs are addressed by this release:
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
[all …]
Drelease-notes-3.2.rst13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`).
15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`.
21 The following sections provide detailed lists of changes by component.
26 The following CVEs are addressed by this release:
31 * CVE-2022-2993: Under embargo until 2022-11-03
33 * CVE-2022-2741: Under embargo until 2022-10-14
48 * The :kconfig:option:`CONFIG_LEGACY_INCLUDE_PATH` option has been disabled by
56 This definition can be used by third-party code to compile code conditional
57 to Zephyr. The definition is already injected by the Zephyr build system.
58 Therefore, any third-party code integrated using the Zephyr build system will
[all …]
Drelease-notes-2.3.rst18 with future support for features like 64-bit and absolute timeouts in mind
21 * Zephyr now integrates with the TF-M (Trusted Firmware M) PSA-compliant
24 * The CMSIS-DSP library is now included and integrated
26 The following sections provide detailed lists of changes by component.
31 The following CVEs are addressed by this release:
33 * CVE-2020-10022: UpdateHub Module Copies a Variable-Sized Hash String
34 into a fixed-size array.
35 * CVE-2020-10059: UpdateHub Module Explicitly Disables TLS
37 * CVE-2020-10061: Improper handling of the full-buffer case in the
39 * CVE-2020-10062: Packet length decoding error in MQTT
[all …]
Drelease-notes-3.5.rst29 The following sections provide detailed lists of changes by component.
33 The following CVEs are addressed by this release:
38 * CVE-2023-3725 `Zephyr project bug tracker GHSA-2g3m-p6c7-8rr3
39 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-2g3m-p6c7-8rr3>`_
41 * CVE-2023-4257 `Zephyr project bug tracker GHSA-853q-q69w-gf5j
42 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-853q-q69w-gf5j>`_
44 * CVE-2023-4258 `Zephyr project bug tracker GHSA-m34c-cp63-rwh7
45 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-m34c-cp63-rwh7>`_
47 * CVE-2023-4259 `Zephyr project bug tracker GHSA-gghm-c696-f4j4
48 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gghm-c696-f4j4>`_
[all …]
Drelease-notes-1.13.rst16 * Support for IEEE 802.1AS-2011 generalized Precision Time Protocol (gPTP)
23 * Basic support for Arm TrustZone in Armv8-M
25 The following sections provide detailed lists of changes by component.
30 * Remove kernel event manager, replaced by generic tracing interface
40 * arch: arc: refactor the arc stack check support
42 * arch: arm: implement ARMv8-M MPU driver
44 * arch: arm: macro API for defining non-secure entry functions
48 * arch: ARM: Change the march used by cortex-m0 and cortex-m0plus
50 * arch: arm: basic Arm TrustZone-M functionality for Cortex-M23 and Cortex-M33
51 * arch: arm: built-in stack protection using Armv8-M SPLIM registers
[all …]
Drelease-notes-3.3.rst14 * Introduced :ref:`USB-C <usbc_api>` device stack with PD (power delivery)
17 CMSIS-DSP as the default backend.
20 The following sections provide detailed lists of changes by component.
25 The following CVEs are addressed by this release:
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
[all …]
/Zephyr-latest/drivers/adc/
Dadc_mcux_lpadc.c2 * Copyright 2023-2024 NXP
6 * Copyright (c) 2017-2018, NXP
9 * SPDX-License-Identifier: Apache-2.0
31 * the channel index given by channel_num % 8
65 const struct mcux_lpadc_config *config = dev->config; in mcux_lpadc_acquisition_time_setup()
77 * supported by the LPADC. The conversion factor is set to 1 (means do not need in mcux_lpadc_acquisition_time_setup()
81 * items supported by LPADC into nanoseconds, and finally compare the acquisition in mcux_lpadc_acquisition_time_setup()
88 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, &adc_freq_hz)) { in mcux_lpadc_acquisition_time_setup()
90 return -EINVAL; in mcux_lpadc_acquisition_time_setup()
101 cmd->sampleTimeMode = kLPADC_SampleTimeADCK3; in mcux_lpadc_acquisition_time_setup()
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_dw1000_regs.h4 * SPDX-License-Identifier: Apache-2.0
7 * https://github.com/Decawave/mynewt-dw1000-core.git
14 * Copyright (C) 2017-2018, Decawave Limited, All Rights Reserved
24 * http://www.apache.org/licenses/LICENSE-2.0
26 * Unless required by applicable law or agreed to in writing,
75 /* Frame Filtering Behave as a Co-ordinator */
95 /* Disable frame check error handling */
117 * Receiver Auto-Re-enable.
118 * This bit is used to cause the receiver to re-enable automatically
126 /* System Time Counter (40-bit) */
[all …]
/Zephyr-latest/kernel/
Dsched.c4 * SPDX-License-Identifier: Apache-2.0
51 int cpu, m = thread->base.cpu_mask; in thread_runq()
54 * thread with all CPUs masked off (i.e. one that isn't in thread_runq()
71 return &arch_curr_cpu()->ready_q.runq; in curr_cpu_runq()
118 _current_cpu->swap_ok = true; in queue_thread()
148 return (thread->base.thread_state & _THREAD_ABORTING) != 0U; in is_aborting()
154 return (thread->base.thread_state & in is_halting()
163 thread->base.thread_state &= ~(_THREAD_ABORTING | _THREAD_SUSPENDING); in clear_halting()
183 * promised it wouldn't be preempted (by non-metairq threads)! in next_up()
185 struct k_thread *mirqp = _current_cpu->metairq_preempted; in next_up()
[all …]
/Zephyr-latest/
DCMakeLists.txt1 # SPDX-License-Identifier: Apache-2.0
5 # Note that this is *NOT* the top-level CMakeLists.txt. That's in the
26 # and https://cmake.org/pipermail/cmake/2019-May/thread.html#69496
36 # -fmacro-prefix-map=${ZEPHYR_BASE}=
57 # - device dependencies structs must be generated (CONFIG_DEVICE_DEPS=y)
58 # - ISR tables must be generated (CONFIG_GEN_ISR_TABLES=y)
59 # - Kernel objects hash tables (CONFIG_USERSPACE=y)
60 # - Application memory partitions (CONFIG_USERSPACE=y)
66 # - zephyr_pre0: linker sections may resize / addresses may relocate
67 # - zephyr_pre1: All linker section sizes are fixed, addresses cannot change
[all …]

12