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

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
171:3a7713b1edbc
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 171:3a7713b1edbc 1 /***************************************************************************//**
AnnaBridge 171:3a7713b1edbc 2 * @file PeripheralPins.h
AnnaBridge 171:3a7713b1edbc 3 *******************************************************************************
AnnaBridge 171:3a7713b1edbc 4 * @section License
AnnaBridge 171:3a7713b1edbc 5 * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
AnnaBridge 171:3a7713b1edbc 6 *******************************************************************************
AnnaBridge 171:3a7713b1edbc 7 *
AnnaBridge 171:3a7713b1edbc 8 * SPDX-License-Identifier: Apache-2.0
AnnaBridge 171:3a7713b1edbc 9 *
AnnaBridge 171:3a7713b1edbc 10 * Licensed under the Apache License, Version 2.0 (the "License"); you may
AnnaBridge 171:3a7713b1edbc 11 * not use this file except in compliance with the License.
AnnaBridge 171:3a7713b1edbc 12 * You may obtain a copy of the License at
AnnaBridge 171:3a7713b1edbc 13 *
AnnaBridge 171:3a7713b1edbc 14 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 171:3a7713b1edbc 15 *
AnnaBridge 171:3a7713b1edbc 16 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 171:3a7713b1edbc 17 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
AnnaBridge 171:3a7713b1edbc 18 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 171:3a7713b1edbc 19 * See the License for the specific language governing permissions and
AnnaBridge 171:3a7713b1edbc 20 * limitations under the License.
AnnaBridge 171:3a7713b1edbc 21 *
AnnaBridge 171:3a7713b1edbc 22 ******************************************************************************/
AnnaBridge 171:3a7713b1edbc 23
AnnaBridge 171:3a7713b1edbc 24 #ifndef MBED_PERIPHERALPINS_H
AnnaBridge 171:3a7713b1edbc 25 #define MBED_PERIPHERALPINS_H
AnnaBridge 171:3a7713b1edbc 26
AnnaBridge 171:3a7713b1edbc 27 #include "pinmap.h"
AnnaBridge 171:3a7713b1edbc 28 #include "PeripheralNames.h"
AnnaBridge 171:3a7713b1edbc 29
AnnaBridge 171:3a7713b1edbc 30 #if DEVICE_ANALOGIN
AnnaBridge 171:3a7713b1edbc 31 /************ADC***************/
AnnaBridge 171:3a7713b1edbc 32 extern const PinMap PinMap_ADC[];
AnnaBridge 171:3a7713b1edbc 33 #endif
AnnaBridge 171:3a7713b1edbc 34
AnnaBridge 171:3a7713b1edbc 35 #if DEVICE_ANALOGOUT
AnnaBridge 171:3a7713b1edbc 36 /************DAC***************/
AnnaBridge 171:3a7713b1edbc 37 extern const PinMap PinMap_DAC[];
AnnaBridge 171:3a7713b1edbc 38 #endif
AnnaBridge 171:3a7713b1edbc 39
AnnaBridge 171:3a7713b1edbc 40 #if DEVICE_I2C
AnnaBridge 171:3a7713b1edbc 41 /************I2C***************/
AnnaBridge 171:3a7713b1edbc 42 extern const PinMap PinMap_I2C_SCL[];
AnnaBridge 171:3a7713b1edbc 43 extern const PinMap PinMap_I2C_SDA[];
AnnaBridge 171:3a7713b1edbc 44 #endif
AnnaBridge 171:3a7713b1edbc 45
AnnaBridge 171:3a7713b1edbc 46 #if DEVICE_PWMOUT
AnnaBridge 171:3a7713b1edbc 47 /************PWM***************/
AnnaBridge 171:3a7713b1edbc 48 extern const PinMap PinMap_PWM[];
AnnaBridge 171:3a7713b1edbc 49 #endif
AnnaBridge 171:3a7713b1edbc 50
AnnaBridge 171:3a7713b1edbc 51 #if DEVICE_SPI
AnnaBridge 171:3a7713b1edbc 52 /************SPI***************/
AnnaBridge 171:3a7713b1edbc 53 extern const PinMap PinMap_SPI_MOSI[];
AnnaBridge 171:3a7713b1edbc 54 extern const PinMap PinMap_SPI_MISO[];
AnnaBridge 171:3a7713b1edbc 55 extern const PinMap PinMap_SPI_CLK[];
AnnaBridge 171:3a7713b1edbc 56 extern const PinMap PinMap_SPI_CS[];
AnnaBridge 171:3a7713b1edbc 57 #endif
AnnaBridge 171:3a7713b1edbc 58
AnnaBridge 171:3a7713b1edbc 59 #if DEVICE_SERIAL
AnnaBridge 171:3a7713b1edbc 60 /************UART**************/
AnnaBridge 171:3a7713b1edbc 61 extern const PinMap PinMap_UART_TX[];
AnnaBridge 171:3a7713b1edbc 62 extern const PinMap PinMap_UART_RX[];
AnnaBridge 171:3a7713b1edbc 63 #endif
AnnaBridge 171:3a7713b1edbc 64
AnnaBridge 171:3a7713b1edbc 65 #if DEVICE_CAN
AnnaBridge 171:3a7713b1edbc 66 /************CAN***************/
AnnaBridge 171:3a7713b1edbc 67 extern const PinMap PinMap_CAN_TX[];
AnnaBridge 171:3a7713b1edbc 68 extern const PinMap PinMap_CAN_RX[];
AnnaBridge 171:3a7713b1edbc 69 #endif
AnnaBridge 171:3a7713b1edbc 70
AnnaBridge 171:3a7713b1edbc 71 #if DEVICE_QSPI
AnnaBridge 171:3a7713b1edbc 72 /************QSPI**************/
AnnaBridge 171:3a7713b1edbc 73 extern const PinMap PinMap_QSPI_DQ0[];
AnnaBridge 171:3a7713b1edbc 74 extern const PinMap PinMap_QSPI_DQ1[];
AnnaBridge 171:3a7713b1edbc 75 extern const PinMap PinMap_QSPI_DQ2[];
AnnaBridge 171:3a7713b1edbc 76 extern const PinMap PinMap_QSPI_DQ3[];
AnnaBridge 171:3a7713b1edbc 77 extern const PinMap PinMap_QSPI_SCLK[];
AnnaBridge 171:3a7713b1edbc 78 extern const PinMap PinMap_QSPI_CS0[];
AnnaBridge 171:3a7713b1edbc 79 #endif
AnnaBridge 171:3a7713b1edbc 80
AnnaBridge 171:3a7713b1edbc 81 #endif
AnnaBridge 171:3a7713b1edbc 82