RTEMS Logo

RTEMS 4.8.1 On-Line Library


Monitor Task Initializing the Monitor

PREV UP NEXT Bookshelf New Chapters

2.3.1: Initializing the Monitor

The monitor is initialized by calling rtems_monitor_init. When initialized, the monitor is created as an independent task. An example of initializing the monitor is shown below:

#include <rtems/monitor.h>
        ...
rtems_monitor_init(0);

The "0" parameter to the rtems_monitor_init routine causes the monitor to immediately enter command mode. This parameter is a bitfield. If the monitor is to suspend itself on startup, then the RTEMS_MONITOR_SUSPEND bit should be set.


PREV UP NEXT Bookshelf New Chapters

Copyright © 1988-2007OAR Corporation