Changeset c765aa0 in rtems-docs
- Timestamp:
- 06/19/18 06:15:48 (4 years ago)
- Branches:
- 5, am, master
- Children:
- 4c2ca04
- Parents:
- 2c2c6cc1
- git-author:
- Sebastian Huber <sebastian.huber@…> (06/19/18 06:15:48)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (06/26/18 09:18:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bsp-howto/clock.rst
r2c2c6cc1 rc765aa0 272 272 ======================= 273 273 274 Optionally, the :dfn:`Clock Driver Shell` provides the routine ``Clock_exit()`` 275 that is scheduled to be run during system shutdown via the ``atexit()`` 276 routine. The hardware-specific shutdown support is specified by 277 ``Clock_driver_support_shutdown_hardware()`` which is used by ``Clock_exit()``. 278 It should disable the clock tick source if it was enabled. This can be used to 279 prevent clock ticks after the system is shutdown. The 280 ``Clock_driver_support_shutdown_hardware()`` must be provided as a macro. In 281 case this macro is undefined, then the shutdown support is disabled. This is 282 useful for example on memory constrained systems to avoid the ``atexit()`` 283 overhead. 284 285 .. code-block:: c 286 287 static void some_support_shutdown_hardware( void ) 288 { 289 /* Shutdown hardware */ 290 } 291 292 #define Clock_driver_support_shutdown_hardware() \ 293 some_support_shutdown_hardware() 294 295 #include "../../../shared/dev/clock/clockimpl.h" 274 The clock driver system shutdown support was removed in RTEMS 5.1. 296 275 297 276 SMP Support
Note: See TracChangeset
for help on using the changeset viewer.