mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
Anna Bridge
Date:
Wed May 10 12:06:41 2017 +0100
Revision:
164:289d4deac6e4
Parent:
153:fa9ff456f731
This updates the lib to the mbed lib v142

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 153:fa9ff456f731 1 /***************************************************************************//**
<> 153:fa9ff456f731 2 * @file PinNames.h
<> 153:fa9ff456f731 3 *******************************************************************************
<> 153:fa9ff456f731 4 * @section License
<> 153:fa9ff456f731 5 * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
<> 153:fa9ff456f731 6 *******************************************************************************
<> 153:fa9ff456f731 7 *
<> 153:fa9ff456f731 8 * SPDX-License-Identifier: Apache-2.0
<> 153:fa9ff456f731 9 *
<> 153:fa9ff456f731 10 * Licensed under the Apache License, Version 2.0 (the "License"); you may
<> 153:fa9ff456f731 11 * not use this file except in compliance with the License.
<> 153:fa9ff456f731 12 * You may obtain a copy of the License at
<> 153:fa9ff456f731 13 *
<> 153:fa9ff456f731 14 * http://www.apache.org/licenses/LICENSE-2.0
<> 153:fa9ff456f731 15 *
<> 153:fa9ff456f731 16 * Unless required by applicable law or agreed to in writing, software
<> 153:fa9ff456f731 17 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
<> 153:fa9ff456f731 18 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 153:fa9ff456f731 19 * See the License for the specific language governing permissions and
<> 153:fa9ff456f731 20 * limitations under the License.
<> 153:fa9ff456f731 21 *
<> 153:fa9ff456f731 22 ******************************************************************************/
<> 153:fa9ff456f731 23 #ifndef MBED_PINNAMES_H
<> 153:fa9ff456f731 24 #define MBED_PINNAMES_H
<> 153:fa9ff456f731 25
<> 153:fa9ff456f731 26 #include "CommonPinNames.h"
<> 153:fa9ff456f731 27
<> 153:fa9ff456f731 28 #ifdef __cplusplus
<> 153:fa9ff456f731 29 extern "C" {
<> 153:fa9ff456f731 30 #endif
<> 153:fa9ff456f731 31
<> 153:fa9ff456f731 32 typedef enum {
<> 153:fa9ff456f731 33 EFM32_STANDARD_PIN_DEFINITIONS,
<> 153:fa9ff456f731 34
<> 153:fa9ff456f731 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. */
<> 153:fa9ff456f731 36 LED0 = PF4,
<> 153:fa9ff456f731 37 LED1 = PF5,
<> 153:fa9ff456f731 38 LED2 = LED0,
<> 153:fa9ff456f731 39 LED3 = LED0,
<> 153:fa9ff456f731 40 LED4 = LED1,
<> 153:fa9ff456f731 41
<> 153:fa9ff456f731 42 /* Push Buttons */
<> 153:fa9ff456f731 43 SW0 = PF6,
<> 153:fa9ff456f731 44 SW1 = PF7,
<> 153:fa9ff456f731 45 BTN0 = SW0,
<> 153:fa9ff456f731 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,
<> 153:fa9ff456f731 50
<> 153:fa9ff456f731 51 /* Serial (just some usable pins) */
<> 153:fa9ff456f731 52 SERIAL_TX = PD10,
<> 153:fa9ff456f731 53 SERIAL_RX = PD11,
<> 153:fa9ff456f731 54
<> 153:fa9ff456f731 55 /* Board Controller UART (USB)*/
<> 153:fa9ff456f731 56 USBTX = PA0,
<> 153:fa9ff456f731 57 USBRX = PA1,
<> 153:fa9ff456f731 58
<> 153:fa9ff456f731 59 /* Board Controller */
<> 153:fa9ff456f731 60 STDIO_UART_TX = USBTX,
<> 153:fa9ff456f731 61 STDIO_UART_RX = USBRX
<> 153:fa9ff456f731 62 } PinName;
<> 153:fa9ff456f731 63
<> 153:fa9ff456f731 64 #ifdef __cplusplus
<> 153:fa9ff456f731 65 }
<> 153:fa9ff456f731 66 #endif
<> 153:fa9ff456f731 67
<> 153:fa9ff456f731 68 #endif