]> git.gir.st - tmk_keyboard.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PeripheralPins.c
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[tmk_keyboard.git] / tool / mbed / mbed-sdk / libraries / mbed / targets / hal / TARGET_Freescale / TARGET_KPSDK_MCUS / TARGET_MCU_K64F / TARGET_FRDM / PeripheralPins.c
1 /* mbed Microcontroller Library
2 * Copyright (c) 2006-2013 ARM Limited
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #include "PeripheralPins.h"
18
19 /************RTC***************/
20 const PinMap PinMap_RTC[] = {
21 {NC, OSC32KCLK, 0},
22 };
23
24 /************ADC***************/
25 const PinMap PinMap_ADC[] = {
26 {PTC2, ADC0_SE4b, 0},
27 {PTC8, ADC1_SE4b, 0},
28 {PTC9, ADC1_SE5b, 0},
29 {PTD1, ADC0_SE5b, 0},
30 {PTC10, ADC1_SE6b, 0},
31 {PTD5, ADC0_SE6b, 0},
32 {PTC11, ADC1_SE7b, 0},
33 {PTD6, ADC0_SE7b, 0},
34 {PTB0 , ADC0_SE8 , 0},
35 {PTB1 , ADC0_SE9 , 0},
36 {PTB2 , ADC0_SE12, 0},
37 {PTB3 , ADC0_SE13, 0},
38 {PTC0 , ADC0_SE14, 0},
39 {PTB10, ADC1_SE14, 0},
40 {PTB11, ADC1_SE15, 0},
41 {PTC1 , ADC0_SE15, 0},
42 {PTA17, ADC1_SE17, 0},
43 //{PTE24, ADC0_SE17, 0}, //I2C pull up
44 //{PTE25, ADC0_SE18, 0}, //I2C pull up
45 {NC , NC , 0}
46 };
47
48 /************DAC***************/
49 const PinMap PinMap_DAC[] = {
50 {DAC0_OUT, DAC_0, 0},
51 {NC , NC , 0}
52 };
53
54 /************I2C***************/
55 const PinMap PinMap_I2C_SDA[] = {
56 {PTE25, I2C_0, 5},
57 {PTB1 , I2C_0, 2},
58 {PTB3 , I2C_0, 2},
59 {PTC11, I2C_1, 2},
60 {PTA13, I2C_2, 5},
61 {PTD3 , I2C_0, 7},
62 {PTE0 , I2C_1, 6},
63 {NC , NC , 0}
64 };
65
66 const PinMap PinMap_I2C_SCL[] = {
67 {PTE24, I2C_0, 5},
68 {PTB0 , I2C_0, 2},
69 {PTB2 , I2C_0, 2},
70 {PTC10, I2C_1, 2},
71 {PTA12, I2C_2, 5},
72 {PTA14, I2C_2, 5},
73 {PTD2 , I2C_0, 7},
74 {PTE1 , I2C_1, 6},
75 {NC , NC , 0}
76 };
77
78 /************UART***************/
79 const PinMap PinMap_UART_TX[] = {
80 {PTB17, UART_0, 3},
81 {PTC17, UART_3, 3},
82 {PTD7 , UART_0, 3},
83 {PTD3 , UART_2, 3},
84 {PTC4 , UART_1, 3},
85 {PTC15, UART_4, 3},
86 {PTB11, UART_3, 3},
87 {PTA14, UART_0, 3},
88 {PTE24, UART_4, 3},
89 {PTE4 , UART_3, 3},
90 {PTE0, UART_1, 3},
91 {NC , NC , 0}
92 };
93
94 const PinMap PinMap_UART_RX[] = {
95 {PTB16, UART_0, 3},
96 {PTE1 , UART_1, 3},
97 {PTE5 , UART_3, 3},
98 {PTE25, UART_4, 3},
99 {PTA15, UART_0, 3},
100 {PTC16, UART_3, 3},
101 {PTB10, UART_3, 3},
102 {PTC3 , UART_1, 3},
103 {PTC14, UART_4, 3},
104 {PTD2 , UART_2, 3},
105 {PTC6 , UART_0, 3},
106 {NC , NC , 0}
107 };
108
109 /************SPI***************/
110 const PinMap PinMap_SPI_SCLK[] = {
111 {PTD1 , SPI_0, 2},
112 {PTE2 , SPI_1, 2},
113 {PTA15, SPI_0, 2},
114 {PTB11, SPI_1, 2},
115 {PTB21, SPI_2, 2},
116 {PTC5 , SPI_0, 2},
117 {PTD5 , SPI_1, 7},
118 {NC , NC , 0}
119 };
120
121 const PinMap PinMap_SPI_MOSI[] = {
122 {PTD2 , SPI_0, 2},
123 {PTE1 , SPI_1, 2},
124 {PTE3 , SPI_1, 7},
125 {PTA16, SPI_0, 2},
126 {PTB16, SPI_1, 2},
127 {PTB22, SPI_2, 2},
128 {PTC6 , SPI_0, 2},
129 {PTD6 , SPI_1, 7},
130 {NC , NC , 0}
131 };
132
133 const PinMap PinMap_SPI_MISO[] = {
134 {PTD3 , SPI_0, 2},
135 {PTE1 , SPI_1, 7},
136 {PTE3 , SPI_1, 2},
137 {PTA17, SPI_0, 2},
138 {PTB17, SPI_1, 2},
139 {PTB23, SPI_2, 2},
140 {PTC7 , SPI_0, 2},
141 {PTD7 , SPI_1, 7},
142 {NC , NC , 0}
143 };
144
145 const PinMap PinMap_SPI_SSEL[] = {
146 {PTD0 , SPI_0, 2},
147 {PTE4 , SPI_1, 2},
148 {PTA14, SPI_0, 2},
149 {PTB10, SPI_1, 2},
150 {PTB20, SPI_2, 2},
151 {PTC4 , SPI_0, 2},
152 {PTD4 , SPI_1, 7},
153 {NC , NC , 0}
154 };
155
156 /************PWM***************/
157 const PinMap PinMap_PWM[] = {
158 {PTA0 , PWM_6 , 3},
159 {PTA1 , PWM_7 , 3},
160 {PTA2 , PWM_8 , 3},
161 {PTA3 , PWM_1 , 3},
162 {PTA4 , PWM_2 , 3},
163 {PTA5 , PWM_3 , 3},
164 {PTA6 , PWM_4 , 3},
165 {PTA7 , PWM_5 , 3},
166 {PTA8 , PWM_9 , 3},
167 {PTA9 , PWM_10, 3},
168 {PTA10, PWM_17, 3},
169 {PTA11, PWM_18, 3},
170 {PTA12, PWM_9 , 3},
171 {PTA13, PWM_10, 3},
172
173 {PTB0 , PWM_9 , 3},
174 {PTB1 , PWM_10, 3},
175 {PTB18, PWM_17, 3},
176 {PTB19, PWM_18, 3},
177
178 {PTC1 , PWM_1 , 4},
179 {PTC2 , PWM_2 , 4},
180 {PTC3 , PWM_3 , 4},
181 {PTC4 , PWM_4 , 4},
182 {PTC5 , PWM_3 , 7},
183 {PTC8 , PWM_29, 3},
184 {PTC9 , PWM_30, 3},
185 {PTC10, PWM_31, 3},
186 {PTC11, PWM_32, 3},
187
188 {PTD0 , PWM_25, 4},
189 {PTD1 , PWM_26, 4},
190 {PTD2 , PWM_27, 4},
191 {PTD3 , PWM_28, 4},
192 {PTD4 , PWM_5 , 4},
193 {PTD5 , PWM_6 , 4},
194 {PTD6 , PWM_7 , 4},
195 {PTD4 , PWM_5 , 4},
196 {PTD7 , PWM_8 , 4},
197
198 {PTE5 , PWM_25, 6},
199 {PTE6 , PWM_26, 6},
200
201 {NC , NC , 0}
202 };
Imprint / Impressum