2 /* mbed Microcontroller Library
3 * Copyright (c) 2006-2015 ARM Limited
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #include "PeripheralPins.h"
20 /************ADC***************/
21 const PinMap PinMap_ADC[] = {
39 /************DAC***************/
40 const PinMap PinMap_DAC[] = {
45 /************I2C***************/
46 const PinMap PinMap_I2C_SDA[] = {
54 const PinMap PinMap_I2C_SCL[] = {
62 /************UART***************/
63 const PinMap PinMap_UART_TX[] = {
72 const PinMap PinMap_UART_RX[] = {
81 /************SPI***************/
82 const PinMap PinMap_SPI_SCLK[] = { // SCK
88 const PinMap PinMap_SPI_MOSI[] = { // DOUT
94 const PinMap PinMap_SPI_MISO[] = { // DIN
100 const PinMap PinMap_SPI_SSEL[] = { // CS
112 /************PWM***************/
113 const PinMap PinMap_PWM[] = {
115 {LED_RED , PWM_3 , 4}, // PTC3, FTM0 CH2
116 {LED_GREEN, PWM_5, 4}, // PTD4, FTM0 CH4
117 {LED_BLUE , PWM_8 , 3}, // PTA2, FTM0 CH7
119 {PTA0, PWM_6 , 3}, // PTA0, FTM0 CH5
120 {PTA1, PWM_7 , 3}, // PTA1, FTM0 CH6
121 {PTA3, PWM_1 , 3}, // PTA3, FTM0 CH0
122 {PTA4, PWM_2 , 3}, // PTA4, FTM0 CH1
123 {PTA5, PWM_3 , 3}, // PTA5, FTM0 CH2
124 {PTA12, PWM_9 , 3}, // PTA12, FTM1 CH0
125 {PTA13, PWM_10, 3}, // PTA13, FTM1 CH1
126 {PTB0, PWM_9 , 3}, // PTB0, FTM1 CH0
127 {PTB1, PWM_10, 3}, // PTB1, FTM1 CH1
128 {PTC1, PWM_1 , 4}, // PTC1, FTM0 CH0
129 {PTC2, PWM_2 , 4}, // PTC2, FTM0 CH1
130 {PTC3, PWM_3 , 4}, // PTC3, FTM0 CH2
131 {PTD4, PWM_4 , 4}, // PTD4, FTM0 CH3
132 {PTD5, PWM_6 , 4}, // PTD5, FTM0 CH6
133 {PTD6, PWM_7 , 4}, // PTD6, FTM0 CH6
134 {PTD7, PWM_8 , 4}, // PTD7, FTM0 CH7