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.
TARGET_EFM32PG_STK3401/TOOLCHAIN_IAR/PinNames.h@172:65be27845400, 2019-02-20 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 171:3a7713b1edbc | 1 | /***************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 2 | * @file PinNames.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 | #ifndef MBED_PINNAMES_H |
AnnaBridge | 171:3a7713b1edbc | 24 | #define MBED_PINNAMES_H |
AnnaBridge | 171:3a7713b1edbc | 25 | |
AnnaBridge | 171:3a7713b1edbc | 26 | #include "CommonPinNames.h" |
AnnaBridge | 171:3a7713b1edbc | 27 | |
AnnaBridge | 171:3a7713b1edbc | 28 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 29 | extern "C" { |
AnnaBridge | 171:3a7713b1edbc | 30 | #endif |
AnnaBridge | 171:3a7713b1edbc | 31 | |
AnnaBridge | 171:3a7713b1edbc | 32 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 33 | EFM32_STANDARD_PIN_DEFINITIONS, |
AnnaBridge | 171:3a7713b1edbc | 34 | |
AnnaBridge | 171:3a7713b1edbc | 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. */ |
AnnaBridge | 171:3a7713b1edbc | 36 | LED0 = PF4, |
AnnaBridge | 171:3a7713b1edbc | 37 | LED1 = PF5, |
AnnaBridge | 171:3a7713b1edbc | 38 | LED2 = LED0, |
AnnaBridge | 171:3a7713b1edbc | 39 | LED3 = LED0, |
AnnaBridge | 171:3a7713b1edbc | 40 | LED4 = LED1, |
AnnaBridge | 171:3a7713b1edbc | 41 | |
AnnaBridge | 171:3a7713b1edbc | 42 | /* Push Buttons */ |
AnnaBridge | 171:3a7713b1edbc | 43 | SW0 = PF6, |
AnnaBridge | 171:3a7713b1edbc | 44 | SW1 = PF7, |
AnnaBridge | 171:3a7713b1edbc | 45 | BTN0 = SW0, |
AnnaBridge | 171:3a7713b1edbc | 46 | BTN1 = SW1, |
AnnaBridge | 171:3a7713b1edbc | 47 | // Standardized button names |
AnnaBridge | 171:3a7713b1edbc | 48 | BUTTON1 = BTN0, |
AnnaBridge | 171:3a7713b1edbc | 49 | BUTTON2 = BTN1, |
AnnaBridge | 171:3a7713b1edbc | 50 | |
AnnaBridge | 171:3a7713b1edbc | 51 | /* Serial (just some usable pins) */ |
AnnaBridge | 171:3a7713b1edbc | 52 | SERIAL_TX = PD10, |
AnnaBridge | 171:3a7713b1edbc | 53 | SERIAL_RX = PD11, |
AnnaBridge | 171:3a7713b1edbc | 54 | |
AnnaBridge | 171:3a7713b1edbc | 55 | /* Board Controller UART (USB)*/ |
AnnaBridge | 171:3a7713b1edbc | 56 | USBTX = PA0, |
AnnaBridge | 171:3a7713b1edbc | 57 | USBRX = PA1, |
AnnaBridge | 171:3a7713b1edbc | 58 | |
AnnaBridge | 171:3a7713b1edbc | 59 | /* Board Controller */ |
AnnaBridge | 171:3a7713b1edbc | 60 | STDIO_UART_TX = USBTX, |
AnnaBridge | 171:3a7713b1edbc | 61 | STDIO_UART_RX = USBRX |
AnnaBridge | 171:3a7713b1edbc | 62 | } PinName; |
AnnaBridge | 171:3a7713b1edbc | 63 | |
AnnaBridge | 171:3a7713b1edbc | 64 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 65 | } |
AnnaBridge | 171:3a7713b1edbc | 66 | #endif |
AnnaBridge | 171:3a7713b1edbc | 67 | |
AnnaBridge | 171:3a7713b1edbc | 68 | #endif |