Commit graph

5361 commits

Author SHA1 Message Date
Yong Cong Sin b9720e27c0 posix: signal: implement sigfillset
Implementation and ztest for sigfillset.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2023-07-18 15:35:42 -04:00
Yong Cong Sin 6910eb4a9b posix: signal: implement sigemptyset
Implementation and ztest for sigemptyset.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2023-07-18 15:35:42 -04:00
Daniel Leung 9f02eeadf8 serial: allow callback setting to be exclusive
Both the IRQ API and Asynchronous API support callback.
However, since they are both interrupt driven, having
callbacks on both API would interfere with each other
in almost all cases. So this adds a kconfig to signal
that the callbacks should be exclusive to each other.
In other words, if one is set, the other should not
be active. Drivers implementing both APIs have been
updated to remove the callbacks from the other API.
Though, this still leaves the option to disable
the kconfig and allows both APIs to have callbacks
if one desires.

Fixes #48606

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-07-18 11:13:02 +00:00
Grzegorz Chwierut 57c27cd736 twister: pytest: Added fixture for mcumgr with unittests
Added mcumgr fixture to pytest-twister-harness. Added unittests for
new fixture.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2023-07-17 16:23:59 -04:00
Kevin Townsend f68cee9405 kconfig: Set BOOTLOADER_SRAM_SIZE default to 0
The current default value for `BOOTLOADER_SRAM_SIZE` is set to an
arbitrary-seeming value of `16`, which feels like a random magic
number.

Given that adding an offset in SRAM for a bootloader should always be
a conscious choice for a specific platform, this PR sets the default
to `0`. An appropriate value can be set at the SoC or board level,
overriding this default.

Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org>
2023-07-17 10:13:33 +00:00
Mike Fikes c59b04299f doc: isotp introduce CF abbreviation
Introduce the CF abbreviation as is done for
other abbreviations (like FF) before first use.

Signed-off-by: Mike Fikes <mike@fikesfarm.com>
2023-07-16 07:32:24 -04:00
Benjamin Cabé ca2533aea1 doc: Drop Zephyr 2.2 from supported releases
As of June 30, 2023, Zephyr 3.2.0 is not supported anymore.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-14 09:30:48 -04:00
Chaitanya Tata 3e1681eaa1 doc: net: Add Wi-Fi management
Add Wi-Fi management docs and APIs.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2023-07-14 15:02:29 +02:00
Gerard Marull-Paretas 77aafa51a1 doc: align pseudo-Makefile with latest CMake changes
The SPHINXOPTS option was not aligned with latest changes in CMake, and
SPHINXOPTS_EXTRA was not present.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-07-13 14:27:56 +02:00
Benjamin Cabé 986d0c9e89 doc: doxygen: Enable Doxygen autobrief
Enable Doxygen AUTOBRIEF feature for both Javadoc and Qt style
documentation blocks. This treats the first sentence of a documentation
block as a brief description even when no @brief tag is present. This makes
the overview sections of the generated documentation much more useful.

See https://www.doxygen.nl/manual/config.html#cfg_javadoc_autobrief and
https://www.doxygen.nl/manual/config.html#cfg_qt_autobrief

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-13 09:20:51 +02:00
Gerard Marull-Paretas 7c418a065c doc: requirements: update Sphinx and rtd theme
rtd_theme 1.2.x is required when using Sphinx >= 6.0, otherwise certain
features like search are broken. Note that jQuery support needs to be
enabled manually now using `sphinxcontrib.jquery` extension. Also update
Sphinx to latest 6.x release, 6.2 as it contains some fixes.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-07-12 19:59:03 -04:00
Florian Grandel 390b119885 doc: release-notes: document cc13/26xx timer change
Documents the changes to the naming of the cc13/26xx timer compatible
and Kconfig options.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-07-12 19:57:25 -04:00
Florian Grandel 8d2b461e6c doc: release-notes: remove typo
Removes a misplaced heading from the driver API list.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-07-12 19:57:25 -04:00
Gerard Marull-Paretas 7f9215da0e doc: move requirements to doc/
Zephyr scripts do not require documentation dependencies, so let's
move them from scripts/ to doc/.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-07-12 09:13:49 -04:00
Gerard Marull-Paretas d3d93d4399 doc: enable Sphinx tracebacks
When something goes wrong in Sphinx or extensions, we'll get a detailed
traceback, so we can easily debug issues in CI.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-07-12 09:13:49 -04:00
Gerard Marull-Paretas 2c89bf5798 doc: add cmake SPHINXOPTS_EXTRA option
Add a new CMake option to append options to SPHINXOPTS. This allows us
to easily extend default SPHINXOPTS. This patch also restores the "-j
auto" option in CI (now that we use a custom runner).

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-07-12 09:13:49 -04:00
Gerard Marull-Paretas 85ec85384a doc: add -W --keep-going to the default SPHINXOPTS list
Run Sphinx in warnings as error mode, but keep going so that all issues
are reported to the user.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-07-12 09:13:49 -04:00
Michael Jones e4ca936551 doc: Remove sphinx warning bt_ots_init pattern
The bt_ots_init struct has been renamed to bt_ots_init_param in commit:

  cf0ff30b53

That was previously triggering a warning in Sphinx, due to the same
name being used for a struct and function, and this pattern
was designed to silence it. We don't need the pattern any more as the
warning is gone.

Signed-off-by: Michael Jones <m.pricejones@gmail.com>
2023-07-12 11:48:42 +02:00
Daniel DeGrasse 8a686cac53 docs: flash_debug: host_tools: Fix reference to jlink host tools
Fix reference to JLink host tools to be located in correct section, so
that output documentation fills in the correct header name when this
section is referenced.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-07-11 13:15:06 -04:00
Chaitanya Tata 521e129528 doc: net: Add an entry about Wi-Fi Network managers
Add the entry to convey support for Wi-Fi Network Managers in Zephyr.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2023-07-11 14:55:30 +02:00
Chaitanya Tata ea0084bfb9 doc: net: Add an entry for Wi-Fi Management
This was missing all along.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2023-07-11 14:55:30 +02:00
Jamie McCrae c81f8d7721 doc: mgmt: mcumgr: Fix double maps
Fixes an issue where double maps were shown for some items,
and one whereby there was excess text.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-07-10 15:27:25 +02:00
Jamie McCrae 7fa4570d10 doc: mgmt: mcumgr: Fix date typo
Fixes an issue where data was used instead of date

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-07-10 12:05:14 +02:00
Jamie McCrae d98656f081 doc: kernel: code-relocation: Remove erroneous note
The note about required position for the function is not valid.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-07-10 10:01:42 +00:00
Kirill Kobelev 4a8d61248a doc: introduction: Improve style and grammar across the chapter
The changes are cosmetic and they do not change the meaning of the docs.

Signed-off-by: Kirill Kobelev <kobelev17@cdsan.com>
2023-07-10 10:01:08 +00:00
Yong Cong Sin 4580708f54 posix: implement uname
Add implementation for posix uname.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2023-07-09 16:57:16 -04:00
Jakub Duchniewicz adc36315b0 doc: Fix typos in zbus documentation
Fixes a few typos.

Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
2023-07-09 19:58:59 +00:00
Harshil Bhatt 322cd468db docs: update posix docs with pthread_barrierattr
add pthread_barrierattr to supported api list

Signed-off-by: Harshil Bhatt <harshilbhatt2001@gmail.com>
2023-07-09 10:40:57 -04:00
Aaron Massey e1401fcf5e emul: Add SBS Gauge emulator backend_api
In order to support easier setup of test scenarios with fuel gauge
emulators, we should expose an API that can change internal emulator state.

Add a minimal fuel gauge emulator backend API for setting the charging
current and voltage with a sample implementation in the emul_sbs_gauge with
an associated driver test.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2023-07-07 09:22:20 +02:00
Aleksandr Khromykh 9b4d080419 Bluetooth: Mesh: add shell statistic commands
Commit adds commands to get and to clear
the frame statistic.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2023-07-07 09:20:33 +02:00
Aleksandr Khromykh 7199425792 Bluetooth: Mesh: add statistic module
PR adds the statistic module to estimate frame handling.
The module helps to understand the ratio of
the received\relayed\dropped\transmited frames.
That shows the efficiency of the current configuration\implementation.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2023-07-07 09:20:33 +02:00
Piotr Golyzniak 65d0216f1d doc: bsim: fix typo in build link
Fix typo in link to BabbleSim build page.

Signed-off-by: Piotr Golyzniak <piotr.golyzniak@nordicsemi.no>
2023-07-06 17:07:20 +02:00
Christopher Friedt 1f8d2e492e doc: services: portability: posix: support for POSIX_SPIN_LOCKS
Ensure `POSIX_SPIN_LOCKS` are documented as part of the
mandatory option requirements according to IEEE Std 1003.1-2017.

Additionally, list the functions implemented according to the
standard.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-07-05 21:06:55 -04:00
Michael Jones 34e50037f0 doc: Log unused log filter patterns
This allows us to identify any patterns that we can remove or that
we didn't realise are no longer in use. This might happen if issues
within doxygen or docleaf are resolved.

This allows us to remove the pattern:

  .*Duplicate C declaration.*\n.*'\.\. c:.*:: uint16_t id'.*

which does not match anything in the current set up.

We also split the filter patterns in known-warnings out into different
sections depending on their cause.

Also extend the pattern parser to ignore empty lines so that we can
have some formatting in the known-warnings file.

Signed-off-by: Michael Jones <m.pricejones@gmail.com>
2023-07-03 10:05:52 +00:00
Michael Jones 3127d7b54c doc: Add more known-warnings
We should probably clear out the old warnings and see what still
applies for docleaf now that we have that instead of breathe.

However for this moment, these are new duplication declarations that
we're seeing errors for and so we'd like to silence them.

Signed-off-by: Michael Jones <m.pricejones@gmail.com>
2023-07-03 10:05:52 +00:00
Michael Jones 56d7afeac9 doc: Make sure message is a string before regexing it
There are times when the log message is an exception object and that
causes the regex to fail with a TypeError. Here we work around that
by converting the input to a string.

Signed-off-by: Michael Jones <m.pricejones@gmail.com>
2023-07-03 10:05:52 +00:00
Michael Jones 88c1519414 doc: Remove :members: on doxygengroup directives
As that is not supported by docleaf. We get everything by default.

Signed-off-by: Michael Jones <m.pricejones@gmail.com>
2023-07-03 10:05:52 +00:00
Michael Jones a3b7102273 doc: Adjust docleaf configuration as needed
We make sure that we have the 'root' and 'xml' defined for the project
which is necessary at the moment for docleaf though the 'root' is only
really used for the 'linkcode' integration.

Signed-off-by: Michael Jones <m.pricejones@gmail.com>
2023-07-03 10:05:52 +00:00
Michael Jones 10cb87dc2b doc: Replace instances of 'Breathe' with 'Docleaf'
Where valid.

Signed-off-by: Michael Jones <m.pricejones@gmail.com>
2023-07-03 10:05:52 +00:00
Michael Jones 30c3ce4a92 doc: Update requirements-doc.txt to use docleaf
Instead of breathe.

I'm not sure of the best version comparison to use. There is no
intention to break the API for docleaf but it is also still young
in some ways and there might be adjustments to the configuration values
that would need to be reflected in the version number as it is still
pre-1.0 that would only be a minor version change.

Signed-off-by: Michael Jones <m.pricejones@gmail.com>
2023-07-03 10:05:52 +00:00
Michael Jones 20986ec45d doc: Switch to using docleaf for doxygen entities
This switches the Sphinx conf.py file over to using the
'docleaf.doxygen' module and the associated docleaf configuration
entries, replacing the breathe module and config.

Signed-off-by: Michael Jones <m.pricejones@gmail.com>
2023-07-03 10:05:52 +00:00
Emil Gydesen 49a70aa1bb Bluetooth: TMAP: Add TMAP shell module
Add simple TMAP shell module that supports the TMAP
discovery.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-06-30 16:10:51 +02:00
Florian Grandel 5fa5534afc doc: kernel: clocks: define "current time"
Scheduling relative timeouts from within timer callbacks (=sys clock ISR
context) differs from scheduling relative timeouts from an application
context.

This change documents and explains the rationale of this distinction.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-06-30 16:07:26 +02:00
Pavel Vasilyev 737afd31fe doc: bluetooth: mesh: Add dfu cli cancel command to doc
Add description of the `mesh model dfu cli cancel` shell command.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2023-06-29 21:07:16 +02:00
Ajay Parida f1ebbb6c1f doc: release-notes: add passive scan support release notes
Added Wi-Fi passive scan support related info.

Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
2023-06-29 21:05:41 +02:00
Pavel Vasilyev 5572a27468 docs: bluetooth: mesh: Add note about storing runtime configuration
All public API declared in cfg.h won't schedule storing of the change
persistently if BT_MESH_VALID flag is not set. The flag is set after the
node is provisioned.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2023-06-29 21:04:55 +02:00
Dawid Niedzwiecki c8c149dce8 mgmt: ec_host_cmd: add logging system
Add a native way to log Host Command communication.

Use Zephyr logging system to do it. Use debug and normal levels.

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2023-06-26 16:13:42 +02:00
Seppo Takalo 55451c6d6e doc: Document various LwM2M security modes
Add documentation regarding various LwM2M security modes.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2023-06-26 12:35:29 +00:00
Benjamin Cabé e7414495fa doc: release: add Zephyr 3.4 as supported release
Add Zephyr 3.4 as a supported release until end of Feb 2024.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-25 17:18:18 +02:00
Benjamin Cabé 89f15cb2f3 doc: release: update dates to ISO 8601
Write dates as ISO 8601 as previous notation could be confusing.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-25 17:18:18 +02:00
Christopher Friedt b416a90672 doc: services: posix: pthread_mutexattr_destroy init supported
The functions pthread_mutexattr_destroy()
and pthread_mutexattr_init() are implemented (they just do nothing).

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-06-25 02:47:47 -04:00
Christopher Friedt 64a477342d doc: services: posix: pthread_condattr_destroy and init supported
The functions pthread_condattr_destroy()
and pthread_condattr_init() are implemented (they just do nothing).

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-06-25 02:47:47 -04:00
Christopher Friedt 675a660727 doc: services: posix: _POSIX_THREAD_PRIO_INHERIT unsupported
_POSIX_THREAD_PRIO_INHERIT was mistakenly marked supported in
commit a07774eada presumably because we have prototypes for the
functions below.

pthread_mutexattr_getprotocol()
pthread_mutexattr_setprotocol()

However, the functions are not actually implemented in Zephyr.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-06-25 02:47:47 -04:00
Christopher Friedt 88dd32c38c doc: services: posix: fix setvbuf typo
Fix a typo in the spelling of `setvbuf()`.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-06-25 02:47:47 -04:00
Alberto Escolar Piedras eccefc4dcc doc: contribute external: Fix link and add if not Apache2
The link to the zephyr_licensing page was broken
=> fix it.

Also add a relatively evident if to the list:
There is no need to add an entry to the licensing
list if the integrated code is Apache 2.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-06-25 02:46:42 -04:00
Alberto Escolar Piedras a64499dae1 doc licensing: Remove get_maintainers.pl
There is no get_maintainers.pl in the tree, and
hasn't been for as long as the git history lasts.

Remove its mentiona as a GPL component.

get_maintainers.py is Apache 2.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-06-25 02:46:42 -04:00
Evgeniy Paltsev daa5057800 ARC: MWDT: update docs to reflect recent changes
Update docs to reflect recent changes:
 * ARCMWDT_TOOLCHAIN_PATH auto detecting
 * Usage GNU helper tools from Zephyr SDK

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2023-06-25 02:45:56 -04:00
Anas Nashif d6ce537be8 doc: kernel: update thread priorities diagram
cooperative priorities are negative, 0 is not a cooperative priority.
Looks like the docs are showing an outdated diagram for some reason, try
to update that with a refresh.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-23 14:27:22 -04:00
Anas Nashif 54fcffb2c7 doc: twister: adapt docs for --enable-slow-only
Minor modification to accomodate for --enable-slow-only.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-22 17:14:02 -04:00
Simon Hein e908f88920 docs: safety: Add safety documentation
Add the safety documentation to the Zephyr documentation tree.
Starts with the safety overview which describes the general goals
for the safety in zephyr and introduces a process overview how a safety
certification can be achieved in the zephyr project.

Signed-off-by: Simon Hein <Shein@baumer.com>
2023-06-22 06:01:39 -04:00
Huifeng Zhang b789a019e7 doc: release-notes: Add TF-A v3.5.0 notes
Add release notes for TF-A for the 3.5.0 release.

Signed-off-by: Huifeng Zhang <Huifeng.Zhang@arm.com>
2023-06-22 10:47:25 +02:00
Lucas Tamborrino 9ae80aabd9 doc: services: debug: coredump: add flash partition
Add flash partition guide to coredump documentation.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-06-21 16:06:06 -04:00
Peter Mitsis 4c7aeb252d doc: Correct msgq data item size discrepancy
Updates the data passing summary table to indicate that the size of
a message queue data item must be a multiple of its data alignment.
This brings the documentation in both the summary table and the
message queue documentation into alignment.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2023-06-21 13:57:15 -04:00
Jamie McCrae eff9f731b1 doc: release: 3.5: Add note on MGMT_EVT_OP_CMD_RECV
Adds a note that this MCUmgr notification hook can now be used
to reject commands and send an error back to the client.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-06-21 13:24:12 +02:00
Gerard Marull-Paretas 92707866d1 device: s/gen_handles/gen_device_deps
Rename the gen_handles script and all of its references/associated files
to gen_device_deps. The new new makes things more clear, because the
script just take care of generating, for each device, an array of device
dependencies. While device handles are used internally to store this
information, it is in reality an implementation detail.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-06-21 09:32:05 +02:00
Grzegorz Chwierut 732dd4843d twister: pytest: Simplify interface to pytest-twister-harness
Add DeviceAbstract class to default imports from pytest-twister-harness
package to simplify importing DUT package, when creating tests.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2023-06-20 14:46:55 -04:00
Aleksandr Khromykh cd4bfc8c43 doc: Bluetooth: Mesh: add link to adv id subclause
PR adds link to advertisement identity coexistence subclause.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2023-06-20 09:27:23 +02:00
Anas Nashif 9fd9c9dd4f doc: sensing: fix structure and remove top doxygen reference
Move sections out of the Overview section and put API documentation in
one section without bullets, which was causing duplication in headers
and text.

This also fixes the issue with PDF generation which is currently
blocking publication of HTML pages on docs.zephyrproject.org.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-19 22:09:47 -04:00
Andy Sinclair d7964cd212 drivers: mfd: npm1300: Initial version
Added an MFD driver for the nPM1300.
This driver has register access helper functions that can be used
by subsystems.  This will avoid each subsystem having to duplicate
the register access code.

Signed-off-by: Andy Sinclair <andy.sinclair@nordicsemi.no>
2023-06-19 11:02:58 +02:00
Aleksandr Khromykh a322e4d20d Bluetooth: Mesh: clarification about adv local identity
BT_ID_DEFAULT is hardcoded in mesh. Added clarification about
the necessity of another local identity allocation for BLE
if it coexists with mesh.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2023-06-19 11:01:30 +02:00
Saravanan Sekar c05de18781 doc: websocket: update websocket_disconnect api
Do not close the user supplied socket so that the caller
can re-use it if needed.

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
2023-06-19 09:18:45 +01:00
Florian Grandel 1ee4d3ed77 net: l2: ieee802154: document L1/L2 sep. of concerns
The method ieee802154_radio_handle_ack() does not belong to the
PHY/radio layer but to the L2 layer. It is a callback called from the
radio layer into the L2 layer and to be implemented by all L2 stacks.
This is the same pattern as is used for ieee802154_init(). The
'_radio_' infix in this function is therefore confusing and
conceptually wrong.

This change fixes the naming inconsistency and extensively documents
its rationale.

It is assumed that the change can be made without prior deprecation of the
existing method as in the rare cases where users have implemented custom
radio drivers these will break in obvious ways and can easily be fixed.

Nevertheless such a rename would not be justified on its own if it were
not for an important conceptual reason:

The renamed function represents a generic "inversion-of-control" pattern
which will become important in the TSCH context: It allows for clean
separation of concerns between the PHY/radio driver layer and the
MAC/L2 layer even in situations where the radio driver needs to be
involved for performance or deterministic timing reasons. This
"inversion-of-control" pattern can be applied to negotiate timing
sensitive reception and transmission windows, it let's the L2 layer
deterministically timestamp information elements just-in-time with
internal radio timer counter values, etc.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-06-17 16:20:21 -04:00
Piotr Wojnarowski f2b5ebf098 doc: release: 3.5: Add note on GIC version selection in DT
Add a note that explains that the GIC version is now specified
in the DT and not Kconfig.

Signed-off-by: Piotr Wojnarowski <pwojnarowski@antmicro.com>
2023-06-17 08:01:46 -04:00
Piotr Wojnarowski 678d3f6b03 doc: release: 3.5: Add working release notes file
Add a base working release notes file for the Zephyr 3.5 release.

Signed-off-by: Piotr Wojnarowski <pwojnarowski@antmicro.com>
2023-06-17 08:01:46 -04:00
Tomasz Bursztyka 1b51be4ba0 doc/pcie: Add basic entry for PCIe doxygen documentation
This has been missing so let's add it.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2023-06-17 07:58:41 -04:00
Daniel Leung dbeb4d8f48 doc: kernel/syscalls: about limiting syscalls in binaries
Since not all syscalls are generated to be included in
the final binaries due to changes in build steps and CMake
files, update the document to clarify what needs to be
done to include specific syscalls in final binaries.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-06-17 07:57:45 -04:00
Hebo Hu 703ad12188 doc: Add documents for Sensing Subsystem
Add documents for sensing subsystem.

Signed-off-by: Hebo Hu <hebo.hu@intel.com>
2023-06-17 07:43:25 -04:00
Anas Nashif 79d610a893 doc: release: remove old version from index
Remove old releases from documentation index.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-16 13:29:34 -04:00
Anas Nashif 7ce8b5598c doc: update LTS2 version in docs
LTS is now 2.7.5.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-16 12:12:40 -04:00
Anas Nashif aa8c6aa067 doc: remove releases before 2.7 from index
Remove all old releases from the index.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-16 12:12:40 -04:00
Anas Nashif ee72dfa5e2 doc: add 3.4.0 to the index of releases
Add the new release to the doc index.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-16 12:12:40 -04:00
Anas Nashif 8db0349bec doc: release: add one entry re ztest new API
One more entry about ztest API being deprecated.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-16 12:12:40 -04:00
Anas Nashif 7749607343 doc: release: remove empty sections
Remove all placeholders and empty sections.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-16 12:12:40 -04:00
Anas Nashif 6015293447 doc: release: Use past tense on some entries
Use past tense in some of the release notes.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-16 12:12:40 -04:00
Anas Nashif 288fd5d3f2 doc: release: adapt title of 3.4 release notes
Remove 'Working Draft' from title.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-16 12:12:40 -04:00
Evgeniy Paltsev beae29964f doc: ARC: release notes: typo fix
Typo fix.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2023-06-16 12:08:19 -04:00
Evgeniy Paltsev f8803090ca dos: ARC: mark DSP AGU/XY extensions as supported on ARC EM
DSP AGU/XY extensions ARC EM processors are supported now in
Zephyr.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2023-06-16 11:10:52 -04:00
Carles Cufi e86185522c Bluetooth: release notes: Fix formatting of indented bullet points
Without the extra spaces Sphinx does not render this correctly.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-06-16 10:38:18 -04:00
Evgeniy Paltsev 052c23b922 doc: ARC: add release notes for ARC
Add release notes for ARC for 3.4 release

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2023-06-16 10:38:05 -04:00
Andrzej Głąbek 7d89f784a4 doc: release: Add v3.4 notes for ADC and PWM and Nordic related stuff
Add release notes for ADC and PWM drivers, Nordic HAL and other things
related to Nordic.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-06-16 08:08:33 -04:00
Flavio Ceolin 68dc53b077 doc: release-notes: PM related release notes
Add PM release notes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-06-15 13:55:31 -04:00
Flavio Ceolin b7f35a8f29 doc: vulnerabilities: Add information about new vulnerabilities
Add a placeholder for CVE-2023-1901 and CVE-2023-1902.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-06-15 13:55:07 -04:00
Flavio Ceolin f683b0f35e doc: release-notes: Security related release-notes-3
Added information about CVEs fixed during 3.4 release.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-06-15 13:55:07 -04:00
Anas Nashif 721e4aa8b3 release: fix layout/typos in release notes
Fixed layout and a few typos.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-15 10:08:38 -04:00
Johann Fischer 644d02480e doc: release-notes-3.4: add release notes for USB and display
Add release notes for USB support and display controller drivers.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-06-15 10:07:59 -04:00
Johann Fischer fbb6cd1a39 doc: connectivity: move USB-C device stack to USB chapter
This looks a bit lost in its own USB-C chapter,
move it to USB under the Power Delivery heading.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-06-15 05:53:44 -04:00
Johann Fischer b335c19bcb doc: move USB documentation to connectivity
Mostly moved and reorganised content to the Connectivity chapter,
separated API references. Fill in some gaps in the USB device
documentation.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-06-15 05:53:44 -04:00
Benjamin Cabé 09a9a7edf4 doc: release-notes: fix typo with i.MX93 board
NXP i.MX93 is A55 not A53.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-15 05:52:22 -04:00
Benjamin Cabé 4bc46e4e3a doc: release-notes: sort ARM boards alphabetically
Sort ARM boards alphabetically.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-15 05:52:22 -04:00
Benjamin Cabé 8963b50716 doc: release-notes: add missing boards
Added a bunch of missing boards that were added since v3.3.0

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-15 05:52:22 -04:00
Jamie McCrae 83b074c418 doc: release: 3.4: Add build system relative path fixes
Adds a note that some relative path issues in the build system
have been fixed.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-06-15 05:10:42 -04:00
Kevin Townsend 79433b0ee3 release-notes: 3.4: Add Aarch32 and TF-M notes
Adds release notes for Aarch32 and TF-M for Zephyr 3.4.0.

Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org>
2023-06-14 13:52:55 -04:00
Daniel DeGrasse bc13ce12a1 doc: releases: updates for SDHC and Disk driver release notes
Add release notes for SDHC and Disk drivers, highlighting addition
of NVME support in the disk driver layer as well as CPOL/CPHA clock
modes within the SDHC SPI driver.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-06-14 13:52:21 -04:00
Robert Lubos 4dd3d8679e doc: release-notes: Fix typo in networking part
Fix typo in networking part of the release notes.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-06-14 13:52:00 -04:00
Jamie McCrae f6512920ca doc: release: 3.4: Add MCUmgr signed type change
Adds a note that slot and image have changed from signed to
unsigned integer types.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-06-14 13:47:08 -04:00
Jamie McCrae 3f8156d0a4 doc: mgmt: smp: Fix slot and image to be unsigned
Fixes the documentation to show image and slot number for get
state of image response being unsigned, not signed.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-06-14 13:47:08 -04:00
Anas Nashif 0773cc88c8 release: document major changes
added highlights to the 3.4 release notes.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-14 09:20:38 -04:00
Robert Lubos a44f6bbb36 doc: release-notes: Add 3.4.0 release notes for networking
Add Zephyr 3.4.0 release notes for the networking area.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-06-14 09:07:23 -04:00
Alberto Escolar Piedras d5815d6ad1 doc: 3.4 release notes: Fix doc build
Fix doc build error due to a bad indent

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-06-13 10:42:42 -04:00
Yonatan Schachter cd3e1438ec doc: Added RP2040 related changes to the v3.4.0 release notes
Added RP2040 related changes to the v3.4.0 release notes,
including new boards, new drivers and HAL changes.

Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
2023-06-13 09:36:56 -04:00
Dominik Ermel 503b3672aa doc: release: 3.4: Bulk of updates
Add release notes on:
 - change in west sign internal logic;
 - additional LittleFS sample configuration for nrf52840dk_nrf52840
   using SPI communication;

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2023-06-13 09:34:01 -04:00
Erwan Gouriou 523ba79d54 release-notes: v3.4: Document shield additions
Document shields added in V3.4 release

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2023-06-13 09:11:19 -04:00
Erwan Gouriou f6d7a6a701 release-notes: v3.4: Document STM32 changes
Document STM32 related changes on V3.4 release.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2023-06-13 09:11:19 -04:00
Carles Cufi e31cea0f71 release: relnotes: Add Bluetooth release notes for 3.4.0
As usual, populate the Bluetooth release notes.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-06-13 08:55:02 -04:00
Jamie McCrae 6981e2e3cf doc: services: device_mgmt: mcumgr: Update callback documentation
Updates and fixes callback documentation to show functionality and
definitions that were recently updated.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-06-13 07:11:44 -04:00
Henrik Brix Andersen b7717058ac doc: release-notes: add CAN release notes for v3.4.0
Add CAN related release notes for Zephyr v3.4.0.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-06-12 06:44:04 -04:00
Alberto Escolar Piedras bc090178ab doc: release: 3.4: Fix indent in ARCH's lists
So they render properly.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-06-12 06:43:11 -04:00
Alberto Escolar Piedras 15ad2be01a doc: release: 3.4: Add BabbleSim related points
Add relevant bsim related changes.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-06-12 06:43:11 -04:00
Alberto Escolar Piedras 6bf47f52fa doc: release: 3.4: Add more flash simulator changes
Add some extra relevant changes to the flash simulator

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-06-12 06:43:11 -04:00
Alberto Escolar Piedras dc90066390 doc: release: 3.4: Add POSIX arch and POSIX boards changes
Add points related to the POSIX arch and boards to the
3.4 release notes.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-06-12 06:43:11 -04:00
Daniel Leung 7839d36d0b doc: release-notes/3.4: bits on Xtensa
This adds a few bits on additions and changes on Xtensa.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-06-12 06:41:44 -04:00
Daniel Leung 50c70f553e doc: release-notes/3.4: small bit about PCIe
Added a small bit about PCIe where it can now filter
using class/revision register.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-06-12 06:41:44 -04:00
Daniel Leung 2f3a164fbe doc: release-notes/3.4: add bits for UART
This adds bits for various additions and fixes on UART
drivers.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-06-12 06:41:44 -04:00
Carles Cufi 22f73992b2 Bluetooth: Rework the HCI header set
In order to have clean, self-contained HCI headers that do not have any
dependencies towards the Host or any other part of the system (except
types), reorganize the headers in the following way:

- Split out the macros and structs from hci.h to a new hci_types.h
- Merge the existing hci_err.h into the new hci_types.h

Fixes #58214.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-06-12 06:20:24 -04:00
Christopher Friedt a17fc4ff2b doc: release: 3.4: add posix api deprecations
Add POSIX API deprecations to v3.4 release notes.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-06-11 21:38:44 -04:00
Christopher Friedt efe9111b21 doc: services: posix: update c-lang support section
Several C language items have gained support in Zephyr over
time.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-06-11 05:08:35 -04:00
Christopher Friedt 533c1985dc doc: services: posix: update posix supported items
Several items needed to be updated in POSIX documentation.

* add `_POSIX_BARRIERS` top Option Requirements
* update `_POSIX_THREAD_ATTR_STACK*` in Option Requirements
* add `pthread_barrier_*()` to `POSIX_THREADS_BASE`
* update `pthread_cond_destroy()` and `pthread_setcancelstate()`

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-06-10 10:08:25 -04:00
Thomas Stranger f8f8fa2e24 doc: release notes: add 1-wire release notes for 3.4.0
Add 1-Wire related release notes for Zephyr v3.4.0.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2023-06-09 14:16:50 -04:00
Gerson Fernando Budke f220e26703 doc: release: 3.4: Add notes about Gigadevices
Add 3.4.0 release notes for Gigadevices

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2023-06-09 13:18:14 -04:00
Gerson Fernando Budke fb74e5ecc5 doc: release: 3.4: Add notes about Atmel
Add 3.4.0 release notes for Atmel.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2023-06-09 13:18:14 -04:00
Christopher Friedt 1d71fb765f doc: release: 3.4: add posix api release notes
Add POSIX API release notes for v3.4.0.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-06-09 13:17:18 -04:00
Anas Nashif c1e40bb3d5 templates: change template file namaes for proper sorting
prefix with numbers to get sorting based on usage. Most common files
issue types should come first, with bugs being at the top.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-08 07:32:45 -04:00
Andrei Emeltchenko 124e0f57bf doc: api: Promote EDAC API as Unstable
Promote Error Detection And Correction (EDAC) API as Unstable.

Fixes: #58487

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-06-08 06:46:29 -04:00
Benjamin Cabé b05842eb6d doc: api: Update status for auxdisplay API
auxdisplay API was introduced in 3.4, not 3.3.
Also update to "experimental" status to better reflect that the API is
new.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-08 04:09:31 -04:00
Théo Battrel b90fc34759 Bluetooth: Documentation: Remove reference to BT_DEBUG_LOG
Remove reference to deprecated Kconfig symbol `CONFIG_BT_DEBUG_LOG` in
the documentation.

Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
2023-06-07 13:56:55 -04:00
Anas Nashif d17d28aa58 doc: add a section about coverity scans
Quick intro into static code analysis and scans.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-07 16:55:48 +02:00
Benjamin Cabé 84263962b0 doc: fixed stale link to sbs emulator
Fixed bad link reported by Sphinx linkchecker

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-07 04:40:47 -04:00
Benjamin Cabé b7e23b88ce doc: pinctrl: fix link to ELC2021 slide deck
updated link to point to a working location.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-07 04:40:47 -04:00
Benjamin Cabé c77811500c doc: mcumgr: update link to mcumgr root folder
MCUmgr does not live in subsys/mgmt/mcumgr/lib anymore.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-07 04:40:47 -04:00
Benjamin Cabé 46f7c044c0 doc: i2c: fixed non-working link to I2C spec
Fixed improperly formatted link to I2C spec.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-07 04:40:47 -04:00
Benjamin Cabé 21c1a61551 doc: peripherals: fix bad link to Display API
fixed incorrect link reference to Display API

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-07 04:40:47 -04:00
Benjamin Cabé 8cbe2d83b4 doc: snippets: fix bad link
Fixed incorrect reference to snippets/ folder

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-07 04:40:47 -04:00
Benjamin Cabé 4ef2493203 west: doc: update link to SPDX doc
fixed 404 link to SPDX documentation

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-07 04:40:47 -04:00
Benjamin Cabé a76396fb7a doc: update stale links to MCUboot documentation
mcuboot.com/documentation --> docs.mcuboot.com

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-07 04:40:47 -04:00
Benjamin Cabé 23f2a2066f doc: update stale srecord links
Updated 404 links to point to valid locations.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-07 04:40:47 -04:00
Benjamin Cabé 7ed56d559e doc: release-notes: fix bad links
Added missing include/ to fix dead links re: iterable sections API

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-07 04:40:47 -04:00
Martin Jäger 7b2034aaec doc: develop: api: overview: tag DAC API as Unstable
Promote DAC API from Experimental to Unstable.

The API is well adopted and used in more than 2 implementations.

Signed-off-by: Martin Jäger <martin@libre.solar>
2023-06-06 17:21:06 -04:00
Martin Jäger 059e56497e doc: develop: api: overview: tag Task Watchdog API as Unstable
Promote Task Watchdog API from Experimental to Unstable.

The API has proven to be suitable for its purpose.

Signed-off-by: Martin Jäger <martin@libre.solar>
2023-06-06 17:20:51 -04:00
Gerard Marull-Paretas 619b285aa8 doc: doxygen: move data structure APIs to utilities group
These are utility APIs for data structures, so put them under the
utilities group.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-06-05 20:21:09 -04:00
Gerard Marull-Paretas 97f219414a dox: doxygen: add third_party group
Add a new top-level group for APIs that interact with third-party
services or applications. Included in the group:

- MCUboot image control API
- Hawkbit
- UpdateHub

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-06-05 20:21:09 -04:00