plf_stub.h

Go to the documentation of this file.
00001 #ifndef CYGONCE_HAL_PLF_STUB_H
00002 #define CYGONCE_HAL_PLF_STUB_H
00003 //=============================================================================
00004 //
00005 //      plf_stub.h
00006 //
00007 //      Platform header for GDB stub support.
00008 //
00009 //=============================================================================
00010 //####ECOSGPLCOPYRIGHTBEGIN####
00011 // -------------------------------------------
00012 // This file is part of eCos, the Embedded Configurable Operating System.
00013 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
00014 //
00015 // eCos is free software; you can redistribute it and/or modify it under
00016 // the terms of the GNU General Public License as published by the Free
00017 // Software Foundation; either version 2 or (at your option) any later version.
00018 //
00019 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
00020 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
00021 // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00022 // for more details.
00023 //
00024 // You should have received a copy of the GNU General Public License along
00025 // with eCos; if not, write to the Free Software Foundation, Inc.,
00026 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00027 //
00028 // As a special exception, if other files instantiate templates or use macros
00029 // or inline functions from this file, or you compile this file and link it
00030 // with other works to produce a work based on this file, this file does not
00031 // by itself cause the resulting work to be covered by the GNU General Public
00032 // License. However the source code for this file must still be made available
00033 // in accordance with section (3) of the GNU General Public License.
00034 //
00035 // This exception does not invalidate any other reasons why a work based on
00036 // this file might be covered by the GNU General Public License.
00037 //
00038 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
00039 // at http://sources.redhat.com/ecos/ecos-license/
00040 // -------------------------------------------
00041 //####ECOSGPLCOPYRIGHTEND####
00042 //=============================================================================
00043 //#####DESCRIPTIONBEGIN####
00044 //
00045 // Author(s):   jskov
00046 // Contributors:jskov
00047 // Date:        1999-05-18
00048 // Purpose:     Platform HAL stub support for H8S simulator
00049 // Usage:       #include <cyg/hal/plf_stub.h>
00050 //              
00051 //####DESCRIPTIONEND####
00052 //
00053 //=============================================================================
00054 
00055 
00056 //=============================================================================
00057 //                            DOXYGEN FILE HEADER
00064 //=============================================================================
00065 
00066 
00067 //=============================================================================
00068 //                             INCLUDES
00069 //=============================================================================
00070 #include <pkgconf/hal.h>
00071 
00072 
00073 //
00074 // The following option causes a set of GDB stubs to be included into the system. 
00075 // On some target systems the GDB support will be provided by other means, 
00076 // for example by a ROM monitor. On other targets, especially when building 
00077 // a ROM-booting system, the necessary support has to go into the target library 
00078 // itself. When GDB stubs are include in a configuration, HAL serial drivers 
00079 // must also be included.
00080 //
00081 #ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
00082 
00083 #include <cyg/infra/cyg_type.h>         // CYG_UNUSED_PARAM, externC
00084 #include <cyg/hal/h8s_stub.h>           // architecture stub support
00085 #include <cyg/hal/hal_diag.h>           // hal_diag_led_on
00086 
00087 
00088 //=============================================================================
00089 //                        INITIALIZE HAL SERIAL DRIVER
00090 // DESCRIPTION:
00091 //     Define some platform specific communication details. This is mostly
00092 //     handled by hal_if now, but we need to make sure the comms tables are
00093 //     properly initialized. 
00094 //=============================================================================
00095 externC void cyg_hal_plf_comms_init(void);
00096 #define HAL_STUB_PLATFORM_INIT_SERIAL()       cyg_hal_plf_comms_init()
00097 
00098 #define HAL_STUB_PLATFORM_SET_BAUD_RATE(baud) CYG_UNUSED_PARAM(int, (baud))
00099 #define HAL_STUB_PLATFORM_INTERRUPTIBLE       0
00100 
00101 
00102 //=============================================================================
00103 //                            STUB INITIALIZER
00104 // DESCRIPTION:
00105 //     Nothing to do here. We already initialized serial channels.
00106 //=============================================================================
00107 #define HAL_STUB_PLATFORM_INIT()              CYG_EMPTY_STATEMENT
00108 
00109 #endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
00110 
00111 //-----------------------------------------------------------------------------
00112 #endif // CYGONCE_HAL_PLF_STUB_H
00113 // End of plf_stub.h

Generated on Tue Feb 17 09:06:13 2004 for eCos EDOSK-2674 HAL by doxygen 1.3.5