Command line arguments, Hooks, Additional tcl procedures – Comtrol eCos User Manual

Page 814

Advertising
background image

Synthetic Target Watchdog Device

By default the watchdog support will not generate an audible alert when the watchdog triggers, to avoid annoying
colleagues. Sound can be enabled in the target definition file, and two suitable files

sound1.au

and

sound2.au

are supplied as standard:

synth_device watchdog {

sound sound1.au

...

}

An absolute path can be specified if desired:

synth_device watchdog {

sound /usr/share/emacs/site-lisp/emacspeak/sounds/default-8k/alarm.au

...

}

Sound facilities are not built into the I/O auxiliary itself, instead an external program is used. The default player
is play, a front-end to the sox application shipped with some Linux distributions. If another player should be used
then this can be specified in the target definition file:

synth_device watchdog {

...

sound_player my_sound_player

The specified program will be run in the background with a single argument, the sound file.

Command Line Arguments

The watchdog support does not use any command line arguments. All configuration is handled through the target
definition file.

Hooks

The watchdog support does not provide any hooks for use by other scripts. There is rarely any need for customizing
the system’s behaviour when a watchdog triggers because those should be rare events, even during application
development.

Additional Tcl Procedures

The watchdog support does not provide any additional Tcl procedures or variables for use by other scripts.

710

Advertising