#ifndef CYGONCE_PKGCONF_HAL_ARM_PID_H
#define CYGONCE_PKGCONF_HAL_ARM_PID_H
// ====================================================================
//
//      pkgconf/hal_arm_pid.h
//
//      HAL configuration file
//
// ====================================================================
//####COPYRIGHTBEGIN####
//                                                                          
// -------------------------------------------                              
// The contents of this file are subject to the Red Hat eCos Public License 
// Version 1.1 (the "License"); you may not use this file except in         
// compliance with the License.  You may obtain a copy of the License at    
// http://www.redhat.com/                                                   
//                                                                          
// Software distributed under the License is distributed on an "AS IS"      
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See the 
// License for the specific language governing rights and limitations under 
// the License.                                                             
//                                                                          
// The Original Code is eCos - Embedded Configurable Operating System,      
// released September 30, 1998.                                             
//                                                                          
// The Initial Developer of the Original Code is Red Hat.                   
// Portions created by Red Hat are                                          
// Copyright (C) 1998, 1999, 2000 Red Hat, Inc.                             
// All Rights Reserved.                                                     
// -------------------------------------------                              
//                                                                          
//####COPYRIGHTEND####
// ====================================================================
//#####DESCRIPTIONBEGIN####
//
// Author(s):           gthomas


// Contributors:        gthomas
// Date:                1998-12-02      
// Purpose:             To allow the user to edit HAL configuration options.
// Description:
//
//####DESCRIPTIONEND####
//
// ====================================================================


/* ---------------------------------------------------------------------
   {{CFG_DATA

   cdl_package CYGPKG_HAL_ARM_PID {
       display  "ARM PID evaluation board"
       type     radio
       parent   CYGPKG_HAL_ARM
       description "
           The pid HAL package provides the support needed to run
           eCos on an ARM PID eval board."
   }

   cdl_option CYGHWR_HAL_ARM_PID_ARM7 {
       display       "ARM PID evaluation board with ARM7 CPU"
       parent        CYGPKG_HAL_ARM_PID
       platform      pid
       type          radio
       description      "
            The PID board comes with an ARM7 CPU as standard."
   }

   cdl_option CYGHWR_HAL_ARM_PID_ARM7BE {
       display       "ARM PID evaluation board with ARM7 CPU (big-endian mode)"
       parent        CYGPKG_HAL_ARM_PID
       platform      pidBE
       type          radio
       description      "
            The PID board comes with an ARM7 CPU which can be operated in big-endian
            mode instead of little-endian mode."
   }

   cdl_option CYGHWR_HAL_ARM_PID_ARM9 {
       display       "ARM PID evaluation board with ARM9 CPU"
       parent        CYGPKG_HAL_ARM_PID
       platform      pid9
       type          radio
       description      "
            The PID board can be upgraded to use an ARM9 CPU. This
            option enables extra ARM9 compiler optimizations."
   }

   cdl_option CYGHWR_HAL_ARM_PID_STARTUP {
       display          "Startup type"
       parent           CYGPKG_HAL_ARM_PID
       type             enum
       legal_values     ram rom
       startup
       description      "
           When targetting the PID eval board it is possible to build
           the system for either RAM bootstrap or ROM bootstrap(s). Select
           'ram' when building programs to load into RAM using onboard
           debug software such as Angel or eCos GDB stubs.  Select 'rom'
           when building a stand-alone application which will be put
           into ROM."
   }
   
   }}CFG_DATA */

#define CYGHWR_HAL_ARM_PID_STARTUP       ram

/* ---------------------------------------------------------------------
   {{CFG_DATA
   cdl_option CYGHWR_HAL_ARM_PID_DIAG_PORT {
       display          "Diagnostic serial port"
       parent           CYGPKG_HAL_ARM_PID
       type             enum
       legal_values     0 1
       description      "
           The PID/7T board has two separate serial ports.  This option
           chooses which of these ports will be used."
   }
   
   }}CFG_DATA */
#define CYGHWR_HAL_ARM_PID_DIAG_PORT     0

/* ---------------------------------------------------------------------
   {{CFG_DATA
   cdl_option CYGHWR_HAL_ARM_PID_DIAG_BAUD {
       display          "Diagnostic serial port baud rate"
       parent           CYGPKG_HAL_ARM_PID
       type             enum
       legal_values     9600 19200 38400 115200
       description      "
           This option selects the baud rate used for the diagnostic port.
           Note: this should match the value chosen for the GDB port if the
           diagnostic and GDB port are the same."
   }
   
   }}CFG_DATA */
#define CYGHWR_HAL_ARM_PID_DIAG_BAUD     38400

/* ---------------------------------------------------------------------
   {{CFG_DATA
   cdl_option CYGHWR_HAL_ARM_PID_GDB_PORT {
       display          "GDB serial port"
       parent           CYGPKG_HAL_ARM_PID
       type             enum
       legal_values     0 1
       description      "
           The PID/7T board has two separate serial ports.  This option
           chooses which of these ports will be used to connect to a host
           running GDB."
   }
   
   }}CFG_DATA */
#define CYGHWR_HAL_ARM_PID_GDB_PORT     0

/* ---------------------------------------------------------------------
   {{CFG_DATA
   cdl_option CYGHWR_HAL_ARM_PID_GDB_BAUD {
       display          "GDB serial port baud rate"
       parent           CYGPKG_HAL_ARM_PID
       type             enum
       legal_values     9600 19200 38400 115200
       description      "
           This option controls the baud rate used for the GDB connection."
   }
   
   }}CFG_DATA */
#define CYGHWR_HAL_ARM_PID_GDB_BAUD     38400


/* ---------------------------------------------------------------------
   {{CFG_DATA
   cdl_option CYGHWR_HAL_ARM_PID_DIAG_LEDS {
       display          "Enable use of PPx LEDs"
       parent           CYGPKG_HAL_ARM_PID
       type             bool
       description      "
           The PID board has four LEDs labelled PP0-PP3. These can be
           controlled by eCos if jumpers 9-16 on LK11 are
           shorted. Note that this prevents the parallel port from
           being used. See the PID board manual for details.

           Enabling this option causes eCos to flash the LEDs during
           early board initialization. See vectors.S for
           details. Before calling cyg_start, PP0 is switched on,
           PP1-3 are switched off. The application code can use the
           function hal_diag_led() to control the LEDs after this
           point."
   }
   
   }}CFG_DATA */
#undef CYGHWR_HAL_ARM_PID_DIAG_LEDS

// Real-time clock/counter specifics

#define CYGNUM_HAL_RTC_NUMERATOR     1000000000
#define CYGNUM_HAL_RTC_DENOMINATOR   100
#define CYGNUM_HAL_RTC_PERIOD        12500

//---------------------------------------------------------------------------
// Platform information - descriptive only

#define HAL_PLATFORM_CPU    "ARM 7TDMI"
#define HAL_PLATFORM_BOARD  "ARM PID"
#define HAL_PLATFORM_EXTRA  ""

/* -------------------------------------------------------------------*/
#endif  /* CYGONCE_PKGCONF_HAL_ARM_PID_H */
/* EOF hal_arm_pid.h */
