mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Mon Aug 18 09:30:06 2014 +0100
Revision:
287:9567fed63582
Parent:
targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_GHI_MBUINO/PeripheralPins.c@278:268467ee0266
Synchronized with git revision 4dbfe1ea08d2be0ab6097f23e3805bc84efb3c5a

Full URL: https://github.com/mbedmicro/mbed/commit/4dbfe1ea08d2be0ab6097f23e3805bc84efb3c5a/

Renamed TARGET_GHI_MBUINO to TARGET_OC_MBUINO to match the new name of t...

Who changed what in which revision?

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