]> rtime.felk.cvut.cz Git - CanFestival-3.git/blob - drivers/ecos_lpc2138_sja1000/lpc2138_pinout.h
ADDED LED to TESTMASTERSLAVE. It looks nice!
[CanFestival-3.git] / drivers / ecos_lpc2138_sja1000 / lpc2138_pinout.h
1 /*
2 This file is part of CanFestival, a library implementing CanOpen Stack.
3   ____    _    _   _
4  / ___|  / \  | \ | | ___  _ __   ___ _ __
5 | |     / _ \ |  \| |/ _ \| '_ \ / _ \ '_ \
6 | |___ / ___ \| |\  | (_) | |_) |  __/ | | |
7  \____/_/   \_\_| \_|\___/| .__/ \___|_| |_|
8                           |_|
9           ____                      _
10          / ___|__ _ _ __   __ _  __| | __ _
11         | |   / _` | '_ \ / _` |/ _` |/ _` |
12         | |__| (_| | | | | (_| | (_| | (_| |
13          \____\__,_|_| |_|\__,_|\__,_|\__,_|
14
15                    canfestival@canopencanada.ca
16 /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
17
18 See COPYING file for copyrights details.
19
20 This library is free software; you can redistribute it and/or
21 modify it under the terms of the GNU Lesser General Public
22 License as published by the Free Software Foundation; either
23 version 2.1 of the License, or (at your option) any later version.
24
25 This library is distributed in the hope that it will be useful,
26 but WITHOUT ANY WARRANTY; without even the implied warranty of
27 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
28 Lesser General Public License for more details.
29
30 You should have received a copy of the GNU Lesser General Public
31 License along with this library; if not, write to the Free Software
32 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
33 */
34
35 /**
36  * Définitions du brochage LPC2138 par défaut.
37  */
38 #if !defined(_LPC2138_PINOUT_H_)
39 #define _LPC2138_PINOUT_H_
40
41 #define LPC2138_uart0_tx                0 /* Pin 0 */
42 #define LPC2138_uart0_tx_PORT          P0
43 #define LPC2138_uart0_tx_SIZE           1
44
45 #define LPC2138_uart0_rx                1 /* Pin 1 */
46 #define LPC2138_uart0_rx_PORT          P0
47 #define LPC2138_uart0_rx_SIZE           1
48
49 #define LPC2138_cs_sja1000              4 /* Pin 4 */
50 #define LPC2138_cs_sja1000_PORT        P0
51 #define LPC2138_cs_sja1000_SIZE         1
52
53 #define LPC2138_cs_s1d13706             5 /* Pin 5 */
54 #define LPC2138_cs_s1d13706_PORT       P0
55 #define LPC2138_cs_s1d13706_SIZE        1
56
57 #define LPC2138_wait                    7 /* Pin 7 */
58 #define LPC2138_wait_PORT              P0
59 #define LPC2138_wait_SIZE               1
60
61 #define LPC2138_uart1_tx                8 /* Pin 8 */
62 #define LPC2138_uart1_tx_PORT          P0
63 #define LPC2138_uart1_tx_SIZE           1
64
65 #define LPC2138_uart1_rx                9 /* Pin 9 */
66 #define LPC2138_uart1_rx_PORT          P0
67 #define LPC2138_uart1_rx_SIZE           1
68
69 #define LPC2138_bhe                    10 /* Pin 10 */
70 #define LPC2138_bhe_PORT               P0
71 #define LPC2138_bhe_SIZE                1
72
73 #define LPC2138_a17_mr                 12 /* Pin 12 */
74 #define LPC2138_a17_mr_PORT            P0
75 #define LPC2138_a17_mr_SIZE             1
76
77 #define LPC2138_a16                    13 /* Pin 13 */
78 #define LPC2138_a16_PORT               P0
79 #define LPC2138_a16_SIZE                1
80
81 #define LPC2138_interrupt_sja1000      14 /* Pin 14 */
82 #define LPC2138_interrupt_sja1000_PORT P0
83 #define LPC2138_interrupt_sja1000_SIZE  1
84
85 #define LPC2138_data                   16 /* Pins 16-23 */
86 #define LPC2138_data_PORT              P0
87 #define LPC2138_data_SIZE               8
88
89 #define LPC2138_dac0                   25 /* Pin 25 */
90 #define LPC2138_dac0_PORT              P0
91 #define LPC2138_dac0_SIZE               1
92
93 #define LPC2138_ale                    26 /* Pin 26 */
94 #define LPC2138_ale_PORT               P0
95 #define LPC2138_ale_SIZE                1
96
97 #define LPC2138_redled                 27 /* Pin 27 */
98 #define LPC2138_redled_PORT            P0
99 #define LPC2138_redled_SIZE             1
100
101 #define LPC2138_greenled               28 /* Pin 28 */
102 #define LPC2138_greenled_PORT          P0
103 #define LPC2138_greenled_SIZE           1
104
105 #define LPC2138_rd                     29 /* Pin 29 */
106 #define LPC2138_rd_PORT                P0
107 #define LPC2138_rd_SIZE                 1
108
109 #define LPC2138_wr                     30 /* Pin 30 */
110 #define LPC2138_wr_PORT                P0
111 #define LPC2138_wr_SIZE                 1
112
113 #define LPC2138_a0_a15                 16 /* Pins 16-31 */
114 #define LPC2138_a0_a15_PORT            P1
115 #define LPC2138_a0_a15_SIZE            16
116
117 #define LPC2138_addresses_SIZE         18
118
119 #endif