mirror of
https://git.rtems.org/rtems-docs/
synced 2025-05-15 07:36:50 +08:00
parent
2c2c6cc18e
commit
c765aa0357
@ -271,28 +271,7 @@ The hardware-specific support at tick is specified by
|
|||||||
System Shutdown Support
|
System Shutdown Support
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
Optionally, the :dfn:`Clock Driver Shell` provides the routine ``Clock_exit()``
|
The clock driver system shutdown support was removed in RTEMS 5.1.
|
||||||
that is scheduled to be run during system shutdown via the ``atexit()``
|
|
||||||
routine. The hardware-specific shutdown support is specified by
|
|
||||||
``Clock_driver_support_shutdown_hardware()`` which is used by ``Clock_exit()``.
|
|
||||||
It should disable the clock tick source if it was enabled. This can be used to
|
|
||||||
prevent clock ticks after the system is shutdown. The
|
|
||||||
``Clock_driver_support_shutdown_hardware()`` must be provided as a macro. In
|
|
||||||
case this macro is undefined, then the shutdown support is disabled. This is
|
|
||||||
useful for example on memory constrained systems to avoid the ``atexit()``
|
|
||||||
overhead.
|
|
||||||
|
|
||||||
.. code-block:: c
|
|
||||||
|
|
||||||
static void some_support_shutdown_hardware( void )
|
|
||||||
{
|
|
||||||
/* Shutdown hardware */
|
|
||||||
}
|
|
||||||
|
|
||||||
#define Clock_driver_support_shutdown_hardware() \
|
|
||||||
some_support_shutdown_hardware()
|
|
||||||
|
|
||||||
#include "../../../shared/dev/clock/clockimpl.h"
|
|
||||||
|
|
||||||
SMP Support
|
SMP Support
|
||||||
===========
|
===========
|
||||||
|
Loading…
x
Reference in New Issue
Block a user