]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/watchdog/arm/lpc2xxx/v2_0/cdl/watchdog_lpc2xxx.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / watchdog / arm / lpc2xxx / v2_0 / cdl / watchdog_lpc2xxx.cdl
1 # ====================================================================
2 #
3 #      watchdog_lpc2xxx.cdl
4 #
5 #      eCos watchdog for ARM LPC2XXX driver configuration data
6 #
7 # ====================================================================
8 #####ECOSGPLCOPYRIGHTBEGIN####
9 ## -------------------------------------------
10 ## This file is part of eCos, the Embedded Configurable Operating System.
11 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12 ## Copyright (C) 2003 Nick Garnett <nickg@calivar.com>
13 ## Copyright (C) 2004 eCosCentric Limited 
14 ##
15 ## eCos is free software; you can redistribute it and/or modify it under
16 ## the terms of the GNU General Public License as published by the Free
17 ## Software Foundation; either version 2 or (at your option) any later version.
18 ##
19 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
20 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 ## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
22 ## for more details.
23 ##
24 ## You should have received a copy of the GNU General Public License along
25 ## with eCos; if not, write to the Free Software Foundation, Inc.,
26 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
27 ##
28 ## As a special exception, if other files instantiate templates or use macros
29 ## or inline functions from this file, or you compile this file and link it
30 ## with other works to produce a work based on this file, this file does not
31 ## by itself cause the resulting work to be covered by the GNU General Public
32 ## License. However the source code for this file must still be made available
33 ## in accordance with section (3) of the GNU General Public License.
34 ##
35 ## This exception does not invalidate any other reasons why a work based on
36 ## this file might be covered by the GNU General Public License.
37 ## -------------------------------------------
38 #####ECOSGPLCOPYRIGHTEND####
39 # ====================================================================
40 ######DESCRIPTIONBEGIN####
41 #
42 # Author(s):      tkoeller
43 # Contributors:   tkoeller, nickg
44 # Date:           2000-05-05
45 #
46 #####DESCRIPTIONEND####
47 #
48 # ====================================================================
49
50 cdl_package CYGPKG_DEVICES_WATCHDOG_ARM_LPC2XXX {
51     parent        CYGPKG_IO_WATCHDOG
52     active_if     CYGPKG_IO_WATCHDOG
53     display       "ARM LPC2XXX watchdog driver"
54     requires      CYGPKG_HAL_ARM_LPC2XXX
55     requires      CYGPKG_KERNEL
56     hardware
57     define_header devs_watchdog_arm_lpc2xxx.h
58     compile       watchdog_lpc2xxx.cxx
59     implements    CYGINT_WATCHDOG_HW_IMPLEMENTATIONS
60     active_if     CYGIMP_WATCHDOG_HARDWARE
61     description   "
62       This package uses the watchdog device integrated
63       in the LPC2XXX to execute a predefined action if the
64       application fails to call the reset function for
65       longer than a given timeout interval."
66
67     cdl_option CYGIMP_WATCHDOG_HARDWARE {
68         parent        CYGPKG_IO_WATCHDOG_IMPLEMENTATION
69         display       "Hardware watchdog"
70         calculated    1
71         implements    CYGINT_WATCHDOG_IMPLEMENTATIONS
72     }
73     
74     cdl_option CYGNUM_DEVS_WATCHDOG_ARM_LPC2XXX_DESIRED_TIMEOUT_MS {
75         display         "Desired timeout value"
76         flavor          data
77         legal_values    1 to 2047
78         default_value   100
79         description "
80             This parameter controls the watchdog timeout interval.
81             Note that you may not get the exact value requested
82             here, the timeout interval may have to be adjusted
83             because of hardware limitations. The actual timeout
84             used will be the smallest possible value that is not
85             less than this parameter."
86     }
87     
88     cdl_option CYGSEM_DEVS_WATCHDOG_ARM_LPC2XXX_RESET {
89         display       "Generate reset on watchdog expiration"
90         flavor        bool
91         default_value 1
92         implements    CYGINT_WATCHDOG_RESETS_ON_TIMEOUT
93         description   "
94           Enabling this option changes the watchdog operation mode
95           to generate a system reset upon expiration instead of
96           invoking an application-defined action."
97     }
98
99     cdl_component CYGPKG_DEVICES_WATCHDOG_ARM_LPC2XXX_OPTIONS {
100         display       "LPC2XXX watchdog build options"
101         flavor        none
102         description   "
103             Package specific build options including control over
104             compiler flags used only in building this package,
105             and details of which tests are built."
106
107         cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_LPC2XXX_CFLAGS_ADD {
108             display       "Additional compiler flags"
109             flavor        data
110             no_define
111             default_value { "" }
112             description   "
113                 This option modifies the set of compiler flags for
114                 building the watchdog device. These flags are used in addition
115                 to the set of global flags."
116         }
117
118         cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_LPC2XXX_CFLAGS_REMOVE {
119             display       "Suppressed compiler flags"
120             flavor        data
121             no_define
122             default_value { "" }
123             description   "
124                 This option modifies the set of compiler flags for
125                 building the watchdog device. These flags are removed from
126                 the set of global flags if present."
127         }
128
129     }
130 }
131
132 # EOF watchdog_lpc2xxx.cdl