Skip to content

Commit 770732f

Browse files
gmarullcfriedt
authored andcommitted
doc: reference: drivers: update system drivers section
Update the system drivers section: remove references to SYS_DEVICE_DEFINE, add references to the SYS_INIT() macro. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent e8bcaff commit 770732f

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

doc/reference/drivers/index.rst

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -382,21 +382,10 @@ function.
382382
System Drivers
383383
**************
384384

385-
In some cases you may just need to run a function at boot. Special ``SYS_*``
386-
macros exist that map to ``DEVICE_DEFINE()`` calls.
387-
For ``SYS_INIT()`` there are no config or runtime data structures and there
388-
isn't a way
389-
to later get a device pointer by name. The same policies for initialization
390-
level and priority apply.
391-
392-
For ``SYS_DEVICE_DEFINE()`` you can obtain pointers by name.
393-
394-
:c:func:`SYS_INIT()`
395-
Run an initialization function at boot at specified priority.
396-
397-
:c:func:`SYS_DEVICE_DEFINE()`
398-
Like :c:func:`DEVICE_DEFINE` without an API table and constructing
399-
the device name from the init function name.
385+
In some cases you may just need to run a function at boot. For such cases, the
386+
:c:macro:`SYS_INIT` can be used. This macro does not take any config or runtime
387+
data structures and there isn't a way to later get a device pointer by name. The
388+
same device policies for initialization level and priority apply.
400389

401390
Error handling
402391
**************

0 commit comments

Comments
 (0)