Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mbed-os/targets/TARGET_STM/PeripheralPins.h@9:d58e77ebd769, 2018-03-02 (annotated)
- Committer:
- Nathan Yonkee
- Date:
- Fri Mar 02 07:12:37 2018 -0700
- Revision:
- 9:d58e77ebd769
add mbed-os library
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Nathan Yonkee |
9:d58e77ebd769 | 1 | /* mbed Microcontroller Library |
| Nathan Yonkee |
9:d58e77ebd769 | 2 | ******************************************************************************* |
| Nathan Yonkee |
9:d58e77ebd769 | 3 | * Copyright (c) 2014, STMicroelectronics |
| Nathan Yonkee |
9:d58e77ebd769 | 4 | * All rights reserved. |
| Nathan Yonkee |
9:d58e77ebd769 | 5 | * |
| Nathan Yonkee |
9:d58e77ebd769 | 6 | * Redistribution and use in source and binary forms, with or without |
| Nathan Yonkee |
9:d58e77ebd769 | 7 | * modification, are permitted provided that the following conditions are met: |
| Nathan Yonkee |
9:d58e77ebd769 | 8 | * |
| Nathan Yonkee |
9:d58e77ebd769 | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
| Nathan Yonkee |
9:d58e77ebd769 | 10 | * this list of conditions and the following disclaimer. |
| Nathan Yonkee |
9:d58e77ebd769 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| Nathan Yonkee |
9:d58e77ebd769 | 12 | * this list of conditions and the following disclaimer in the documentation |
| Nathan Yonkee |
9:d58e77ebd769 | 13 | * and/or other materials provided with the distribution. |
| Nathan Yonkee |
9:d58e77ebd769 | 14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| Nathan Yonkee |
9:d58e77ebd769 | 15 | * may be used to endorse or promote products derived from this software |
| Nathan Yonkee |
9:d58e77ebd769 | 16 | * without specific prior written permission. |
| Nathan Yonkee |
9:d58e77ebd769 | 17 | * |
| Nathan Yonkee |
9:d58e77ebd769 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| Nathan Yonkee |
9:d58e77ebd769 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| Nathan Yonkee |
9:d58e77ebd769 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| Nathan Yonkee |
9:d58e77ebd769 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| Nathan Yonkee |
9:d58e77ebd769 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| Nathan Yonkee |
9:d58e77ebd769 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| Nathan Yonkee |
9:d58e77ebd769 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| Nathan Yonkee |
9:d58e77ebd769 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| Nathan Yonkee |
9:d58e77ebd769 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| Nathan Yonkee |
9:d58e77ebd769 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| Nathan Yonkee |
9:d58e77ebd769 | 28 | ******************************************************************************* |
| Nathan Yonkee |
9:d58e77ebd769 | 29 | */ |
| Nathan Yonkee |
9:d58e77ebd769 | 30 | |
| Nathan Yonkee |
9:d58e77ebd769 | 31 | #ifndef MBED_PERIPHERALPINS_H |
| Nathan Yonkee |
9:d58e77ebd769 | 32 | #define MBED_PERIPHERALPINS_H |
| Nathan Yonkee |
9:d58e77ebd769 | 33 | |
| Nathan Yonkee |
9:d58e77ebd769 | 34 | #include "pinmap.h" |
| Nathan Yonkee |
9:d58e77ebd769 | 35 | #include "PeripheralNames.h" |
| Nathan Yonkee |
9:d58e77ebd769 | 36 | |
| Nathan Yonkee |
9:d58e77ebd769 | 37 | //*** ADC *** |
| Nathan Yonkee |
9:d58e77ebd769 | 38 | #ifdef DEVICE_ANALOGIN |
| Nathan Yonkee |
9:d58e77ebd769 | 39 | extern const PinMap PinMap_ADC[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 40 | extern const PinMap PinMap_ADC_Internal[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 41 | #endif |
| Nathan Yonkee |
9:d58e77ebd769 | 42 | |
| Nathan Yonkee |
9:d58e77ebd769 | 43 | //*** DAC *** |
| Nathan Yonkee |
9:d58e77ebd769 | 44 | #ifdef DEVICE_ANALOGOUT |
| Nathan Yonkee |
9:d58e77ebd769 | 45 | extern const PinMap PinMap_DAC[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 46 | #endif |
| Nathan Yonkee |
9:d58e77ebd769 | 47 | |
| Nathan Yonkee |
9:d58e77ebd769 | 48 | //*** I2C *** |
| Nathan Yonkee |
9:d58e77ebd769 | 49 | #if DEVICE_I2C |
| Nathan Yonkee |
9:d58e77ebd769 | 50 | extern const PinMap PinMap_I2C_SDA[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 51 | extern const PinMap PinMap_I2C_SCL[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 52 | #endif |
| Nathan Yonkee |
9:d58e77ebd769 | 53 | |
| Nathan Yonkee |
9:d58e77ebd769 | 54 | //*** PWM *** |
| Nathan Yonkee |
9:d58e77ebd769 | 55 | #if DEVICE_PWMOUT |
| Nathan Yonkee |
9:d58e77ebd769 | 56 | extern const PinMap PinMap_PWM[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 57 | #endif |
| Nathan Yonkee |
9:d58e77ebd769 | 58 | |
| Nathan Yonkee |
9:d58e77ebd769 | 59 | //*** SERIAL *** |
| Nathan Yonkee |
9:d58e77ebd769 | 60 | #ifdef DEVICE_SERIAL |
| Nathan Yonkee |
9:d58e77ebd769 | 61 | extern const PinMap PinMap_UART_TX[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 62 | extern const PinMap PinMap_UART_RX[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 63 | #ifdef DEVICE_SERIAL_FC |
| Nathan Yonkee |
9:d58e77ebd769 | 64 | extern const PinMap PinMap_UART_RTS[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 65 | extern const PinMap PinMap_UART_CTS[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 66 | #endif |
| Nathan Yonkee |
9:d58e77ebd769 | 67 | #endif |
| Nathan Yonkee |
9:d58e77ebd769 | 68 | |
| Nathan Yonkee |
9:d58e77ebd769 | 69 | //*** SPI *** |
| Nathan Yonkee |
9:d58e77ebd769 | 70 | #ifdef DEVICE_SPI |
| Nathan Yonkee |
9:d58e77ebd769 | 71 | extern const PinMap PinMap_SPI_MOSI[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 72 | extern const PinMap PinMap_SPI_MISO[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 73 | extern const PinMap PinMap_SPI_SCLK[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 74 | extern const PinMap PinMap_SPI_SSEL[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 75 | #endif |
| Nathan Yonkee |
9:d58e77ebd769 | 76 | |
| Nathan Yonkee |
9:d58e77ebd769 | 77 | //*** CAN *** |
| Nathan Yonkee |
9:d58e77ebd769 | 78 | #ifdef DEVICE_CAN |
| Nathan Yonkee |
9:d58e77ebd769 | 79 | extern const PinMap PinMap_CAN_RD[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 80 | extern const PinMap PinMap_CAN_TD[]; |
| Nathan Yonkee |
9:d58e77ebd769 | 81 | #endif |
| Nathan Yonkee |
9:d58e77ebd769 | 82 | |
| Nathan Yonkee |
9:d58e77ebd769 | 83 | #endif |