mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/TARGET_EFM32PG12_STK3402/PinNames.h@186:707f6e361f3e, 2018-06-22 (annotated)
- Committer:
- Anna Bridge
- Date:
- Fri Jun 22 16:45:37 2018 +0100
- Revision:
- 186:707f6e361f3e
- Parent:
- 164:289d4deac6e4
mbed-dev library. Release version 162
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 161:2cc1468da177 | 1 | /***************************************************************************//** |
<> | 161:2cc1468da177 | 2 | * @file PinNames.h |
<> | 161:2cc1468da177 | 3 | ******************************************************************************* |
<> | 161:2cc1468da177 | 4 | * @section License |
<> | 161:2cc1468da177 | 5 | * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b> |
<> | 161:2cc1468da177 | 6 | ******************************************************************************* |
<> | 161:2cc1468da177 | 7 | * |
<> | 161:2cc1468da177 | 8 | * SPDX-License-Identifier: Apache-2.0 |
<> | 161:2cc1468da177 | 9 | * |
<> | 161:2cc1468da177 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
<> | 161:2cc1468da177 | 11 | * not use this file except in compliance with the License. |
<> | 161:2cc1468da177 | 12 | * You may obtain a copy of the License at |
<> | 161:2cc1468da177 | 13 | * |
<> | 161:2cc1468da177 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 161:2cc1468da177 | 15 | * |
<> | 161:2cc1468da177 | 16 | * Unless required by applicable law or agreed to in writing, software |
<> | 161:2cc1468da177 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
<> | 161:2cc1468da177 | 18 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 161:2cc1468da177 | 19 | * See the License for the specific language governing permissions and |
<> | 161:2cc1468da177 | 20 | * limitations under the License. |
<> | 161:2cc1468da177 | 21 | * |
<> | 161:2cc1468da177 | 22 | ******************************************************************************/ |
<> | 161:2cc1468da177 | 23 | #ifndef MBED_PINNAMES_H |
<> | 161:2cc1468da177 | 24 | #define MBED_PINNAMES_H |
<> | 161:2cc1468da177 | 25 | |
<> | 161:2cc1468da177 | 26 | #include "CommonPinNames.h" |
<> | 161:2cc1468da177 | 27 | |
<> | 161:2cc1468da177 | 28 | #ifdef __cplusplus |
<> | 161:2cc1468da177 | 29 | extern "C" { |
<> | 161:2cc1468da177 | 30 | #endif |
<> | 161:2cc1468da177 | 31 | |
<> | 161:2cc1468da177 | 32 | typedef enum { |
<> | 161:2cc1468da177 | 33 | EFM32_STANDARD_PIN_DEFINITIONS, |
<> | 161:2cc1468da177 | 34 | |
<> | 161:2cc1468da177 | 35 | /* Starter Kit says LED0 and LED1, but mbed expects 1 and 2. This way using 1 and 2 or 0 and 1 will work. */ |
<> | 161:2cc1468da177 | 36 | LED0 = PF4, |
<> | 161:2cc1468da177 | 37 | LED1 = PF5, |
<> | 161:2cc1468da177 | 38 | LED2 = LED0, |
<> | 161:2cc1468da177 | 39 | LED3 = LED0, |
<> | 161:2cc1468da177 | 40 | LED4 = LED1, |
<> | 161:2cc1468da177 | 41 | |
<> | 161:2cc1468da177 | 42 | /* Push Buttons */ |
<> | 161:2cc1468da177 | 43 | SW0 = PF6, |
<> | 161:2cc1468da177 | 44 | SW1 = PF7, |
<> | 161:2cc1468da177 | 45 | BTN0 = SW0, |
<> | 161:2cc1468da177 | 46 | BTN1 = SW1, |
Anna Bridge |
164:289d4deac6e4 | 47 | // Standardized button names |
Anna Bridge |
164:289d4deac6e4 | 48 | BUTTON1 = BTN0, |
Anna Bridge |
164:289d4deac6e4 | 49 | BUTTON2 = BTN1, |
<> | 161:2cc1468da177 | 50 | |
<> | 161:2cc1468da177 | 51 | /* Expansion headers */ |
Anna Bridge |
186:707f6e361f3e | 52 | EXP3 = PC9, |
Anna Bridge |
186:707f6e361f3e | 53 | EXP4 = PA6, |
Anna Bridge |
186:707f6e361f3e | 54 | EXP5 = PD9, |
Anna Bridge |
186:707f6e361f3e | 55 | EXP6 = PA7, |
Anna Bridge |
186:707f6e361f3e | 56 | EXP7 = PB6, |
Anna Bridge |
186:707f6e361f3e | 57 | EXP8 = PA8, |
Anna Bridge |
186:707f6e361f3e | 58 | EXP9 = PB7, |
Anna Bridge |
186:707f6e361f3e | 59 | EXP10 = PA9, |
Anna Bridge |
186:707f6e361f3e | 60 | EXP11 = PB8, |
Anna Bridge |
186:707f6e361f3e | 61 | EXP12 = PD10, |
Anna Bridge |
186:707f6e361f3e | 62 | EXP13 = PD8, |
Anna Bridge |
186:707f6e361f3e | 63 | EXP14 = PD11, |
<> | 161:2cc1468da177 | 64 | EXP15 = PC11, |
<> | 161:2cc1468da177 | 65 | EXP16 = PC10, |
<> | 161:2cc1468da177 | 66 | |
<> | 161:2cc1468da177 | 67 | /* Serial (just some usable pins) */ |
<> | 161:2cc1468da177 | 68 | SERIAL_TX = PA6, |
<> | 161:2cc1468da177 | 69 | SERIAL_RX = PA7, |
<> | 161:2cc1468da177 | 70 | |
<> | 161:2cc1468da177 | 71 | /* Board Controller UART (USB)*/ |
<> | 161:2cc1468da177 | 72 | USBTX = PA0, |
<> | 161:2cc1468da177 | 73 | USBRX = PA1, |
<> | 161:2cc1468da177 | 74 | |
<> | 161:2cc1468da177 | 75 | /* Board Controller */ |
<> | 161:2cc1468da177 | 76 | STDIO_UART_TX = USBTX, |
<> | 161:2cc1468da177 | 77 | STDIO_UART_RX = USBRX |
<> | 161:2cc1468da177 | 78 | } PinName; |
<> | 161:2cc1468da177 | 79 | |
<> | 161:2cc1468da177 | 80 | #ifdef __cplusplus |
<> | 161:2cc1468da177 | 81 | } |
<> | 161:2cc1468da177 | 82 | #endif |
<> | 161:2cc1468da177 | 83 | |
<> | 161:2cc1468da177 | 84 | #endif |