2015-08-06 12:04:59 +00:00
|
|
|
/***************************************************************************//**
|
|
|
|
* @file PortNames.h
|
|
|
|
*******************************************************************************
|
|
|
|
* @section License
|
|
|
|
* <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
|
|
|
|
*******************************************************************************
|
2015-04-27 18:11:02 +00:00
|
|
|
*
|
2016-06-13 22:23:58 +00:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-27 18:11:02 +00:00
|
|
|
*
|
2016-06-13 22:23:58 +00:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
* not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2015-04-27 18:11:02 +00:00
|
|
|
*
|
2016-06-13 22:23:58 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2015-08-06 12:04:59 +00:00
|
|
|
*
|
2016-06-13 22:23:58 +00:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
2015-08-06 12:04:59 +00:00
|
|
|
*
|
|
|
|
******************************************************************************/
|
2015-04-27 18:11:02 +00:00
|
|
|
#ifndef MBED_PORTNAMES_H
|
|
|
|
#define MBED_PORTNAMES_H
|
|
|
|
|
|
|
|
#include "em_gpio.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef enum {
|
2016-10-22 18:58:43 +00:00
|
|
|
#if ( _GPIO_PORT_A_PIN_COUNT > 0 )
|
2015-04-27 18:11:02 +00:00
|
|
|
PortA = gpioPortA, /**< Port A */
|
2016-10-22 18:58:43 +00:00
|
|
|
#endif
|
|
|
|
#if ( _GPIO_PORT_B_PIN_COUNT > 0 )
|
2015-04-27 18:11:02 +00:00
|
|
|
PortB = gpioPortB, /**< Port B */
|
2016-10-22 18:58:43 +00:00
|
|
|
#endif
|
|
|
|
#if ( _GPIO_PORT_C_PIN_COUNT > 0 )
|
2015-04-27 18:11:02 +00:00
|
|
|
PortC = gpioPortC, /**< Port C */
|
2016-10-22 18:58:43 +00:00
|
|
|
#endif
|
|
|
|
#if ( _GPIO_PORT_D_PIN_COUNT > 0 )
|
2015-04-27 18:11:02 +00:00
|
|
|
PortD = gpioPortD, /**< Port D */
|
2016-10-22 18:58:43 +00:00
|
|
|
#endif
|
|
|
|
#if ( _GPIO_PORT_E_PIN_COUNT > 0 )
|
2015-04-27 18:11:02 +00:00
|
|
|
PortE = gpioPortE, /**< Port E */
|
2016-10-22 18:58:43 +00:00
|
|
|
#endif
|
|
|
|
#if ( _GPIO_PORT_F_PIN_COUNT > 0 )
|
2015-04-27 18:11:02 +00:00
|
|
|
PortF = gpioPortF /**< Port F */
|
2016-10-22 18:58:43 +00:00
|
|
|
#endif
|
|
|
|
#if defined( _GPIO_PORT_G_PIN_COUNT ) && ( _GPIO_PORT_G_PIN_COUNT > 0 )
|
|
|
|
PortG = gpioPortG /**< Port F */
|
|
|
|
#endif
|
|
|
|
#if defined( _GPIO_PORT_H_PIN_COUNT ) && ( _GPIO_PORT_H_PIN_COUNT > 0 )
|
|
|
|
PortH = gpioPortH /**< Port F */
|
|
|
|
#endif
|
2015-04-27 18:11:02 +00:00
|
|
|
} PortName;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|