mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
AnnaBridge
Date:
Fri Feb 16 16:09:33 2018 +0000
Revision:
181:57724642e740
Parent:
149:156823d33999
mbed-dev library. Release version 159.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 144:ef7eb2e8f9f7 1
<> 144:ef7eb2e8f9f7 2 /* mbed Microcontroller Library
<> 144:ef7eb2e8f9f7 3 * Copyright (c) 2006-2013 ARM Limited
<> 144:ef7eb2e8f9f7 4 *
<> 144:ef7eb2e8f9f7 5 * Licensed under the Apache License, Version 2.0 (the "License");
<> 144:ef7eb2e8f9f7 6 * you may not use this file except in compliance with the License.
<> 144:ef7eb2e8f9f7 7 * You may obtain a copy of the License at
<> 144:ef7eb2e8f9f7 8 *
<> 144:ef7eb2e8f9f7 9 * http://www.apache.org/licenses/LICENSE-2.0
<> 144:ef7eb2e8f9f7 10 *
<> 144:ef7eb2e8f9f7 11 * Unless required by applicable law or agreed to in writing, software
<> 144:ef7eb2e8f9f7 12 * distributed under the License is distributed on an "AS IS" BASIS,
<> 144:ef7eb2e8f9f7 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 144:ef7eb2e8f9f7 14 * See the License for the specific language governing permissions and
<> 144:ef7eb2e8f9f7 15 * limitations under the License.
<> 144:ef7eb2e8f9f7 16 */
<> 144:ef7eb2e8f9f7 17
<> 144:ef7eb2e8f9f7 18 #include "PeripheralPins.h"
<> 144:ef7eb2e8f9f7 19
<> 144:ef7eb2e8f9f7 20 /************ADC***************/
<> 144:ef7eb2e8f9f7 21 const PinMap PinMap_ADC[] = {
<> 144:ef7eb2e8f9f7 22 {P0_11, ADC0_0, 0x02},
<> 144:ef7eb2e8f9f7 23 {P0_12, ADC0_1, 0x02},
<> 144:ef7eb2e8f9f7 24 {P0_13, ADC0_2, 0x02},
<> 144:ef7eb2e8f9f7 25 {P0_14, ADC0_3, 0x02},
<> 144:ef7eb2e8f9f7 26 {P0_15, ADC0_4, 0x02},
<> 144:ef7eb2e8f9f7 27 {P0_16, ADC0_5, 0x01},
<> 144:ef7eb2e8f9f7 28 {P0_22, ADC0_6, 0x01},
<> 144:ef7eb2e8f9f7 29 {P0_23, ADC0_7, 0x01},
<> 144:ef7eb2e8f9f7 30 {NC , NC , 0 }
<> 144:ef7eb2e8f9f7 31 };
<> 144:ef7eb2e8f9f7 32
<> 144:ef7eb2e8f9f7 33 /************I2C***************/
<> 144:ef7eb2e8f9f7 34 const PinMap PinMap_I2C_SDA[] = {
<> 144:ef7eb2e8f9f7 35 {P0_5, I2C_0, 1},
<> 144:ef7eb2e8f9f7 36 {NC , NC , 0}
<> 144:ef7eb2e8f9f7 37 };
<> 144:ef7eb2e8f9f7 38
<> 144:ef7eb2e8f9f7 39 const PinMap PinMap_I2C_SCL[] = {
<> 144:ef7eb2e8f9f7 40 {P0_4, I2C_0, 1},
<> 144:ef7eb2e8f9f7 41 {NC , NC, 0}
<> 144:ef7eb2e8f9f7 42 };
<> 144:ef7eb2e8f9f7 43
<> 144:ef7eb2e8f9f7 44 /************UART***************/
<> 144:ef7eb2e8f9f7 45 const PinMap PinMap_UART_TX[] = {
<> 144:ef7eb2e8f9f7 46 {P0_19, UART_0, 1},
<> 144:ef7eb2e8f9f7 47 { NC , NC , 0}
<> 144:ef7eb2e8f9f7 48 };
<> 144:ef7eb2e8f9f7 49
<> 144:ef7eb2e8f9f7 50 const PinMap PinMap_UART_RX[] = {
<> 144:ef7eb2e8f9f7 51 {P0_18, UART_0, 1},
<> 144:ef7eb2e8f9f7 52 {NC , NC , 0}
<> 144:ef7eb2e8f9f7 53 };
<> 144:ef7eb2e8f9f7 54
<> 144:ef7eb2e8f9f7 55 /************SPI***************/
<> 144:ef7eb2e8f9f7 56 const PinMap PinMap_SPI_SCLK[] = {
<> 144:ef7eb2e8f9f7 57 {P0_6 , SPI_0, 0x02},
<> 144:ef7eb2e8f9f7 58 {P0_10, SPI_0, 0x02},
<> 144:ef7eb2e8f9f7 59 {P1_15, SPI_1, 0x03},
<> 144:ef7eb2e8f9f7 60 {NC , NC , 0}
<> 144:ef7eb2e8f9f7 61 };
<> 144:ef7eb2e8f9f7 62
<> 144:ef7eb2e8f9f7 63 const PinMap PinMap_SPI_MOSI[] = {
<> 144:ef7eb2e8f9f7 64 {P0_9 , SPI_0, 0x01},
<> 144:ef7eb2e8f9f7 65 {P0_21, SPI_1, 0x02},
<> 144:ef7eb2e8f9f7 66 {NC , NC , 0}
<> 144:ef7eb2e8f9f7 67 };
<> 144:ef7eb2e8f9f7 68
<> 144:ef7eb2e8f9f7 69 const PinMap PinMap_SPI_MISO[] = {
<> 144:ef7eb2e8f9f7 70 {P0_8 , SPI_0, 0x01},
<> 144:ef7eb2e8f9f7 71 {P0_22, SPI_1, 0x03},
<> 144:ef7eb2e8f9f7 72 {NC , NC , 0}
<> 144:ef7eb2e8f9f7 73 };
<> 144:ef7eb2e8f9f7 74
<> 144:ef7eb2e8f9f7 75 const PinMap PinMap_SPI_SSEL[] = {
<> 144:ef7eb2e8f9f7 76 {P0_2 , SPI_0, 0x01},
<> 144:ef7eb2e8f9f7 77 {P1_19, SPI_1, 0x02},
<> 144:ef7eb2e8f9f7 78 {NC , NC , 0}
<> 144:ef7eb2e8f9f7 79 };
<> 144:ef7eb2e8f9f7 80
<> 144:ef7eb2e8f9f7 81 /************PWM***************/
<> 144:ef7eb2e8f9f7 82 const PinMap PinMap_PWM[] = {
<> 144:ef7eb2e8f9f7 83 /* CT16B0 */
<> 144:ef7eb2e8f9f7 84 {P0_8 , PWM_1, 2}, /* MR0 */
<> 144:ef7eb2e8f9f7 85 {P0_9 , PWM_2, 2}, /* MR1 */
<> 144:ef7eb2e8f9f7 86 {P0_10, PWM_3, 3}, /* MR2 */
<> 144:ef7eb2e8f9f7 87 {P1_15, PWM_3, 2}, /* MR2 */ // Same channel as P0_10
<> 144:ef7eb2e8f9f7 88
<> 144:ef7eb2e8f9f7 89 /* CT16B1 */
<> 144:ef7eb2e8f9f7 90 {P0_21, PWM_4, 1}, /* MR0 */
<> 144:ef7eb2e8f9f7 91 {P0_22, PWM_5, 2}, /* MR1 */
<> 144:ef7eb2e8f9f7 92
<> 144:ef7eb2e8f9f7 93 /* CT32B0 */
<> 144:ef7eb2e8f9f7 94 {P0_18, PWM_6, 2}, /* MR0 */
<> 144:ef7eb2e8f9f7 95 {P0_19, PWM_7, 2}, /* MR1 */
<> 144:ef7eb2e8f9f7 96 {P0_1 , PWM_8, 2}, /* MR2 */
<> 144:ef7eb2e8f9f7 97 {P0_11, PWM_9, 3}, /* MR3 */
<> 144:ef7eb2e8f9f7 98
<> 144:ef7eb2e8f9f7 99 /* CT32B1 */
<> 144:ef7eb2e8f9f7 100 {P0_13, PWM_10, 3}, /* MR0 */
<> 144:ef7eb2e8f9f7 101 {P0_14, PWM_11, 3}, /* MR1 */
<> 144:ef7eb2e8f9f7 102 {P0_15, PWM_12, 3}, /* MR2 */
<> 144:ef7eb2e8f9f7 103 {P0_16, PWM_13, 2}, /* MR3 */
<> 144:ef7eb2e8f9f7 104
<> 144:ef7eb2e8f9f7 105 {NC, NC, 0}
<> 144:ef7eb2e8f9f7 106 };