Commit graph

17,121 commits

Author SHA1 Message Date
Benjamin Cabé
9fab241991 bluetooth: doc: Reformat BT_APPEARANCE_* defines
Split the BT_APPEARANCE_* doc on two lines as several lines were
dangerously close to 100-character line limit + some constants were
misaligned.
This makes follow-up commit possible without breaking code formatting
rules.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-20 10:46:10 +00:00
Benjamin Cabé
abac1bcc1f bluetooth: doc: Move GAP defines to bt_gap
Moved Doxygen documentation under bt_gap group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-20 10:46:10 +00:00
Benjamin Cabé
ddcceed7e8 doc: bluetooth: Spell out GAP acronym
For consistency with other groups, spell out GAP

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-20 10:46:10 +00:00
Jamie McCrae
ecfbabd213 mgmt: mcumgr: Make SMP version 2 to legacy error lookup extensible
Replaces the manual lookup function with a lookup function which
is provided when registering MCUmgr handlers which can be used to
find the function to translate error codes, allowing out of tree
MCUmgr handlers to provide error translation handlers.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-07-20 10:35:14 +00:00
Gerard Marull-Paretas
b3fa2eec45 pm: remove dummy pm_state_set/pm_state_exit_post_ops
Dummy inline functions are useful to avoid ifdeffery in code when a
certain option is not available. pm_state_set/pm_state_exit_post_ops,
are only called from the PM subsystem, so never called if CONFIG_PM=n,
that is, never surrounded with ifdeffery.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-07-20 10:33:00 +00:00
Benjamin Cabé
660c5f5c98 doc: mqtt: Add missing Doxygen comments
Completed the documentation of the mqtt.h header file.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-20 06:17:04 -04:00
Benjamin Cabé
d48c3396cb fs: doc: fs_interface doxygen fixes
Fixed Doxygen docs for structs

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-20 06:05:05 -04:00
Benjamin Cabé
485ebbbebd fs: doc: Document fs.h structs and macros
Fixed Doxygen docs for structs and added missing docs for a few
macros and enums.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-20 06:05:05 -04:00
Benjamin Cabé
ae7efcade2 fs: doc: Document fs_file_system_t methods
Fully document all the methods in the File System interface structure

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-20 06:05:05 -04:00
Benjamin Cabé
5b78a386e9 fs: doc: Fix fs_file_system_t documentation
Properly document the fs_file_system_t structure

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-20 06:05:05 -04:00
Benjamin Cabé
69c3659507 fs: nvs: doc: Provide useful brief descs
Provide useful descriptions for NVS API.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-20 06:05:05 -04:00
Benjamin Cabé
5f9e698da4 canbus: isotp: doc: Document isotp_tx_callback_t
Added missing Doxygen doc for isotp_tx_callback_t

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-07-19 21:41:39 -04:00
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