Home
last modified time | relevance | path

Searched +full:0 +full:- +full:latest (Results 1 – 25 of 199) sorted by relevance

12345678

/Zephyr-latest/tests/unit/timeutil/
Dtest_sync.c4 * SPDX-License-Identifier: Apache-2.0
26 return (uint64_t)factor * (uint64_t)cfg->ref_Hz; in scale_ref()
32 return (uint64_t)factor * (uint64_t)cfg->local_Hz; in scale_local()
38 return (int64_t)factor * (int64_t)cfg->local_Hz; in scale_local_signed()
44 struct timeutil_sync_instant si = { 0 }; in test_state_update()
45 struct timeutil_sync_state ss = { 0 }; in test_state_update()
48 zassert_equal(rv, -EINVAL, in test_state_update()
50 zassert_equal(ss.base.ref, 0, in test_state_update()
52 zassert_equal(ss.skew, 0, in test_state_update()
57 zassert_equal(rv, 0, in test_state_update()
[all …]
/Zephyr-latest/samples/boards/nordic/clock_skew/
DREADME.rst1 .. zephyr:code-sample:: nrf_clock_skew
4 Measure the skew between the high-frequency and low-frequency clocks.
17 accurate high-frequency clock generally enable this source
29 .. zephyr-app-commands::
30 :zephyr-app: samples/boards/nordic/clock_skew
41 .. code-block:: console
43 *** Booting Zephyr OS build v2.5.0-rc3-94-g06a4b650467b ***
44 Power-up clocks: LFCLK[ON]: Running LFXO ; HFCLK[OFF]: Running HFINT
45 Start TIMER_0: 0
46 Timer-running clocks: LFCLK[ON]: Running LFXO ; HFCLK[OFF]: Running HFINT
[all …]
/Zephyr-latest/samples/boards/nordic/clock_skew/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
59 if (d > 0) { in us_to_text_r()
60 bp += snprintf(bp, bpe - bp, "%u d ", d); in us_to_text_r()
62 bp += snprintf(bp, bpe - bp, "%02u:%02u:%02u.%06u", in us_to_text_r()
120 const struct timeutil_sync_instant *latest = &sync_state.latest; in sync_work_handler() local
122 if (rc == 0) { in sync_work_handler()
126 counter_ref += ctr - (uint32_t)counter_ref; in sync_work_handler()
131 printf("\nTy Latest Base Span Err\n"); in sync_work_handler()
133 if (rc > 0) { in sync_work_handler()
134 printf(" %s", us_to_text(ref_to_us(base->ref))); in sync_work_handler()
[all …]
/Zephyr-latest/.github/
DSECURITY.md8 - The most recent release, and the release prior to that.
9 - Active LTS releases.
11 At this time, with the latest release of v4.0, the supported
14 - v4.1: Current release
15 - v4.0: Prior release
16 - v3.7: Current LTS
21 Reporting](https://docs.zephyrproject.org/latest/security/reporting.html)
/Zephyr-latest/lib/utils/
Dtimeutil.c4 * SPDX-License-Identifier: Apache-2.0
20 * 1970-01-01.
27 * 1970-01-01
35 y -= m <= 2; in time_days_from_civil()
37 int64_t era = ((y >= 0) ? y : (y - 399)) / 400; in time_days_from_civil()
38 unsigned int yoe = y - era * 400; in time_days_from_civil()
39 unsigned int doy = (153U * (m + ((m > 2) ? -3 : 9)) + 2U) / 5U + d; in time_days_from_civil()
40 unsigned int doe = yoe * 365U + yoe / 4U - yoe / 100U + doy; in time_days_from_civil()
42 return era * 146097 + (time_t)doe - 719468; in time_days_from_civil()
47 int64_t y = TIME_UTILS_BASE_YEAR + (int64_t)tm->tm_year; in timeutil_timegm64()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/util/
Ddbuf.h4 * SPDX-License-Identifier: Apache-2.0
21 uint8_t data[0];
50 return &hdr->data[hdr->last * hdr->elem_size]; in dbuf_peek()
61 hdr->last = idx; in dbuf_enqueue()
65 * @brief Get latest element in buffer.
67 * Latest enqueued element is pointed by last member of dbuf_hdr.
71 * Pointer to latest element is returned.
76 * @return Pointer to latest enqueued buffer element.
84 * Returned value always points to latest one, that was swapped after most recent call to
94 return &hdr->data[hdr->first * hdr->elem_size]; in dbuf_curr_get()
[all …]
Ddbuf.c4 * SPDX-License-Identifier: Apache-2.0
21 first = hdr->first; in dbuf_alloc()
22 last = hdr->last; in dbuf_alloc()
27 last = 0U; in dbuf_alloc()
34 * this function updates/modifies the latest PDU. in dbuf_alloc()
37 * 1. LLL runs before `pdu->last` is reverted, then `pdu->first` in dbuf_alloc()
38 * has changed, hence restore `pdu->last` and return index of in dbuf_alloc()
40 * 2. LLL runs after `pdu->last` is reverted, then `pdu->first` in dbuf_alloc()
44 hdr->last = first; in dbuf_alloc()
46 first_latest = hdr->first; in dbuf_alloc()
[all …]
/Zephyr-latest/samples/bluetooth/iso_connected_benchmark/
DREADME.rst1 .. zephyr:code-sample:: bluetooth_isochronous_connected_benchmark
3 :relevant-api: bt_iso bluetooth
35 See :zephyr:code-sample-category:`bluetooth` samples for details.
54 by uni- or bidirectional).
59 current connection (since the CIG was connected) and latest 1000 received
62 *** Booting Zephyr OS build zephyr-v2.5.0-4098-gdcaaee6db2f5 ***
65 Choose device role - type c (central role) or p (peripheral role), or q to quit: p
73 [00:00:16.802,856] <inf> iso_connected: Returning instance 0
74 [00:00:17.016,845] <inf> iso_connected: ISO Channel 0x20002934 connected
76 …00:17.774,902] <inf> iso_connected: Overall : Received 100/100 (100.00%) - Total packets lost 0
[all …]
/Zephyr-latest/boards/renode/cortex_r8_virtual/doc/
Dindex.rst6 The Cortex-R8 Virtual board is a virtual platform that can be emulated with Renode.
9 Refer to the `Renode documentation <https://renode.readthedocs.io/en/latest/>`_
21 .. zephyr-app-commands::
32 For example, with the :zephyr:code-sample:`synchronization` sample:
34 .. zephyr-app-commands::
35 :zephyr-app: samples/synchronization
36 :host-os: unix
43 .. code-block:: console
45 *** Booting Zephyr OS build v3.6.0-5689-g2a5c606abfa7 ***
46 thread_a: Hello World from cpu 0 on cortex_r8_virtual!
[all …]
/Zephyr-latest/include/zephyr/sys/
Dtimeutil.h4 * SPDX-License-Identifier: Apache-2.0
12 * inverse transformations are non-standard or require access to time
44 * @brief Convert broken-down time to a POSIX epoch offset in seconds.
50 * @see http://man7.org/linux/man-pages/man3/timegm.3.html
55 * @brief Convert broken-down time to a POSIX epoch offset in seconds.
60 * the time cannot be represented then @c (time_t)-1 is returned and
63 * @see http://man7.org/linux/man-pages/man3/timegm.3.html
140 * State objects should be zero-initialized before use.
153 struct timeutil_sync_instant latest; member
159 * parts-per-million faster or slower than specified.
[all …]
/Zephyr-latest/doc/_templates/
Dsearchbox.html3 (ex. built-in search, Google Custom Search, ...)
5 {%- if ('singlehtml' not in builder) %}
6 <div class="search-container" role="search">
7 <form id="rtd-search-form" class="wy-form" action="{{ pathto('search') }}" method="get">
9 aria-label="{{ _('Search docs') }}" />
10 {%- if google_searchengine_id is defined %}
11 <span id="search-se-settings-icon" class="fa fa-gear" role="button" tabindex="0"
12 title="Search settings" aria-label="Search settings"
13 aria-haspopup="true" aria-controls="search-se-menu" aria-expanded="false"
16 <div id="search-se-menu" role="menu" aria-labelledby="search-se-settings-icon">
[all …]
/Zephyr-latest/boards/openisa/rv32m1_vega/
Drv32m1_vega_openisa_rv32m1_ri5cy.dts3 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
19 zephyr,shell-uart = &lpuart0;
20 zephyr,uart-pipe = &lpuart0;
21 zephyr,code-partition = &slot0_partition;
22 zephyr,bt-hci = &bt_hci_controller;
33 * http://docs.zephyrproject.org/latest/guides/dts/index.html
36 compatible = "fixed-partitions";
37 #address-cells = <1>;
38 #size-cells = <1>;
[all …]
/Zephyr-latest/boards/ezurio/bl5340_dvk/
Dbl5340_dvk_nrf5340_cpunet_common.dtsi2 * Copyright (c) 2021-2023 Laird Connectivity
4 * SPDX-License-Identifier: Apache-2.0
36 * http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions
39 compatible = "fixed-partitions";
40 #address-cells = <1>;
41 #size-cells = <1>;
44 boot_partition: partition@0 {
46 reg = <0x00000000 0xc000>;
50 label = "image-0";
51 reg = <0x0000C000 0x16000>;
[all …]
/Zephyr-latest/samples/bluetooth/iso_broadcast_benchmark/
DREADME.rst1 .. zephyr:code-sample:: bluetooth_isochronous_broadcaster_benchmark
3 :relevant-api: bt_iso bluetooth
36 See :zephyr:code-sample-category:`bluetooth` samples for details.
59 (since the BIG was synced) and latest 1000 received packets::
61 *** Booting Zephyr OS build zephyr-v2.5.0-3768-g42f09317bfbe ***
63 Choose device role - type r (receiver role) or b (broadcaster role), or q to quit: r
67 … <inf> iso_broadcast_receiver: Found broadcaster with address 28:3B:AD:F5:EE:0C (random) (RSSI -33)
72 [00:00:06.453,460] <err> bt_scan: Unknown handle 0x0000 for periodic advertising report
76 …cast_receiver: BIGinfo received: num_bis 2, nse 1, interval 7 ms, bn 1, pto 0, irc 1, max_pdu 251,…
79 [00:00:11.254,211] <inf> iso_broadcast_receiver: ISO Channel 0x2000124c connected
[all …]
/Zephyr-latest/arch/arm64/core/
Dsmccc-call.S4 * SPDX-License-Identifier: Apache-2.0
11 * See https://developer.arm.com/docs/den0028/latest
20 \instr #0
/Zephyr-latest/boards/gaisler/generic_leon3/doc/
Dindex.rst14 designs such as the Digilent Arty A7, Terasic DE0-Nano and Microsemi
15 M2GL-EVAL-KIT.
32 the Terasic DE2-115 Cyclone IV FPGA board.
34 .. code-block:: console
36 $ grmon -altjtag -u
39 Copyright (C) 2020 Cobham Gaisler - All rights reserved.
40 For latest updates, go to http://www.gaisler.com/
41 Comments or bug-reports to support@gaisler.com
57 Multi-processor Interrupt Ctrl. Cobham Gaisler
73 Entry point 0x40000000
[all …]
/Zephyr-latest/samples/subsys/ipc/openamp_rsc_table/
DREADME.rst1 .. zephyr:code-sample:: openamp-rsc-table
3 :relevant-api: ipm_interface
13 * `Linux rpmsg client sample <https://elixir.bootlin.com/linux/latest/source/samples/rpmsg/rpmsg_cl…
14 * `Linux rpmsg tty driver <https://elixir.bootlin.com/linux/latest/source/drivers/tty/rpmsg_tty.c>`_
18 the co-processor.
26 .. zephyr-app-commands::
27 :zephyr-app: samples/subsys/ipc/openamp_rsc_table
49 .. code-block:: console
52 …[ 44.625407] rpmsg_client_sample virtio0.rpmsg-client-sample.-1.1024: new channel: 0x401 -> 0x40…
53 …[ 44.631401] rpmsg_client_sample virtio0.rpmsg-client-sample.-1.1024: incoming msg 1 (src: 0x400)
[all …]
/Zephyr-latest/subsys/bluetooth/controller/coex/
Dreadme.rst2 Bluetooth co-existence drivers
5 Co-existence Ticker
8 …cker.c` is designed to utilize co-existence with another transmitter. Chips such as nordic nRF9160…
10 … the 1-wire and 3-wire co-existence interface for the `SoftDevice Bluetooth controller <https://de…
12 Similarly, as in the nordic implementation of the 1-wire interface, the coexistence ticker utilizes…
14 .. code-block:: DTS
17 compatible = "gpio-radio-coex";
18 grant-gpios = <&gpio0 0 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
19 grant-delay-us = <150>;
22 Whenever the grant pin transitions into non-active (such as 1 for the nRF9160). state the implement…
/Zephyr-latest/doc/
Dconf.py2 # Reference: https://www.sphinx-doc.org/en/master/usage/configuration.html
15 sys.path.insert(0, str(ZEPHYR_BASE / "doc" / "_extensions"))
19 sys.path.insert(0, str(ZEPHYR_BASE / "doc" / "_scripts"))
23 sys.path.insert(0, str(ZEPHYR_BASE / "scripts" / "west_commands"))
25 # Add the directory which contains the pytest-twister-pytest
26 sys.path.insert(0, str(ZEPHYR_BASE / "scripts" / "pylib" / "pytest-twister-harness" / "src"))
35 # -- Project --------------------------------------------------------------
38 copyright = "2015-2025 Zephyr Project members and individual contributors"
62 version += "-" + extra
70 # -- General configuration ------------------------------------------------
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/autopts/
Dautopts-linux.rst1 .. _autopts-linux:
14 - Testing Zephyr Host Stack on QEMU
16 - Testing Zephyr Host Stack on :ref:`native_sim <native_sim>`
18 - Testing Zephyr combined (controller + host) build on Real hardware (such as nRF52)
32 Download latest nrftools (version >= 10.12.1) from site
33 https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download.
42 - JLink_Linux_V688a_x86_64.deb
44 - nRF-Command-Line-Tools_10_12_1_Linux-amd64.deb
65 Start -> Settings -> Update & Security -> Windows Update
75 ----------
[all …]
/Zephyr-latest/doc/contribute/style/
Dcode.rst23 ``switch`` body, even for single-line code blocks.
25 * Use C89-style single line comments, ``/* */``. The C99-style single line
28 * Avoid using binary literals (constants starting with ``0b``).
29 * Avoid using non-ASCII symbols in code, unless it significantly improves
35 https://kernel.org/doc/html/latest/process/coding-style.html
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/src/
Dgesture_predictor.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
24 int prediction_history_index = 0;
25 int prediction_suppression_count = 0;
29 * 0: wing("W"), 1: ring("O"), 2: slope("angle"), 3: unknown
33 /* Record the latest predictions in our rolling history buffer. */ in PredictGesture()
34 for (int i = 0; i < kGestureCount; ++i) { in PredictGesture()
40 prediction_history_index = 0; in PredictGesture()
46 int max_predict_index = -1; in PredictGesture()
48 for (int i = 0; i < kGestureCount; i++) { in PredictGesture()
50 for (int j = 0; j < kPredictionHistoryLength; ++j) { in PredictGesture()
[all …]
/Zephyr-latest/boards/arm/fvp_baser_aemv8r/doc/
Daarch32.rst3 Arm FVP BaseR AEMv8-R AArch32
9 This board configuration uses Armv8-R AEM FVP [1]_ to emulate a generic
10 Armv8-R [2]_ 32-bit hardware platform.
17 The Armv8-R AEM FVP is a free of charge Armv8-R Fixed Virtual Platform. It
18 supports the latest Armv8-R feature set. Please refer to FVP documentation
21 To Run the Fixed Virtual Platform simulation tool you must download "Armv8-R AEM
33 +-----------------------+------------+----------------------+
36 | GICv3 | on-chip | interrupt controller |
37 +-----------------------+------------+----------------------+
38 | PL011 UART | on-chip | serial port |
[all …]
/Zephyr-latest/include/zephyr/fs/
Dnvs.h5 * SPDX-License-Identifier: Apache-2.0
20 * @brief Non-volatile Storage (NVS)
21 * @defgroup nvs Non-volatile Storage (NVS)
23 * @version 1.0.0
30 * @brief Non-volatile Storage Data Structures
31 * @defgroup nvs_data_structures Non-volatile Storage Data Structures
37 * @brief Non-volatile Storage File system structure
44 * - high 2 bytes correspond to the sector
45 * - low 2 bytes are the offset in the sector
50 /** File system is split into sectors, each sector must be multiple of erase-block-size */
[all …]
/Zephyr-latest/boards/gaisler/gr716a_mini/doc/
Dindex.rst6 The GR716-MINI development board provides:
37 The application is linked to the on-chip tightly coupled memory by
45 .. code-block:: console
47 $ grmon -u -cginit 0x00010000 -uart /dev/ttyUSB0
50 Copyright (C) 2020 Cobham Gaisler - All rights reserved.
51 For latest updates, go to http://www.gaisler.com/
52 Comments or bug-reports to support@gaisler.com
54 Device ID: 0x716
60 AHB-to-AHB Bridge Cobham Gaisler
61 MIL-STD-1553B Interface Cobham Gaisler
[all …]

12345678