]> git.donarmstrong.com Git - qmk_firmware.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PeripheralPins.c
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[qmk_firmware.git] / tool / mbed / mbed-sdk / libraries / mbed / targets / hal / TARGET_Freescale / TARGET_KPSDK_MCUS / TARGET_MCU_K64F / TARGET_MTS_GAMBIT / 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 /************I2C***************/
25 const PinMap PinMap_I2C_SDA[] = {
26     {PTE25, I2C_0, 5},
27     {PTB1 , I2C_0, 2},
28     {PTB3 , I2C_0, 2},
29     {PTC11, I2C_1, 2},
30     {PTD3 , I2C_0, 7},
31     {PTE0 , I2C_1, 6},
32     {NC   , NC   , 0}
33 };
34
35 const PinMap PinMap_I2C_SCL[] = {
36     {PTE24, I2C_0, 5},
37     {PTB0 , I2C_0, 2},
38     {PTB2 , I2C_0, 2},
39     {PTC10, I2C_1, 2},
40     {PTD2 , I2C_0, 7},
41     {PTE1 , I2C_1, 6},
42     {NC   , NC   , 0}
43 };
44
45 /************UART***************/
46 const PinMap PinMap_UART_TX[] = {
47     {PTB17, UART_0, 3},
48     {PTC17, UART_3, 3},
49     {PTD7 , UART_0, 3},
50     {PTD3 , UART_2, 3},
51     {PTB11, UART_3, 3},
52     {PTA14, UART_0, 3},
53     {PTE4 , UART_3, 3},
54     {PTE8 , UART_5, 3},
55     {NC  ,  NC    , 0}
56 };
57
58 const PinMap PinMap_UART_RX[] = {
59     {PTB16, UART_0, 3},
60     {PTE5 , UART_3, 3},
61     {PTA15, UART_0, 3},
62     {PTC16, UART_3, 3},
63     {PTB10, UART_3, 3},
64     {PTD2 , UART_2, 3},
65     {PTC6 , UART_0, 3},
66     {PTE9 , UART_5, 3},
67     {NC  ,  NC    , 0}
68 };
69
70 /************SPI***************/
71 const PinMap PinMap_SPI_SCLK[] = {
72     {PTD1 , SPI_0, 2},
73     {PTE2 , SPI_1, 2},
74     {PTA15, SPI_0, 2},
75     {PTB11, SPI_1, 2},
76     {PTC5 , SPI_0, 2},
77     {PTD5 , SPI_1, 7},
78     {NC   , NC   , 0}
79 };
80
81 const PinMap PinMap_SPI_MOSI[] = {
82     {PTD2 , SPI_0, 2},
83     {PTE1 , SPI_1, 2},
84     {PTE3 , SPI_1, 7},
85     {PTA16, SPI_0, 2},
86     {PTB16, SPI_1, 2},
87     {PTC6 , SPI_0, 2},
88     {PTD6 , SPI_1, 7},
89     {NC   , NC   , 0}
90 };
91
92 const PinMap PinMap_SPI_MISO[] = {
93     {PTD3 , SPI_0, 2},
94     {PTE1 , SPI_1, 7},
95     {PTE3 , SPI_1, 2},
96     {PTA17, SPI_0, 2},
97     {PTB17, SPI_1, 2},
98     {PTC7 , SPI_0, 2},
99     {PTD7 , SPI_1, 7},
100     {NC   , NC   , 0}
101 };
102
103 const PinMap PinMap_SPI_SSEL[] = {
104     {PTD0 , SPI_0, 2},
105     {PTE4 , SPI_1, 2},
106     {PTA14, SPI_0, 2},
107     {PTB10, SPI_1, 2},
108     {PTC4 , SPI_0, 2},
109     {PTD4 , SPI_1, 7},
110     {NC   , NC   , 0}
111 };
112