You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/07/09 08:06:08 UTC

(nuttx) 02/02: Documentation: add drivers early initialization

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 129f751faecd36ff8226e98a55ef5da4686ff8be
Author: xuxingliang <xu...@xiaomi.com>
AuthorDate: Tue Jul 9 10:11:50 2024 +0800

    Documentation: add drivers early initialization
    
    Signed-off-by: xuxingliang <xu...@xiaomi.com>
---
 Documentation/components/drivers/index.rst | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/Documentation/components/drivers/index.rst b/Documentation/components/drivers/index.rst
index 401f7336ca..26697f597f 100644
--- a/Documentation/components/drivers/index.rst
+++ b/Documentation/components/drivers/index.rst
@@ -283,3 +283,15 @@ The following skeleton files are available:
 * ``drivers/mtd/skeleton.c`` Skeleton memory technology device drivers
 * ``drivers/net/skeleton.c`` Skeleton network/Ethernet drivers
 * ``drivers/usbhost/usbhost_skeleton.c`` Skeleton USB host class driver
+
+Drivers Early Initialization
+============================
+
+To initialize drivers early in the boot process, the :c:func:`drivers_early_initialize`
+function is introduced. This is particularly beneficial for certain drivers,
+such as SEGGER SystemView, or others that require initialization before the
+system is fully operational.
+
+It is important to note that during this early initialization phase,
+system resources are not yet available for use. This includes memory allocation,
+file systems, and any other system resources.