1 # ====================================================================
5 # eCos watchdog for ARM AT91 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>
14 ## eCos is free software; you can redistribute it and/or modify it under
15 ## the terms of the GNU General Public License as published by the Free
16 ## Software Foundation; either version 2 or (at your option) any later version.
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
19 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 ## You should have received a copy of the GNU General Public License along
24 ## with eCos; if not, write to the Free Software Foundation, Inc.,
25 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
27 ## As a special exception, if other files instantiate templates or use macros
28 ## or inline functions from this file, or you compile this file and link it
29 ## with other works to produce a work based on this file, this file does not
30 ## by itself cause the resulting work to be covered by the GNU General Public
31 ## License. However the source code for this file must still be made available
32 ## in accordance with section (3) of the GNU General Public License.
34 ## This exception does not invalidate any other reasons why a work based on
35 ## this file might be covered by the GNU General Public License.
37 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
38 ## at http://sources.redhat.com/ecos/ecos-license/
39 ## -------------------------------------------
40 #####ECOSGPLCOPYRIGHTEND####
41 # ====================================================================
42 ######DESCRIPTIONBEGIN####
45 # Contributors: tkoeller, nickg
48 #####DESCRIPTIONEND####
50 # ====================================================================
52 cdl_package CYGPKG_DEVICES_WATCHDOG_ARM_AT91 {
53 parent CYGPKG_IO_WATCHDOG
54 active_if CYGPKG_IO_WATCHDOG
55 display "ARM AT91 watchdog driver"
56 requires CYGPKG_HAL_ARM_AT91
57 requires CYGPKG_KERNEL
59 define_header devs_watchdog_arm_at91.h
60 compile watchdog_at91.cxx
61 implements CYGINT_WATCHDOG_HW_IMPLEMENTATIONS
62 active_if CYGIMP_WATCHDOG_HARDWARE
64 This package uses the watchdog device integrated
65 in the AT91 to execute a predefined action if the
66 application fails to call the reset function for
67 longer than a given timeout interval. This package
68 currently only supports the AT91x408xx, AT91M55800A and Diopsis
69 devices found on the Atmel EB40, EB40A, EB55 and JTST evaluation
70 boards. The AT91M42800 found on the EB42 is not supported
71 since it uses a totally different watchdog device."
73 cdl_option CYGIMP_WATCHDOG_HARDWARE {
74 parent CYGPKG_IO_WATCHDOG_IMPLEMENTATION
75 display "Hardware watchdog"
77 implements CYGINT_WATCHDOG_IMPLEMENTATIONS
80 cdl_option CYGNUM_DEVS_WATCHDOG_ARM_AT91_DESIRED_TIMEOUT_MS {
81 display "Desired timeout value"
83 legal_values 1 to 2047
86 This parameter controls the watchdog timeout interval.
87 Note that you may not get the exact value requested
88 here, the timeout interval may have to be adjusted
89 because of hardware limitations. The actual timeout
90 used will be the smallest possible value that is not
91 less than this parameter."
94 cdl_option CYGSEM_DEVS_WATCHDOG_ARM_AT91_RESET {
95 display "Generate reset on watchdog expiration"
98 implements CYGINT_WATCHDOG_RESETS_ON_TIMEOUT
100 Enabling this option changes the watchdog operation mode
101 to generate a system reset upon expiration instead of
102 invoking an application-defined action."
105 cdl_component CYGPKG_DEVICES_WATCHDOG_ARM_AT91_OPTIONS {
106 display "AT91 watchdog build options"
109 Package specific build options including control over
110 compiler flags used only in building this package,
111 and details of which tests are built."
113 cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_AT91_CFLAGS_ADD {
114 display "Additional compiler flags"
119 This option modifies the set of compiler flags for
120 building the watchdog device. These flags are used in addition
121 to the set of global flags."
124 cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_AT91_CFLAGS_REMOVE {
125 display "Suppressed compiler flags"
130 This option modifies the set of compiler flags for
131 building the watchdog device. These flags are removed from
132 the set of global flags if present."
138 # EOF watchdog_at91.cdl