1 | /* SPDX-License-Identifier: BSD-2-Clause */ |
---|
2 | |
---|
3 | /** |
---|
4 | * @file |
---|
5 | * |
---|
6 | * @ingroup RTEMSBSPsARMLPC24XX |
---|
7 | * |
---|
8 | * @brief BSP start pin selection configuration. |
---|
9 | */ |
---|
10 | |
---|
11 | /* |
---|
12 | * Copyright (c) 2011, 2019 embedded brains GmbH. All rights reserved. |
---|
13 | * |
---|
14 | * Redistribution and use in source and binary forms, with or without |
---|
15 | * modification, are permitted provided that the following conditions |
---|
16 | * are met: |
---|
17 | * 1. Redistributions of source code must retain the above copyright |
---|
18 | * notice, this list of conditions and the following disclaimer. |
---|
19 | * 2. Redistributions in binary form must reproduce the above copyright |
---|
20 | * notice, this list of conditions and the following disclaimer in the |
---|
21 | * documentation and/or other materials provided with the distribution. |
---|
22 | * |
---|
23 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
---|
24 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
25 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
26 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
---|
27 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
---|
28 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
---|
29 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
---|
30 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
---|
31 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
---|
32 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
---|
33 | * POSSIBILITY OF SUCH DAMAGE. |
---|
34 | */ |
---|
35 | |
---|
36 | #include <bsp/start-config.h> |
---|
37 | |
---|
38 | BSP_START_DATA_SECTION const lpc24xx_pin_range |
---|
39 | lpc24xx_start_config_pinsel [] = { |
---|
40 | #if defined(LPC24XX_EMC_MT48LC4M16A2) \ |
---|
41 | && (defined(LPC24XX_EMC_M29W160E) || defined(LPC24XX_EMC_SST39VF3201)) |
---|
42 | #if defined(LPC24XX_EMC_M29W160E) |
---|
43 | LPC24XX_PIN_EMC_A_0_20, |
---|
44 | #elif defined(LPC24XX_EMC_SST39VF3201) |
---|
45 | LPC24XX_PIN_EMC_A_0_21, |
---|
46 | #endif |
---|
47 | LPC24XX_PIN_EMC_D_0_15, |
---|
48 | LPC24XX_PIN_EMC_RAS, |
---|
49 | LPC24XX_PIN_EMC_CAS, |
---|
50 | LPC24XX_PIN_EMC_WE, |
---|
51 | LPC24XX_PIN_EMC_DYCS_0, |
---|
52 | LPC24XX_PIN_EMC_CLK_0, |
---|
53 | LPC24XX_PIN_EMC_CKE_0, |
---|
54 | LPC24XX_PIN_EMC_DQM_0, |
---|
55 | LPC24XX_PIN_EMC_DQM_1, |
---|
56 | LPC24XX_PIN_EMC_OE, |
---|
57 | LPC24XX_PIN_EMC_CS_1, |
---|
58 | #endif |
---|
59 | #if (defined(LPC24XX_EMC_IS42S32800D7) || defined(LPC24XX_EMC_W9825G2JB75I)) \ |
---|
60 | && (defined(LPC24XX_EMC_M29W320E70) || defined(LPC24XX_EMC_SST39VF3201)) |
---|
61 | LPC24XX_PIN_EMC_A_0_22, |
---|
62 | LPC24XX_PIN_EMC_D_0_31, |
---|
63 | LPC24XX_PIN_EMC_RAS, |
---|
64 | LPC24XX_PIN_EMC_CAS, |
---|
65 | LPC24XX_PIN_EMC_WE, |
---|
66 | LPC24XX_PIN_EMC_DYCS_0, |
---|
67 | LPC24XX_PIN_EMC_CLK_0, |
---|
68 | LPC24XX_PIN_EMC_CKE_0, |
---|
69 | LPC24XX_PIN_EMC_DQM_0, |
---|
70 | LPC24XX_PIN_EMC_DQM_1, |
---|
71 | LPC24XX_PIN_EMC_DQM_2, |
---|
72 | LPC24XX_PIN_EMC_DQM_3, |
---|
73 | LPC24XX_PIN_EMC_OE, |
---|
74 | LPC24XX_PIN_EMC_CS_0, |
---|
75 | #endif |
---|
76 | #if defined(LPC24XX_EMC_IS42S32800B) |
---|
77 | LPC24XX_PIN_EMC_A_0_14, |
---|
78 | LPC24XX_PIN_EMC_D_0_31, |
---|
79 | LPC24XX_PIN_EMC_RAS, |
---|
80 | LPC24XX_PIN_EMC_CAS, |
---|
81 | LPC24XX_PIN_EMC_WE, |
---|
82 | LPC24XX_PIN_EMC_DYCS_0, |
---|
83 | LPC24XX_PIN_EMC_CLK_0, |
---|
84 | LPC24XX_PIN_EMC_CKE_0, |
---|
85 | LPC24XX_PIN_EMC_DQM_0, |
---|
86 | LPC24XX_PIN_EMC_DQM_1, |
---|
87 | LPC24XX_PIN_EMC_DQM_2, |
---|
88 | LPC24XX_PIN_EMC_DQM_3, |
---|
89 | #endif |
---|
90 | LPC24XX_PIN_TERMINAL |
---|
91 | }; |
---|