Mercurial > ecos
annotate packages/devs/watchdog/current/include/pkgconf/watchdog.h @ 36:e97d78785e2d ecos-sw-1999-09-12
Merge from eCos master repository on 1999-09-12-15:40:34-BST
| author | jlarmour |
|---|---|
| date | Sun, 12 Sep 1999 15:26:05 +0000 |
| parents | 29bc183297e1 |
| children | 1370c5e55234 |
| rev | line source |
|---|---|
| 0 | 1 #ifndef CYGONCE_PKGCONF_WATCHDOG_H |
| 2 #define CYGONCE_PKGCONF_WATCHDOG_H | |
| 3 // ==================================================================== | |
| 4 // | |
| 2 | 5 // pkgconf/watchdog.h |
| 0 | 6 // |
| 2 | 7 // Watchdog configuration file |
| 0 | 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 | |
| 2 | 27 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. |
| 0 | 28 // ------------------------------------------- |
| 29 // | |
| 30 //####COPYRIGHTEND#### | |
| 31 // ==================================================================== | |
| 32 //#####DESCRIPTIONBEGIN#### | |
| 33 // | |
| 2 | 34 // Author(s): nickg |
| 35 // Contributors: nickg | |
| 36 // Date: 1998-07-29 | |
| 37 // Purpose: To allow the user to edit watchdog config options. | |
| 0 | 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 requires CYGVAR_KERNEL_COUNTERS_CLOCK | |
| 51 description " | |
| 52 The watchdog device allows applications to make use of a | |
| 53 timer facility. First the application should register an | |
| 54 action routine with the watchdog device, and start the | |
| 55 watchdog running. After this the application must call a | |
| 56 watchdog reset function at regular intervals, or else the | |
| 57 device will cause the installed action routine to be | |
| 58 invoked. The assumption is that the watchdog timer should | |
| 59 never trigger unless there has been a serious fault in | |
| 60 either the hardware or the software, and the application's | |
| 61 action routine should perform an appropriate reset | |
| 62 operation." | |
| 2 | 63 doc ref/ecos-ref/p-cygpkg-devices-watchdog.html |
| 0 | 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 | |
|
36
e97d78785e2d
Merge from eCos master repository on 1999-09-12-15:40:34-BST
jlarmour
parents:
34
diff
changeset
|
76 #if defined(CYGPKG_HAL_MN10300) && !defined(CYGPKG_HAL_MN10300_AM31_SIM) |
| 0 | 77 #undef CYGIMP_WATCHDOG_EMULATE |
| 78 #endif | |
| 79 | |
|
34
29bc183297e1
Merge from eCos master repository on 1999-09-02-16:26:10-BST
jlarmour
parents:
32
diff
changeset
|
80 |
|
36
e97d78785e2d
Merge from eCos master repository on 1999-09-12-15:40:34-BST
jlarmour
parents:
34
diff
changeset
|
81 #if defined(CYGPKG_HAL_ARM_AEB) |
|
e97d78785e2d
Merge from eCos master repository on 1999-09-12-15:40:34-BST
jlarmour
parents:
34
diff
changeset
|
82 #undef CYGIMP_WATCHDOG_EMULATE |
|
e97d78785e2d
Merge from eCos master repository on 1999-09-12-15:40:34-BST
jlarmour
parents:
34
diff
changeset
|
83 #endif |
|
e97d78785e2d
Merge from eCos master repository on 1999-09-12-15:40:34-BST
jlarmour
parents:
34
diff
changeset
|
84 |
|
34
29bc183297e1
Merge from eCos master repository on 1999-09-02-16:26:10-BST
jlarmour
parents:
32
diff
changeset
|
85 |
| 0 | 86 /* -------------------------------------------------------------------- */ |
| 87 #endif /* CYGONCE_PKGCONF_WATCHDOG_H */ | |
| 88 /* EOF watchdog.h */ |
