t
Fork of mbed-dev by
targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG/TARGET_EFM32GG_STK3700/PinNames.h@178:c26431f84b0d, 2017-11-09 (annotated)
- Committer:
- amithy
- Date:
- Thu Nov 09 22:14:37 2017 +0000
- Revision:
- 178:c26431f84b0d
- Parent:
- 153:fa9ff456f731
- Child:
- 164:289d4deac6e4
test export
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 150:02e0a0aed4ec | 1 | /***************************************************************************//** |
<> | 150:02e0a0aed4ec | 2 | * @file PinNames.h |
<> | 150:02e0a0aed4ec | 3 | ******************************************************************************* |
<> | 150:02e0a0aed4ec | 4 | * @section License |
<> | 150:02e0a0aed4ec | 5 | * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b> |
<> | 150:02e0a0aed4ec | 6 | ******************************************************************************* |
<> | 150:02e0a0aed4ec | 7 | * |
<> | 150:02e0a0aed4ec | 8 | * SPDX-License-Identifier: Apache-2.0 |
<> | 150:02e0a0aed4ec | 9 | * |
<> | 150:02e0a0aed4ec | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
<> | 150:02e0a0aed4ec | 11 | * not use this file except in compliance with the License. |
<> | 150:02e0a0aed4ec | 12 | * You may obtain a copy of the License at |
<> | 150:02e0a0aed4ec | 13 | * |
<> | 150:02e0a0aed4ec | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 150:02e0a0aed4ec | 15 | * |
<> | 150:02e0a0aed4ec | 16 | * Unless required by applicable law or agreed to in writing, software |
<> | 150:02e0a0aed4ec | 17 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
<> | 150:02e0a0aed4ec | 18 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 150:02e0a0aed4ec | 19 | * See the License for the specific language governing permissions and |
<> | 150:02e0a0aed4ec | 20 | * limitations under the License. |
<> | 150:02e0a0aed4ec | 21 | * |
<> | 150:02e0a0aed4ec | 22 | ******************************************************************************/ |
<> | 150:02e0a0aed4ec | 23 | #ifndef MBED_PINNAMES_H |
<> | 150:02e0a0aed4ec | 24 | #define MBED_PINNAMES_H |
<> | 150:02e0a0aed4ec | 25 | |
<> | 150:02e0a0aed4ec | 26 | #include "CommonPinNames.h" |
<> | 150:02e0a0aed4ec | 27 | |
<> | 150:02e0a0aed4ec | 28 | #ifdef __cplusplus |
<> | 150:02e0a0aed4ec | 29 | extern "C" { |
<> | 150:02e0a0aed4ec | 30 | #endif |
<> | 150:02e0a0aed4ec | 31 | |
<> | 150:02e0a0aed4ec | 32 | typedef enum { |
<> | 150:02e0a0aed4ec | 33 | EFM32_STANDARD_PIN_DEFINITIONS, |
<> | 150:02e0a0aed4ec | 34 | |
<> | 150:02e0a0aed4ec | 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. */ |
<> | 150:02e0a0aed4ec | 36 | LED0 = PE2, |
<> | 150:02e0a0aed4ec | 37 | LED1 = PE3, |
<> | 150:02e0a0aed4ec | 38 | LED2 = LED0, |
<> | 150:02e0a0aed4ec | 39 | LED3 = LED0, |
<> | 150:02e0a0aed4ec | 40 | LED4 = LED1, |
<> | 150:02e0a0aed4ec | 41 | |
<> | 150:02e0a0aed4ec | 42 | /* Push Buttons */ |
<> | 150:02e0a0aed4ec | 43 | SW0 = PB9, |
<> | 150:02e0a0aed4ec | 44 | SW1 = PB10, |
<> | 150:02e0a0aed4ec | 45 | BTN0 = SW0, |
<> | 150:02e0a0aed4ec | 46 | BTN1 = SW1, |
<> | 150:02e0a0aed4ec | 47 | |
<> | 150:02e0a0aed4ec | 48 | /* Serial */ |
<> | 150:02e0a0aed4ec | 49 | SERIAL_TX = PD0, |
<> | 150:02e0a0aed4ec | 50 | SERIAL_RX = PD1, |
<> | 150:02e0a0aed4ec | 51 | USBTX = PE0, |
<> | 150:02e0a0aed4ec | 52 | USBRX = PE1, |
<> | 150:02e0a0aed4ec | 53 | |
<> | 150:02e0a0aed4ec | 54 | /* Board Controller */ |
<> | 150:02e0a0aed4ec | 55 | STDIO_UART_TX = USBTX, |
<> | 153:fa9ff456f731 | 56 | STDIO_UART_RX = USBRX |
<> | 150:02e0a0aed4ec | 57 | } PinName; |
<> | 150:02e0a0aed4ec | 58 | |
<> | 150:02e0a0aed4ec | 59 | #ifdef __cplusplus |
<> | 150:02e0a0aed4ec | 60 | } |
<> | 150:02e0a0aed4ec | 61 | #endif |
<> | 150:02e0a0aed4ec | 62 | |
<> | 150:02e0a0aed4ec | 63 | #endif |