1 #ifndef CYGONCE_HAL_PLF_IO_H
2 #define CYGONCE_HAL_PLF_IO_H
3 //=============================================================================
7 // EB40A board specific registers
9 //=============================================================================
10 //####ECOSGPLCOPYRIGHTBEGIN####
11 // -------------------------------------------
12 // This file is part of eCos, the Embedded Configurable Operating System.
13 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
15 // eCos is free software; you can redistribute it and/or modify it under
16 // the terms of the GNU General Public License as published by the Free
17 // Software Foundation; either version 2 or (at your option) any later version.
19 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
20 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24 // You should have received a copy of the GNU General Public License along
25 // with eCos; if not, write to the Free Software Foundation, Inc.,
26 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
28 // As a special exception, if other files instantiate templates or use macros
29 // or inline functions from this file, or you compile this file and link it
30 // with other works to produce a work based on this file, this file does not
31 // by itself cause the resulting work to be covered by the GNU General Public
32 // License. However the source code for this file must still be made available
33 // in accordance with section (3) of the GNU General Public License.
35 // This exception does not invalidate any other reasons why a work based on
36 // this file might be covered by the GNU General Public License.
38 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
39 // at http://sources.redhat.com/ecos/ecos-license/
40 // -------------------------------------------
41 //####ECOSGPLCOPYRIGHTEND####
42 //=============================================================================
43 //#####DESCRIPTIONBEGIN####
45 // Author(s): tkoeller
46 // Contributors: tdrury
48 // Purpose: Atmel EB40A board specific registers
50 // Usage: #include <cyg/hal/plf_io.h>
52 //####DESCRIPTIONEND####
54 //=============================================================================
56 // these io pins are for the LEDs.
57 #define EB40A_LED1 0x00000008
58 #define EB40A_LED2 0x00000010
59 #define EB40A_LED3 0x00000020
60 #define EB40A_LED4 0x00000040
61 // these PIOs double as TCLK1, TIOA1, TIOB1, TCLK2 respectively.
62 #define EB40A_LED5 0x00010000
63 #define EB40A_LED6 0x00020000
64 #define EB40A_LED7 0x00040000
65 #define EB40A_LED8 0x00080000
67 #define EB40A_LED_ALL 0x00f00078
69 // Push buttons. Note that these are connected to interrupt lines.
70 #define EB40A_SW1 0x00001000
71 #define EB40A_SW2 0x00000100
72 #define EB40A_SW3 0x00000002
73 #define EB40A_SW4 0x00000004
75 // Push buttons. Note that these are connected to interrupt lines.
76 #define EB40A_SW1 0x00001000
77 #define EB40A_SW2 0x00000100
78 #define EB40A_SW3 0x00000002
79 #define EB40A_SW4 0x00000004
81 //-----------------------------------------------------------------------------
83 #endif // CYGONCE_HAL_PLF_IO_H