]> git.gir.st - tmk_keyboard.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PeripheralPins.c
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[tmk_keyboard.git] / tool / mbed / mbed-sdk / libraries / mbed / targets / hal / TARGET_Freescale / TARGET_KLXX / TARGET_KL05Z / 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 {PTA0, ADC0_SE12, 0},
27 {PTA7, ADC0_SE7, 0},
28 {PTA8, ADC0_SE3, 0},
29 {PTA9, ADC0_SE2, 0},
30 {PTA12, ADC0_SE0, 0},
31
32 {PTB0, ADC0_SE6, 0},
33 {PTB1, ADC0_SE5, 0},
34 {PTB2, ADC0_SE4, 0},
35 {PTB5, ADC0_SE1, 0},
36 {PTB8, ADC0_SE11, 0},
37 {PTB9, ADC0_SE10, 0},
38 {PTB10, ADC0_SE9, 0},
39 {PTB11, ADC0_SE8, 0},
40 {PTB13, ADC0_SE13, 0},
41 {NC, NC, 0}
42 };
43
44 /************DAC***************/
45 const PinMap PinMap_DAC[] = {
46 {PTB1, DAC_0, 0},
47 {NC , NC , 0}
48 };
49
50 /************I2C***************/
51 const PinMap PinMap_I2C_SDA[] = {
52 {PTA3, I2C_0, 3},
53 {PTA4, I2C_0, 2},
54 {PTB4, I2C_0, 2},
55 {NC , NC , 0}
56 };
57
58 const PinMap PinMap_I2C_SCL[] = {
59 {PTA3, I2C_0, 2},
60 {PTA4, I2C_0, 3},
61 {PTB3, I2C_0, 2},
62 {NC , NC , 0}
63 };
64 /************UART***************/
65 const PinMap PinMap_UART_TX[] = {
66 {PTB1, UART_0, 2},
67 {PTB2, UART_0, 3},
68 {PTB3, UART_0, 3},
69 {NC , NC , 0}
70 };
71
72 const PinMap PinMap_UART_RX[] = {
73 {PTB1, UART_0, 3},
74 {PTB2, UART_0, 2},
75 {PTB4, UART_0, 3},
76 {NC , NC , 0}
77 };
78
79 /************SPI***************/
80 const PinMap PinMap_SPI_SCLK[] = {
81 {PTB0, SPI_0, 3},
82 {PTB17, SPI_0, 3},
83 {NC , NC , 0}
84 };
85
86 const PinMap PinMap_SPI_MOSI[] = {
87 {PTA7 , SPI_0, 3},
88 {PTB15, SPI_0, 2},
89 {PTB16, SPI_0, 3},
90 {NC , NC , 0}
91 };
92
93 const PinMap PinMap_SPI_MISO[] = {
94 {PTA6 , SPI_0, 3},
95 {PTA7 , SPI_0, 2},
96 {PTB15, SPI_0, 3},
97 {PTB16, SPI_0, 2},
98 {NC , NC , 0}
99 };
100
101 const PinMap PinMap_SPI_SSEL[] = {
102 {PTA5 , SPI_0, 3},
103 {PTA19, SPI_0, 3},
104 {NC , NC , 0}
105 };
106
107 /************PWM***************/
108 const PinMap PinMap_PWM[] = {
109 {PTA0, PWM_7, 2}, // PTA0 , TPM1 CH0
110 {PTA5, PWM_6 , 2}, // PTA5 , TPM0 CH5
111 {PTA6, PWM_5, 2}, // PTA6 , TPM0 CH4
112 {PTA12, PWM_7 , 2}, // PTA12, TPM1 CH0
113
114 {PTB5, PWM_8, 2}, // PTB5 , TPM1 CH1
115 {PTB6, PWM_4, 2}, // PTB6 , TPM0 CH3
116 {PTB7, PWM_3, 2}, // PTB7 , TPM0 CH2
117 {PTB8, PWM_4, 2}, // PTB8 , TPM0 CH3
118 {PTB9, PWM_3, 2}, // PTB9 , TPM0 CH2
119 {PTB10, PWM_2, 2}, // PTB10 , TPM0 CH1
120 {PTB11, PWM_1, 2}, // PTB11 , TPM0 CH0
121 {PTB13, PWM_8, 2}, // PTB13 , TPM1 CH1
122 {NC , NC, 0}
123 };
Imprint / Impressum