1 # ====================================================================
5 # eCos watchdog for ARM LPC2XXX driver configuration data
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
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.
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
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.
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.
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####
43 # Contributors: tkoeller, nickg
46 #####DESCRIPTIONEND####
48 # ====================================================================
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
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
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."
67 cdl_option CYGIMP_WATCHDOG_HARDWARE {
68 parent CYGPKG_IO_WATCHDOG_IMPLEMENTATION
69 display "Hardware watchdog"
71 implements CYGINT_WATCHDOG_IMPLEMENTATIONS
74 cdl_option CYGNUM_DEVS_WATCHDOG_ARM_LPC2XXX_DESIRED_TIMEOUT_MS {
75 display "Desired timeout value"
77 legal_values 1 to 2047
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."
88 cdl_option CYGSEM_DEVS_WATCHDOG_ARM_LPC2XXX_RESET {
89 display "Generate reset on watchdog expiration"
92 implements CYGINT_WATCHDOG_RESETS_ON_TIMEOUT
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."
99 cdl_component CYGPKG_DEVICES_WATCHDOG_ARM_LPC2XXX_OPTIONS {
100 display "LPC2XXX watchdog build options"
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."
107 cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_LPC2XXX_CFLAGS_ADD {
108 display "Additional compiler flags"
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."
118 cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_LPC2XXX_CFLAGS_REMOVE {
119 display "Suppressed compiler flags"
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."
132 # EOF watchdog_lpc2xxx.cdl