Commit graph

15409 commits

Author SHA1 Message Date
Benjamin Cabé
0d81be3d70 doc: kernel: Fix Doxygen comments for stats.h
Cleanup doxygen documentation by adding missing comments + enabling
docs for fields guarded by CONFIG_SCHED_THREAD_USAGE_ANALYSIS.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-19 21:08:59 -04:00
Benjamin Cabé
897cd59cfe lib: base64: doc: Promote to Utilities doc section
Have base64 helpers show up in the Modules>Utilities section of the doc.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-19 21:07:12 -04:00
Benjamin Cabé
d3db8899c8 lib: bitarray: doc: Add to Data Structures in docs
Promote Bit Array API to Modules > Utilities > Data Structures.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-19 21:06:43 -04:00
Benjamin Cabé
bc0eb32a5e pcie: doc: Fix doxygen doc for PCIe capabilities
Use proper doxygen comments for the PCIe Capabilities.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-19 11:06:18 +00:00
Benjamin Cabé
f6f3eed7a0 bluetooth: ead: doc: Add missing Doxygen header
File was missing Doxygen @brief and @infroup causing it to not be
mounted in the documentation.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-19 11:05:39 +00:00
Benjamin Cabé
53b93829a3 bluetooth: ead: Add include guards
Added a missing include guard

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-19 11:05:39 +00:00
Guillaume Gautier
208d962eb8 drivers: clock_control: stm32 set adc prescaler in rcc
For STM32F1 and F3, set the ADC prescaler in RCC if defined in dts.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-07-19 10:13:26 +00:00
Martin Kiepfer
09da4cf89d driver: regulator: Add support for AXP192 power management IC
AXP192 is a small and simple power management IC featuring different
LDOs, DCDCs, AINs and also GPIOs. It also offers functionaltiy for
battery management.
This change includes the basic regulator driver functionaltiy for
LDO2-3 and DCDC1-3 as well as the mfd driver layer. Further drivers
for GPIO and ADC will follow.
Drivers have been developed and tested on M5StackCore2, an ESP32-based
board. Support for M5StackCore2 is still in progress.

Signed-off-by: Martin Kiepfer <mrmarteng@teleschirm.org>
2023-07-19 09:52:15 +00:00
Andy Sinclair
f6aa1c4321 drivers: regulator: Added ship mode to API
Added ship mode entry function to common regulator driver

Signed-off-by: Andy Sinclair <andy.sinclair@nordicsemi.no>
2023-07-19 09:30:22 +00:00
Benjamin Cabé
61c38379ba app_memdomain: doc: Properly mount doc page
Properly mount App memory domain APIs into Doxygen doc
hierarchy.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-18 21:37:41 +00:00
Benjamin Cabé
d8147ce648 input: doc: document event definitions
Added missing documentation to event types, key codes, etc.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-18 21:37:28 +00:00
Yong Cong Sin
335acf817d posix: signal: implement strsignal
Implementation and ztest for strsignal.

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

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

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

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2023-07-18 15:35:42 -04:00
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
Yong Cong Sin
e3c49b9573 posix: signal: add initial header
Initial header for the signal APIs.
APIs to be implemented in later commit.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2023-07-18 15:35:42 -04:00
Benjamin Cabé
6719caf05e drivers: hwinfo: doc: Reset causes documentation
Add missing Doxygen for reset cause flags.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-18 16:22:22 +02:00
Benjamin Cabé
b76aa7cfaf net: mqtt-sn: doc: Fix Doxygen documentation
- Add missing Doxygen comments.
- Fix typo in Doxygen group name.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-18 16:21:52 +02:00
Andy Sinclair
f2735b6109 drivers: mfd: npm1300: Added reset and hibernate
New reset function which performs a full power reset

New hibernate function which powers down and wakes after
specified timeout

Signed-off-by: Andy Sinclair <andy.sinclair@nordicsemi.no>
2023-07-18 16:21:41 +02:00
Emilio Benavente
3531482800 dts: arm: nxp: nxp_rt5xx_common: Added required inputmux bindings
Added required inputmux bindings to support
DMA Channel Chaining for the mimxrt595_evk

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2023-07-18 16:20:21 +02:00
Benjamin Cabé
d72ad22c49 smbus: doc: Fix smbus_dt_spec documentation
Fixed Doxygen doc for smbus_dt_spec.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-18 10:17:00 -04:00
Benjamin Cabé
e1f7f94480 doc: lorawan: Cleanup doxygen comments
Add some missing Doxygen comments / fixed existing ones.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-18 11:14:39 +00:00
Benjamin Cabé
95bedcd20f doc: lora: Cleanup doxygen documentation
Fixed missing Javadoc style comments and briefs for some enums.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-18 11:14:39 +00:00
Benjamin Cabé
e1f4a6f3ef bluetooth: mesh: doc: Add missing Doxygen comments
Misc. improvements in the Doxygen comments

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-18 11:14:14 +00:00
Guillaume Gautier
c9461ca783 drivers: clock_control: add support for stm32 hsi14 clock
Add support of the dedicated STM32F0 14 MHz HSI clock for ADC.
Also remove ADC clock source selection as it is obsolete.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-07-18 11:10:17 +00:00
Benedikt Schmidt
a5f8c775d7 debug: add missing include to thread_analyzer
Including thread_analyzer.h implicitly requires a previous include of
thread.h. This adds this include directly to thread_analyzer to remove
this implicit dependency.

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
2023-07-18 11:07:54 +00:00
Carlo Caione
9752cbe045 ipc_service: open-amp: Align VRINGs
This patchset is doing three things:

1. It is fixing the bogus algorithm to find the optimal number of
   descriptors for a given memory size.

2. It is changing values for VDEV_STATUS_SIZE and
   IPC_SERVICE_STATIC_VRINGS_ALIGNMENT to better align to a usual cache
   line size.

3. RX/TX VRINGs are now correctly aligned to MEM_ALIGNMENT (and cache
   line alignment).

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2023-07-18 11:04:46 +00:00
Benjamin Cabé
64ec7e18c8 fs: nvs: doc: fix Doxygen comments
Properly document nvs_fs struct

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-18 06:41:43 -04:00
Flavio Ceolin
67e66e4807 kernel: userspace: Add k_object_alloc_size
Add a new API to dynamically allocate kernel objects that allow
passing an arbitrary size. This new API allows to allocate dynamic
thread stack.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-07-17 16:56:01 -04:00
Benjamin Cabé
c544926b37 gpio: doc: fix Doxygen doc
A couple of trivial Doxygen fixes.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-17 14:56:29 -04:00
Nick Ward
0f645b445c drivers: adc: add adc_is_ready_dt helper function
Add adc_is_ready_dt()

Signed-off-by: Nick Ward <nix.ward@gmail.com>
2023-07-17 10:16:22 +00:00
Chaitanya Tata
94e0e10193 wifi: Fix doxygen comments
Fix TWT comment to conform to doxygen style.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2023-07-17 10:14:57 +00:00
Anders Storrø
0e35bbbfd2 Bluetooth: Mesh: Add missing CBs for cfg_cli msg
Adds callback API for the following config client status messages:
- Composition data status
- Model publication status
- SIG model subscription list
- Vendor model subscription list
- Netkey list
- Appkey list
- SIG model app list
- Vendor model app list
- Key refresh status
- Heartbeat publication status
- Heartbeat subscription status

Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
2023-07-17 10:13:14 +00:00
Benjamin Cabé
ea2aac6e51 shell: doc: misc Doxygen fixes
Fixed several incorrect uses of Doxygen, in particular improper use of
/*!< ... */ syntax which is meant to document the *previous* element.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-16 07:35:25 -04:00
Prashanth S
76663444c1 include: zephyr: Fix build error in spinlock.h
In function z_spin_onexit, when CONFIG_FORCE_NO_ASSERT=y
and CONFIG_SPIN_VALIDATE=y the function parameter becomes unused.
This generates a build error (unused parameter 'k').

Add __maybe_unused to fix this error.

Signed-off-by: Prashanth S <slpp95prashanth@yahoo.com>
2023-07-14 16:50:44 +00:00
Emil Gydesen
388af8fda4 Bluetooth: BAP: Remove stream->dir field
The BAP stream object should not have a dir field. The
dir field should be stored in the EP only (to avoid having two
fields storing the same value, causing possible issues).

The field was removed, and the places that use it has been updated.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-07-14 16:48:41 +00:00
Benjamin Cabé
39836e7702 drivers: video: doc: Cleanup Doxygen documentation
Fixed several missing documentation comments, cleanup struct documentation,
and group pixel formats.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-14 08:23:07 -05:00
Benjamin Cabé
d9db00636b drivers: video: doc: fix documentation error
Documentation for video_format_cap had typos.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-14 08:23:07 -05:00
Chaitanya Tata
5ec3650d9f net: wifi: Add doxygen style comments
Fix doxygen formatting and add comments.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2023-07-14 15:02:29 +02:00
Chaitanya Tata
8c022fca87 net: wifi: Remove obsolete comment
Support for legacy types has been added primarily to identify in scan
results.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2023-07-14 15:02:29 +02:00
Ryan McClelland
2984565722 drivers: fix double promotion warning in sensor_value_from_float
fix double promotion warning when compiling when compiling with
-Wdouble-promotion

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2023-07-14 09:31:47 +00:00
Dawid Niedzwiecki
c590c5c1ee mgmt: ec_host_cmd: add suppressing commands
Add a feature to suppress commands. The suppressed commands are not
logged on the command reception.

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2023-07-14 09:38:20 +02:00
Florian Grandel
ea04e80aa1 net: l2: ieee802154: introduce device roles
Introduces IEEE 802.15.4 device roles for use in later change sets.

In the near term this will be used for coordinator-role support in
tests. Then additional coordinator-specific features will be gradually
introduced without exposing them to the user API, yet. Once a reasonable
feature set has been collected for coordinators, it will be exposed in
public APIs for use in applications.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-07-14 09:38:01 +02:00
Carlo Caione
44dd4114db arm64: Remove __packed from ESF
Packing the ESF is actually wrong, remove the attribute.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2023-07-14 09:36:40 +02:00
Christopher Friedt
7b1b2576ac kernel: support dynamic thread stack allocation
Add support for dynamic thread stack allocation

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-07-13 17:16:32 -04:00
ferar alashkar
8c32950de9 device: add explicit macro/variable unsigned suffix
add explicit unsigned suffix to 'Z_DEVICE_MAX_NAME_LEN' macro, matching
it to return type of sizeof (size_t), thus the comparison operator '<='
has the same essential types, complying with required [misra-c2012-10.4]
rule which states; Both operands of an operator in which the usual
arithmetic conversions are performed shall have the same essential type
category.

Found as a coding guideline violation (Rule 10.4) by static code
scanning tool.

Note: Tested on STM32L5 Nucleo-144 board (stm32l552xx).

Signed-off-by: ferar alashkar <ferar.alashkar@gmail.com>
2023-07-13 16:19:12 -04:00
Benjamin Cabé
ad0f2a697c lib: os: doc: cleanup Doxygen doc for structs
Fixed Doxygen comments for structs.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-13 13:47:36 -04:00
Benjamin Cabé
db939b6650 lib: os: doc: fix sys_hashmap_api doc typo
The documentation for sys_hashmap_api has an extra (leftover?) param.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-13 13:47:36 -04:00