# ====================================================================
|
# ====================================================================
|
#
|
#
|
# watchdog_at91.cdl
|
# watchdog_at91.cdl
|
#
|
#
|
# eCos watchdog for ARM AT91 driver configuration data
|
# eCos watchdog for ARM AT91 driver configuration data
|
#
|
#
|
# ====================================================================
|
# ====================================================================
|
#####ECOSGPLCOPYRIGHTBEGIN####
|
#####ECOSGPLCOPYRIGHTBEGIN####
|
## -------------------------------------------
|
## -------------------------------------------
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
##
|
##
|
## eCos is free software; you can redistribute it and/or modify it under
|
## eCos is free software; you can redistribute it and/or modify it under
|
## the terms of the GNU General Public License as published by the Free
|
## the terms of the GNU General Public License as published by the Free
|
## Software Foundation; either version 2 or (at your option) any later version.
|
## Software Foundation; either version 2 or (at your option) any later version.
|
##
|
##
|
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
## for more details.
|
## for more details.
|
##
|
##
|
## You should have received a copy of the GNU General Public License along
|
## You should have received a copy of the GNU General Public License along
|
## with eCos; if not, write to the Free Software Foundation, Inc.,
|
## with eCos; if not, write to the Free Software Foundation, Inc.,
|
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
##
|
##
|
## As a special exception, if other files instantiate templates or use macros
|
## As a special exception, if other files instantiate templates or use macros
|
## or inline functions from this file, or you compile this file and link it
|
## or inline functions from this file, or you compile this file and link it
|
## with other works to produce a work based on this file, this file does not
|
## with other works to produce a work based on this file, this file does not
|
## by itself cause the resulting work to be covered by the GNU General Public
|
## by itself cause the resulting work to be covered by the GNU General Public
|
## License. However the source code for this file must still be made available
|
## License. However the source code for this file must still be made available
|
## in accordance with section (3) of the GNU General Public License.
|
## in accordance with section (3) of the GNU General Public License.
|
##
|
##
|
## This exception does not invalidate any other reasons why a work based on
|
## This exception does not invalidate any other reasons why a work based on
|
## this file might be covered by the GNU General Public License.
|
## this file might be covered by the GNU General Public License.
|
##
|
##
|
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
## at http://sources.redhat.com/ecos/ecos-license/
|
## at http://sources.redhat.com/ecos/ecos-license/
|
## -------------------------------------------
|
## -------------------------------------------
|
#####ECOSGPLCOPYRIGHTEND####
|
#####ECOSGPLCOPYRIGHTEND####
|
# ====================================================================
|
# ====================================================================
|
######DESCRIPTIONBEGIN####
|
######DESCRIPTIONBEGIN####
|
#
|
#
|
# Author(s): tkoeller
|
# Author(s): tkoeller
|
# Contributors: tkoeller
|
# Contributors: tkoeller
|
# Date: 2000-05-05
|
# Date: 2000-05-05
|
#
|
#
|
#####DESCRIPTIONEND####
|
#####DESCRIPTIONEND####
|
#
|
#
|
# ====================================================================
|
# ====================================================================
|
|
|
cdl_package CYGPKG_DEVICES_WATCHDOG_ARM_AT91 {
|
cdl_package CYGPKG_DEVICES_WATCHDOG_ARM_AT91 {
|
parent CYGPKG_IO_WATCHDOG
|
parent CYGPKG_IO_WATCHDOG
|
active_if CYGPKG_IO_WATCHDOG
|
active_if CYGPKG_IO_WATCHDOG
|
display "ARM AT91 watchdog driver"
|
display "ARM AT91 watchdog driver"
|
requires CYGPKG_HAL_ARM_AT91
|
requires CYGPKG_HAL_ARM_AT91
|
requires CYGPKG_KERNEL
|
requires CYGPKG_KERNEL
|
hardware
|
hardware
|
define_header devs_watchdog_arm_at91.h
|
define_header devs_watchdog_arm_at91.h
|
compile watchdog_at91.cxx
|
compile watchdog_at91.cxx
|
implements CYGINT_WATCHDOG_HW_IMPLEMENTATIONS
|
implements CYGINT_WATCHDOG_HW_IMPLEMENTATIONS
|
active_if CYGIMP_WATCHDOG_HARDWARE
|
active_if CYGIMP_WATCHDOG_HARDWARE
|
description "
|
description "
|
This package uses the watchdog device integrated
|
This package uses the watchdog device integrated
|
in the ARM CPU to execute a predefined action if the
|
in the ARM CPU to execute a predefined action if the
|
application fails to call the reset function for
|
application fails to call the reset function for
|
longer than a given timeout interval."
|
longer than a given timeout interval."
|
|
|
cdl_option CYGIMP_WATCHDOG_HARDWARE {
|
cdl_option CYGIMP_WATCHDOG_HARDWARE {
|
parent CYGPKG_IO_WATCHDOG_IMPLEMENTATION
|
parent CYGPKG_IO_WATCHDOG_IMPLEMENTATION
|
display "Hardware watchdog"
|
display "Hardware watchdog"
|
calculated 1
|
calculated 1
|
implements CYGINT_WATCHDOG_IMPLEMENTATIONS
|
implements CYGINT_WATCHDOG_IMPLEMENTATIONS
|
}
|
}
|
|
|
cdl_option CYGNUM_DEVS_WATCHDOG_ARM_AT91_DESIRED_TMEOUT_MS {
|
cdl_option CYGNUM_DEVS_WATCHDOG_ARM_AT91_DESIRED_TMEOUT_MS {
|
display "Desired timeout value"
|
display "Desired timeout value"
|
flavor data
|
flavor data
|
legal_values 1 to 2047
|
legal_values 1 to 2047
|
default_value 100
|
default_value 100
|
description "
|
description "
|
This parameter controls the watchdog timeout interval.
|
This parameter controls the watchdog timeout interval.
|
Note that you may not get the exact value requested
|
Note that you may not get the exact value requested
|
here, the timeout interval may have to be adjusted
|
here, the timeout interval may have to be adjusted
|
because of hardware limitations. The actual timeout
|
because of hardware limitations. The actual timeout
|
used will be the smallest possible value that is not
|
used will be the smallest possible value that is not
|
less than this parameter."
|
less than this parameter."
|
}
|
}
|
|
|
cdl_option CYGSEM_DEVS_WATCHDOG_ARM_AT91_RESET {
|
cdl_option CYGSEM_DEVS_WATCHDOG_ARM_AT91_RESET {
|
display "Generate reset on watchdog expiration"
|
display "Generate reset on watchdog expiration"
|
flavor bool
|
flavor bool
|
default_value 1
|
default_value 1
|
implements CYGINT_WATCHDOG_RESETS_ON_TIMEOUT
|
implements CYGINT_WATCHDOG_RESETS_ON_TIMEOUT
|
description "
|
description "
|
Enabling this option changes the watchdog operation mode
|
Enabling this option changes the watchdog operation mode
|
to generate a system reset upon expiration instead of
|
to generate a system reset upon expiration instead of
|
invoking an application-defined action."
|
invoking an application-defined action."
|
}
|
}
|
|
|
cdl_component CYGPKG_DEVICES_WATCHDOG_ARM_AT91_OPTIONS {
|
cdl_component CYGPKG_DEVICES_WATCHDOG_ARM_AT91_OPTIONS {
|
display "AT91 watchdog build options"
|
display "AT91 watchdog build options"
|
flavor none
|
flavor none
|
description "
|
description "
|
Package specific build options including control over
|
Package specific build options including control over
|
compiler flags used only in building this package,
|
compiler flags used only in building this package,
|
and details of which tests are built."
|
and details of which tests are built."
|
|
|
cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_AT91_CFLAGS_ADD {
|
cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_AT91_CFLAGS_ADD {
|
display "Additional compiler flags"
|
display "Additional compiler flags"
|
flavor data
|
flavor data
|
no_define
|
no_define
|
default_value { "" }
|
default_value { "" }
|
description "
|
description "
|
This option modifies the set of compiler flags for
|
This option modifies the set of compiler flags for
|
building the watchdog device. These flags are used in addition
|
building the watchdog device. These flags are used in addition
|
to the set of global flags."
|
to the set of global flags."
|
}
|
}
|
|
|
cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_AT91_CFLAGS_REMOVE {
|
cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_AT91_CFLAGS_REMOVE {
|
display "Suppressed compiler flags"
|
display "Suppressed compiler flags"
|
flavor data
|
flavor data
|
no_define
|
no_define
|
default_value { "" }
|
default_value { "" }
|
description "
|
description "
|
This option modifies the set of compiler flags for
|
This option modifies the set of compiler flags for
|
building the watchdog device. These flags are removed from
|
building the watchdog device. These flags are removed from
|
the set of global flags if present."
|
the set of global flags if present."
|
}
|
}
|
|
|
}
|
}
|
}
|
}
|
|
|
# EOF watchdog_at91.cdl
|
# EOF watchdog_at91.cdl
|
|
|