OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [devs/] [watchdog/] [arm/] [at91wdtc/] [current/] [cdl/] [watchdog_at91wdtc.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      watchdog_at91wdtc.cdl
4
#
5
#      eCos watchdog for ARM AT91 WDTC 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, 2003, 2006, 2009 Free Software Foundation, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on 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, asl
44
# Date:           2006-02-18
45
#
46
#####DESCRIPTIONEND####
47
#
48
# ====================================================================
49
 
50
cdl_package CYGPKG_DEVICES_WATCHDOG_ARM_AT91WDTC {
51
    parent        CYGPKG_IO_WATCHDOG
52
    active_if     CYGPKG_IO_WATCHDOG
53
    display       "ARM AT91 WDTC watchdog driver"
54
    requires      CYGPKG_HAL_ARM_AT91
55
    requires      CYGPKG_KERNEL
56
    hardware
57
    define_header devs_watchdog_arm_at91wdtc.h
58
    compile       watchdog_at91wdtc.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 AT91 to execute a predefined action if the
64
      application fails to call the reset function for
65
      longer than a given timeout interval. This package
66
      currently only supports the AT91SAM7S device which
67
      use the Watchdog Timer Controller."
68
 
69
    cdl_option CYGIMP_WATCHDOG_HARDWARE {
70
        parent        CYGPKG_IO_WATCHDOG_IMPLEMENTATION
71
        display       "Hardware watchdog"
72
        default_value 1
73
        implements    CYGINT_WATCHDOG_IMPLEMENTATIONS
74
    }
75
 
76
    cdl_option CYGNUM_DEVS_WATCHDOG_ARM_AT91WDTC_DESIRED_TIMEOUT_MS {
77
        display         "Desired timeout value"
78
        flavor          data
79
        default_value   1000
80
        description "
81
            This parameter controls the watchdog timeout interval.
82
            Note that you may not get the exact value requested
83
            here, the timeout interval may have to be adjusted
84
            because of hardware limitations. The actual timeout
85
            used will be the smallest possible value that is not
86
            less than this parameter. Since the timeout is derived
87
            from the LC based slow clock don't expect great accuracy.
88
            On my board a 1000ms timeout actually goes off after 550ms!"
89
    }
90
 
91
    cdl_option CYGNUM_DEVS_WATCHDOG_ARM_AT91WDTC_TIMEOUT_VALUE {
92
        display        "Calculated timeout value"
93
        flavor         data
94
        calculated     { (CYGNUM_HAL_ARM_AT91_SLOW_CLOCK / 128) *
95
                          (CYGNUM_DEVS_WATCHDOG_ARM_AT91WDTC_DESIRED_TIMEOUT_MS / 1000)
96
                       }
97
        legal_values   { 0 to 4096 }
98
        description    "
99
            This is the calculated value that will be placed into
100
            watchdog counter timer."
101
    }
102
 
103
    cdl_option CYGSEM_DEVS_WATCHDOG_ARM_AT91WDTC_RESET {
104
        display       "Generate reset on watchdog expiration"
105
        flavor        bool
106
        default_value 1
107
        implements    CYGINT_WATCHDOG_RESETS_ON_TIMEOUT
108
        description   "
109
          Enabling this option changes the watchdog operation mode
110
          to generate a system reset upon expiration instead of
111
          invoking an application-defined action."
112
    }
113
 
114
    cdl_component CYGPKG_DEVICES_WATCHDOG_ARM_AT91WDTC_OPTIONS {
115
        display       "AT91 watchdog build options"
116
        flavor        none
117
        description   "
118
            Package specific build options including control over
119
            compiler flags used only in building this package,
120
            and details of which tests are built."
121
 
122
        cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_AT91WDTC_CFLAGS_ADD {
123
            display       "Additional compiler flags"
124
            flavor        data
125
            no_define
126
            default_value { "" }
127
            description   "
128
                This option modifies the set of compiler flags for
129
                building the watchdog device. These flags are used in addition
130
                to the set of global flags."
131
        }
132
 
133
        cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_AT91WDTC_CFLAGS_REMOVE {
134
            display       "Suppressed compiler flags"
135
            flavor        data
136
            no_define
137
            default_value { "" }
138
            description   "
139
                This option modifies the set of compiler flags for
140
                building the watchdog device. These flags are removed from
141
                the set of global flags if present."
142
        }
143
    }
144
}
145
 
146
# EOF watchdog_at91WDTC.cdl

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.