Skip to content

Commit 955efe6

Browse files
committed
nrf_cc310: Added description for cc310 drivers
Added description for: - cc310 entropy driver - cc310 hw initialization Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 26bb7fb commit 955efe6

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

doc/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ set(NRF_EXTRACT_CONTENT_COMMAND
151151
"*.rst:boards:${NRF_RST_OUT}"
152152
"*.rst:include:${NRF_RST_OUT}"
153153
"*.rst:lib:${NRF_RST_OUT}"
154+
"*.rst:drivers:${NRF_RST_OUT}"
154155
"*.rst:scripts:${NRF_RST_OUT}"
155156
"*.rst:applications:${NRF_RST_OUT}/doc/nrf"
156157
"*.rst:samples:${NRF_RST_OUT}/doc/nrf"
@@ -159,6 +160,7 @@ set(NRF_EXTRACT_CONTENT_COMMAND
159160
"changelog.rst:doc:${NRF_RST_OUT}/doc/nrf"
160161
"*.rst:include:${NRF_RST_OUT}/doc/nrf"
161162
"*.rst:lib:${NRF_RST_OUT}/doc/nrf"
163+
"*.rst:drivers:${NRF_RST_OUT}/doc/nrf"
162164
"*.rst:scripts:${NRF_RST_OUT}/doc/nrf"
163165
)
164166

doc/nrf/drivers.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ Here you can find documentation for these drivers, including API documentation.
1313
:glob:
1414

1515
../../include/drivers/*
16+
../../drivers/entropy/*
17+
../../drivers/hw_cc310/*
18+
../../drivers/net/*

drivers/entropy/entropy_cc310.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.. _lib_entropy_cc310:
2+
3+
Entropy CC310 Driver
4+
####################
5+
6+
The Entropy CC310 Driver can be used to to generate random data using the Arm
7+
CryptoCell CC310 hardware.
8+
9+
10+
When used in nRF52840 the Entropy CC310 Driver will gather entropy by using the
11+
CC310 hardware through the :ref:`nrf_cc310_platform_readme`.
12+
13+
14+
When used in the nRF9160 in a secure application, :ref:`ug_nrf9160`, or when the
15+
Secure Partition Manager is not used, the Entropy CC310 Driver will gather
16+
entropy by using the CC310 hardware through the :ref:`nrf_cc310_platform_readme`.
17+
18+
19+
When used in the nRF9160 in a non-secure application, :ref:`ug_nrf9160`
20+
the driver will gather entropy through the :ref:`lib_secure_services` library.
21+
22+
API documentation
23+
*****************
24+
25+
| Header file: :file:`<NCS>/zephyr/include/drivers/entropy.h`
26+
| Source file: :file:`drivers/entropy_cc310/entropy_cc310.c`
27+
28+
The Entropy CC310 Driver implements the Zephyr :ref:`zephyr:entropy_interface` API.

drivers/hw_cc310/hw_cc310.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.. _lib_hw_cc310:
2+
3+
Hardware CC310 Driver
4+
#####################
5+
6+
The Hardware CC310 Driver ensures correct initialization of the :ref:`nrf_cc310_platform_readme`.
7+
8+
The Hardware CC310 Driver ensures the following functionality is correctly initialized:
9+
10+
* CC310 abort functions
11+
* mutex initialization
12+
* platform initialization with/without RNG
13+
14+
The following :option:`CONFIG_HW_CC310` Kconfig variable controls initialization of the Hardware
15+
CC310 Driver.
16+
17+
API documentation
18+
*****************
19+
20+
| Source file: :file:`drivers/hw_cc310/hw_cc310.c`
21+
22+
See the :ref:`crypto_api_nrf_cc310_platform` APIs for functions available after
23+
`Hardware CC310 Driver`_ initialization.

0 commit comments

Comments
 (0)