Gleb Klochkov / Mbed OS Climatcontroll_Main

Dependencies:   esp8266-driver

Committer:
glebiuskv
Date:
Fri Apr 13 08:53:46 2018 +0000
Revision:
0:2f0e1e23c242
initial

Who changed what in which revision?

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