Mercurial > ecos-v2_0-branch
comparison packages/devs/watchdog/current/include/pkgconf/watchdog.h @ 0:3111d98ba7b3 ecos-v1_1-release
Initial commit of eCos version 1.1
| author | jlarmour |
|---|---|
| date | Tue, 11 May 1999 11:16:07 +0000 |
| parents | |
| children | 443894e2e912 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:3111d98ba7b3 |
|---|---|
| 1 #ifndef CYGONCE_PKGCONF_WATCHDOG_H | |
| 2 #define CYGONCE_PKGCONF_WATCHDOG_H | |
| 3 // ==================================================================== | |
| 4 // | |
| 5 // pkgconf/watchdog.h | |
| 6 // | |
| 7 // Watchdog configuration file | |
| 8 // | |
| 9 // ==================================================================== | |
| 10 //####COPYRIGHTBEGIN#### | |
| 11 // | |
| 12 // ------------------------------------------- | |
| 13 // The contents of this file are subject to the Cygnus eCos Public License | |
| 14 // Version 1.0 (the "License"); you may not use this file except in | |
| 15 // compliance with the License. You may obtain a copy of the License at | |
| 16 // http://sourceware.cygnus.com/ecos | |
| 17 // | |
| 18 // Software distributed under the License is distributed on an "AS IS" | |
| 19 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
| 20 // License for the specific language governing rights and limitations under | |
| 21 // the License. | |
| 22 // | |
| 23 // The Original Code is eCos - Embedded Cygnus Operating System, released | |
| 24 // September 30, 1998. | |
| 25 // | |
| 26 // The Initial Developer of the Original Code is Cygnus. Portions created | |
| 27 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. | |
| 28 // ------------------------------------------- | |
| 29 // | |
| 30 //####COPYRIGHTEND#### | |
| 31 // ==================================================================== | |
| 32 //#####DESCRIPTIONBEGIN#### | |
| 33 // | |
| 34 // Author(s): nickg | |
| 35 // Contributors: nickg | |
| 36 // Date: 1998-07-29 | |
| 37 // Purpose: To allow the user to edit watchdog config options. | |
| 38 // Description: | |
| 39 //####DESCRIPTIONEND#### | |
| 40 // | |
| 41 // ==================================================================== | |
| 42 | |
| 43 #include <pkgconf/kernel.h> // kernel configuration file | |
| 44 | |
| 45 /* ---------------------------------------------------------------------------- | |
| 46 {{CFG_DATA | |
| 47 | |
| 48 cdl_package CYGPKG_DEVICES_WATCHDOG { | |
| 49 display "Watchdog device" | |
| 50 parent CYGPKG_DEVICES | |
| 51 requires CYGVAR_KERNEL_COUNTERS_CLOCK | |
| 52 description " | |
| 53 The watchdog device allows applications to make use of a | |
| 54 timer facility. First the application should register an | |
| 55 action routine with the watchdog device, and start the | |
| 56 watchdog running. After this the application must call a | |
| 57 watchdog reset function at regular intervals, or else the | |
| 58 device will cause the installed action routine to be | |
| 59 invoked. The assumption is that the watchdog timer should | |
| 60 never trigger unless there has been a serious fault in | |
| 61 either the hardware or the software, and the application's | |
| 62 action routine should perform an appropriate reset | |
| 63 operation." | |
| 64 } | |
| 65 | |
| 66 }}CFG_DATA */ | |
| 67 | |
| 68 /* --------------------------------------------------------------------- | |
| 69 * Decide whether we are using the emulated watchdog or a hardware | |
| 70 * supplied device. | |
| 71 */ | |
| 72 | |
| 73 | |
| 74 #define CYGIMP_WATCHDOG_EMULATE | |
| 75 | |
| 76 #if defined(CYG_HAL_MN10300_MN103002) && !defined(CYGPKG_HAL_MN10300_SIM) | |
| 77 #undef CYGIMP_WATCHDOG_EMULATE | |
| 78 #endif | |
| 79 | |
| 80 /* -------------------------------------------------------------------- */ | |
| 81 #endif /* CYGONCE_PKGCONF_WATCHDOG_H */ | |
| 82 /* EOF watchdog.h */ |
