Skip to content

Commit ddc3779

Browse files
Fymytejhedberg
authored andcommitted
doc: peripherals: add hwspinlock documentation
Include doxygen documentation of hwspinlock in peripherals. Signed-off-by: Pierrick Guillaume <[email protected]>
1 parent 7678c85 commit ddc3779

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. _hwspinlock_api:
2+
3+
Hardware Spinlocks (HWSPINLOCK)
4+
###############################
5+
6+
Overview
7+
********
8+
9+
An HWSPINLOCK device is a peripheral used to protect shared resources across clusters in the system.
10+
Each HWSPINLOCK instance is providing one or more spinlocks. The api is similar to regular zephyr spinlocks.
11+
12+
.. doxygengroup:: spinlock_apis
13+
14+
Because we also want to protect the spinlock resource to be used by multiple cores in the same
15+
cluster, each HWSPINLOCK device include a regular zephyr spinlock, and use it to lock the access to
16+
HWSPINLOCK hardware.
17+
18+
API Reference
19+
*************
20+
21+
.. doxygengroup:: hwspinlock_interface

doc/hardware/peripherals/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Peripherals
3535
gpio.rst
3636
haptics.rst
3737
hwinfo.rst
38+
hwspinlock.rst
3839
i2c_eeprom_target.rst
3940
i3c.rst
4041
i2c.rst

0 commit comments

Comments
 (0)