mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PinNames.h@157:ff67d9f36b67, 2017-02-02 (annotated)
- Committer:
- <>
- Date:
- Thu Feb 02 17:01:33 2017 +0000
- Revision:
- 157:ff67d9f36b67
- Parent:
- 149:156823d33999
- Child:
- 168:9672193075cf
This updates the lib to the mbed lib v135
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 5:ac9f6c2c45e8 | 1 | /* mbed Microcontroller Library |
mbed_official | 5:ac9f6c2c45e8 | 2 | ******************************************************************************* |
mbed_official | 5:ac9f6c2c45e8 | 3 | * Copyright (c) 2014, STMicroelectronics |
mbed_official | 5:ac9f6c2c45e8 | 4 | * All rights reserved. |
mbed_official | 5:ac9f6c2c45e8 | 5 | * |
mbed_official | 5:ac9f6c2c45e8 | 6 | * Redistribution and use in source and binary forms, with or without |
mbed_official | 5:ac9f6c2c45e8 | 7 | * modification, are permitted provided that the following conditions are met: |
mbed_official | 5:ac9f6c2c45e8 | 8 | * |
mbed_official | 5:ac9f6c2c45e8 | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 5:ac9f6c2c45e8 | 10 | * this list of conditions and the following disclaimer. |
mbed_official | 5:ac9f6c2c45e8 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 5:ac9f6c2c45e8 | 12 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 5:ac9f6c2c45e8 | 13 | * and/or other materials provided with the distribution. |
mbed_official | 5:ac9f6c2c45e8 | 14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 5:ac9f6c2c45e8 | 15 | * may be used to endorse or promote products derived from this software |
mbed_official | 5:ac9f6c2c45e8 | 16 | * without specific prior written permission. |
mbed_official | 5:ac9f6c2c45e8 | 17 | * |
mbed_official | 5:ac9f6c2c45e8 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 5:ac9f6c2c45e8 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 5:ac9f6c2c45e8 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 5:ac9f6c2c45e8 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 5:ac9f6c2c45e8 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 5:ac9f6c2c45e8 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 5:ac9f6c2c45e8 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 5:ac9f6c2c45e8 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 5:ac9f6c2c45e8 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 5:ac9f6c2c45e8 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 5:ac9f6c2c45e8 | 28 | ******************************************************************************* |
mbed_official | 5:ac9f6c2c45e8 | 29 | */ |
mbed_official | 5:ac9f6c2c45e8 | 30 | #ifndef MBED_PINNAMES_H |
mbed_official | 5:ac9f6c2c45e8 | 31 | #define MBED_PINNAMES_H |
mbed_official | 5:ac9f6c2c45e8 | 32 | |
mbed_official | 5:ac9f6c2c45e8 | 33 | #include "cmsis.h" |
<> | 157:ff67d9f36b67 | 34 | #include "PinNamesTypes.h" |
mbed_official | 5:ac9f6c2c45e8 | 35 | |
mbed_official | 5:ac9f6c2c45e8 | 36 | #ifdef __cplusplus |
mbed_official | 5:ac9f6c2c45e8 | 37 | extern "C" { |
mbed_official | 5:ac9f6c2c45e8 | 38 | #endif |
mbed_official | 5:ac9f6c2c45e8 | 39 | |
mbed_official | 5:ac9f6c2c45e8 | 40 | typedef enum { |
mbed_official | 5:ac9f6c2c45e8 | 41 | PA_0 = 0x00, |
mbed_official | 5:ac9f6c2c45e8 | 42 | PA_1 = 0x01, |
mbed_official | 5:ac9f6c2c45e8 | 43 | PA_2 = 0x02, |
mbed_official | 5:ac9f6c2c45e8 | 44 | PA_3 = 0x03, |
mbed_official | 5:ac9f6c2c45e8 | 45 | PA_4 = 0x04, |
mbed_official | 5:ac9f6c2c45e8 | 46 | PA_5 = 0x05, |
mbed_official | 5:ac9f6c2c45e8 | 47 | PA_6 = 0x06, |
mbed_official | 5:ac9f6c2c45e8 | 48 | PA_7 = 0x07, |
mbed_official | 5:ac9f6c2c45e8 | 49 | PA_8 = 0x08, |
mbed_official | 5:ac9f6c2c45e8 | 50 | PA_9 = 0x09, |
mbed_official | 5:ac9f6c2c45e8 | 51 | PA_10 = 0x0A, |
mbed_official | 5:ac9f6c2c45e8 | 52 | PA_11 = 0x0B, |
mbed_official | 5:ac9f6c2c45e8 | 53 | PA_12 = 0x0C, |
mbed_official | 5:ac9f6c2c45e8 | 54 | PA_13 = 0x0D, |
mbed_official | 5:ac9f6c2c45e8 | 55 | PA_14 = 0x0E, |
mbed_official | 5:ac9f6c2c45e8 | 56 | PA_15 = 0x0F, |
mbed_official | 5:ac9f6c2c45e8 | 57 | |
mbed_official | 5:ac9f6c2c45e8 | 58 | PB_0 = 0x10, |
mbed_official | 5:ac9f6c2c45e8 | 59 | PB_1 = 0x11, |
mbed_official | 5:ac9f6c2c45e8 | 60 | PB_3 = 0x13, |
mbed_official | 5:ac9f6c2c45e8 | 61 | PB_4 = 0x14, |
mbed_official | 5:ac9f6c2c45e8 | 62 | PB_5 = 0x15, |
mbed_official | 5:ac9f6c2c45e8 | 63 | PB_6 = 0x16, |
mbed_official | 5:ac9f6c2c45e8 | 64 | PB_7 = 0x17, |
mbed_official | 5:ac9f6c2c45e8 | 65 | PB_8 = 0x18, |
mbed_official | 5:ac9f6c2c45e8 | 66 | |
mbed_official | 5:ac9f6c2c45e8 | 67 | PF_0 = 0x50, |
mbed_official | 5:ac9f6c2c45e8 | 68 | PF_1 = 0x51, |
mbed_official | 5:ac9f6c2c45e8 | 69 | |
<> | 148:21d94c44109e | 70 | // ADC internal channels |
<> | 148:21d94c44109e | 71 | ADC_TEMP = 0xF0, |
<> | 148:21d94c44109e | 72 | ADC_VREF = 0xF1, |
<> | 148:21d94c44109e | 73 | ADC_VBAT = 0xF2, |
<> | 148:21d94c44109e | 74 | |
mbed_official | 5:ac9f6c2c45e8 | 75 | // Arduino connector namings |
mbed_official | 5:ac9f6c2c45e8 | 76 | A0 = PA_0, |
mbed_official | 5:ac9f6c2c45e8 | 77 | A1 = PA_1, |
mbed_official | 5:ac9f6c2c45e8 | 78 | A2 = PA_3, |
mbed_official | 5:ac9f6c2c45e8 | 79 | A3 = PA_4, |
mbed_official | 5:ac9f6c2c45e8 | 80 | A4 = PA_5, |
mbed_official | 5:ac9f6c2c45e8 | 81 | A5 = PA_6, |
mbed_official | 5:ac9f6c2c45e8 | 82 | A6 = PA_7, |
mbed_official | 5:ac9f6c2c45e8 | 83 | A7 = PA_2, |
mbed_official | 5:ac9f6c2c45e8 | 84 | D0 = PA_10, |
mbed_official | 5:ac9f6c2c45e8 | 85 | D1 = PA_9, |
mbed_official | 5:ac9f6c2c45e8 | 86 | D2 = PA_12, |
mbed_official | 5:ac9f6c2c45e8 | 87 | D3 = PB_0, |
mbed_official | 5:ac9f6c2c45e8 | 88 | D4 = PB_7, |
mbed_official | 5:ac9f6c2c45e8 | 89 | D5 = PB_6, |
mbed_official | 5:ac9f6c2c45e8 | 90 | D6 = PB_1, |
mbed_official | 5:ac9f6c2c45e8 | 91 | D7 = PF_0, |
mbed_official | 5:ac9f6c2c45e8 | 92 | D8 = PF_1, |
mbed_official | 5:ac9f6c2c45e8 | 93 | D9 = PA_8, |
mbed_official | 5:ac9f6c2c45e8 | 94 | D10 = PA_11, |
mbed_official | 5:ac9f6c2c45e8 | 95 | D11 = PB_5, |
mbed_official | 5:ac9f6c2c45e8 | 96 | D12 = PB_4, |
mbed_official | 5:ac9f6c2c45e8 | 97 | D13 = PB_3, |
mbed_official | 5:ac9f6c2c45e8 | 98 | |
mbed_official | 5:ac9f6c2c45e8 | 99 | // Generic signals namings |
mbed_official | 5:ac9f6c2c45e8 | 100 | LED1 = PB_3, |
mbed_official | 5:ac9f6c2c45e8 | 101 | LED2 = PB_3, |
mbed_official | 5:ac9f6c2c45e8 | 102 | LED3 = PB_3, |
mbed_official | 5:ac9f6c2c45e8 | 103 | LED4 = PB_3, |
mbed_official | 5:ac9f6c2c45e8 | 104 | SERIAL_TX = PA_2, |
mbed_official | 5:ac9f6c2c45e8 | 105 | SERIAL_RX = PA_15, |
mbed_official | 5:ac9f6c2c45e8 | 106 | USBTX = PA_2, |
mbed_official | 5:ac9f6c2c45e8 | 107 | USBRX = PA_15, |
mbed_official | 5:ac9f6c2c45e8 | 108 | I2C_SCL = PA_9, |
mbed_official | 5:ac9f6c2c45e8 | 109 | I2C_SDA = PA_10, |
mbed_official | 5:ac9f6c2c45e8 | 110 | SPI_MOSI = PB_5, |
mbed_official | 5:ac9f6c2c45e8 | 111 | SPI_MISO = PB_4, |
mbed_official | 5:ac9f6c2c45e8 | 112 | SPI_SCK = PB_3, |
mbed_official | 5:ac9f6c2c45e8 | 113 | SPI_CS = PA_4, |
mbed_official | 5:ac9f6c2c45e8 | 114 | PWM_OUT = PB_0, |
mbed_official | 5:ac9f6c2c45e8 | 115 | |
mbed_official | 5:ac9f6c2c45e8 | 116 | // Not connected |
mbed_official | 5:ac9f6c2c45e8 | 117 | NC = (int)0xFFFFFFFF |
mbed_official | 5:ac9f6c2c45e8 | 118 | } PinName; |
mbed_official | 5:ac9f6c2c45e8 | 119 | |
mbed_official | 5:ac9f6c2c45e8 | 120 | #ifdef __cplusplus |
mbed_official | 5:ac9f6c2c45e8 | 121 | } |
mbed_official | 5:ac9f6c2c45e8 | 122 | #endif |
mbed_official | 5:ac9f6c2c45e8 | 123 | |
mbed_official | 5:ac9f6c2c45e8 | 124 | #endif |