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/PeripheralNames.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 PeripheralNames.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_PERIPHERALNAMES_H |
AnnaBridge | 171:3a7713b1edbc | 24 | #define MBED_PERIPHERALNAMES_H |
AnnaBridge | 171:3a7713b1edbc | 25 | |
AnnaBridge | 171:3a7713b1edbc | 26 | #include "em_adc.h" |
AnnaBridge | 171:3a7713b1edbc | 27 | #include "em_usart.h" |
AnnaBridge | 171:3a7713b1edbc | 28 | #include "em_i2c.h" |
AnnaBridge | 171:3a7713b1edbc | 29 | |
AnnaBridge | 171:3a7713b1edbc | 30 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 31 | extern "C" { |
AnnaBridge | 171:3a7713b1edbc | 32 | #endif |
AnnaBridge | 171:3a7713b1edbc | 33 | |
AnnaBridge | 171:3a7713b1edbc | 34 | #if DEVICE_ANALOGIN |
AnnaBridge | 171:3a7713b1edbc | 35 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 36 | #ifdef ADC0_BASE |
AnnaBridge | 171:3a7713b1edbc | 37 | ADC_0 = ADC0_BASE, |
AnnaBridge | 171:3a7713b1edbc | 38 | #endif |
AnnaBridge | 171:3a7713b1edbc | 39 | } ADCName; |
AnnaBridge | 171:3a7713b1edbc | 40 | #endif |
AnnaBridge | 171:3a7713b1edbc | 41 | |
AnnaBridge | 171:3a7713b1edbc | 42 | #if DEVICE_ANALOGOUT |
AnnaBridge | 171:3a7713b1edbc | 43 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 44 | #ifdef DAC0_BASE |
AnnaBridge | 171:3a7713b1edbc | 45 | DAC_0 = DAC0_BASE, |
AnnaBridge | 171:3a7713b1edbc | 46 | #endif |
AnnaBridge | 171:3a7713b1edbc | 47 | } DACName; |
AnnaBridge | 171:3a7713b1edbc | 48 | #endif |
AnnaBridge | 171:3a7713b1edbc | 49 | |
AnnaBridge | 171:3a7713b1edbc | 50 | #if DEVICE_I2C |
AnnaBridge | 171:3a7713b1edbc | 51 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 52 | #ifdef I2C0_BASE |
AnnaBridge | 171:3a7713b1edbc | 53 | I2C_0 = I2C0_BASE, |
AnnaBridge | 171:3a7713b1edbc | 54 | #endif |
AnnaBridge | 171:3a7713b1edbc | 55 | #ifdef I2C1_BASE |
AnnaBridge | 171:3a7713b1edbc | 56 | I2C_1 = I2C1_BASE, |
AnnaBridge | 171:3a7713b1edbc | 57 | #endif |
AnnaBridge | 171:3a7713b1edbc | 58 | #ifdef I2C2_BASE |
AnnaBridge | 171:3a7713b1edbc | 59 | I2C_2 = I2C2_BASE, |
AnnaBridge | 171:3a7713b1edbc | 60 | #endif |
AnnaBridge | 171:3a7713b1edbc | 61 | } I2CName; |
AnnaBridge | 171:3a7713b1edbc | 62 | #endif |
AnnaBridge | 171:3a7713b1edbc | 63 | |
AnnaBridge | 171:3a7713b1edbc | 64 | #if DEVICE_PWMOUT |
AnnaBridge | 171:3a7713b1edbc | 65 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 66 | #if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN) |
AnnaBridge | 171:3a7713b1edbc | 67 | PWM_CH0 = 0, |
AnnaBridge | 171:3a7713b1edbc | 68 | #endif |
AnnaBridge | 171:3a7713b1edbc | 69 | #if defined(TIMER_ROUTE_CC1PEN) || defined(TIMER_ROUTEPEN_CC1PEN) |
AnnaBridge | 171:3a7713b1edbc | 70 | PWM_CH1 = 1, |
AnnaBridge | 171:3a7713b1edbc | 71 | #endif |
AnnaBridge | 171:3a7713b1edbc | 72 | #if defined(TIMER_ROUTE_CC2PEN) || defined(TIMER_ROUTEPEN_CC2PEN) |
AnnaBridge | 171:3a7713b1edbc | 73 | PWM_CH2 = 2, |
AnnaBridge | 171:3a7713b1edbc | 74 | #endif |
AnnaBridge | 171:3a7713b1edbc | 75 | #if defined(TIMER_ROUTE_CC3PEN) || defined(TIMER_ROUTEPEN_CC3PEN) |
AnnaBridge | 171:3a7713b1edbc | 76 | PWM_CH3 = 3, |
AnnaBridge | 171:3a7713b1edbc | 77 | #endif |
AnnaBridge | 171:3a7713b1edbc | 78 | } PWMName; |
AnnaBridge | 171:3a7713b1edbc | 79 | #endif |
AnnaBridge | 171:3a7713b1edbc | 80 | |
AnnaBridge | 171:3a7713b1edbc | 81 | #if DEVICE_SPI |
AnnaBridge | 171:3a7713b1edbc | 82 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 83 | #ifdef USART0_BASE |
AnnaBridge | 171:3a7713b1edbc | 84 | SPI_0 = USART0_BASE, |
AnnaBridge | 171:3a7713b1edbc | 85 | #endif |
AnnaBridge | 171:3a7713b1edbc | 86 | #ifdef USART1_BASE |
AnnaBridge | 171:3a7713b1edbc | 87 | SPI_1 = USART1_BASE, |
AnnaBridge | 171:3a7713b1edbc | 88 | #endif |
AnnaBridge | 171:3a7713b1edbc | 89 | #ifdef USART2_BASE |
AnnaBridge | 171:3a7713b1edbc | 90 | SPI_2 = USART2_BASE, |
AnnaBridge | 171:3a7713b1edbc | 91 | #endif |
AnnaBridge | 171:3a7713b1edbc | 92 | #ifdef USART3_BASE |
AnnaBridge | 171:3a7713b1edbc | 93 | SPI_3 = USART3_BASE, |
AnnaBridge | 171:3a7713b1edbc | 94 | #endif |
AnnaBridge | 171:3a7713b1edbc | 95 | #ifdef USART4_BASE |
AnnaBridge | 171:3a7713b1edbc | 96 | SPI_4 = USART4_BASE, |
AnnaBridge | 171:3a7713b1edbc | 97 | #endif |
AnnaBridge | 171:3a7713b1edbc | 98 | #ifdef USART5_BASE |
AnnaBridge | 171:3a7713b1edbc | 99 | SPI_5 = USART5_BASE, |
AnnaBridge | 171:3a7713b1edbc | 100 | #endif |
AnnaBridge | 171:3a7713b1edbc | 101 | } SPIName; |
AnnaBridge | 171:3a7713b1edbc | 102 | #endif |
AnnaBridge | 171:3a7713b1edbc | 103 | |
AnnaBridge | 171:3a7713b1edbc | 104 | #if DEVICE_SERIAL |
AnnaBridge | 171:3a7713b1edbc | 105 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 106 | #ifdef USART0_BASE |
AnnaBridge | 171:3a7713b1edbc | 107 | USART_0 = USART0_BASE, |
AnnaBridge | 171:3a7713b1edbc | 108 | #endif |
AnnaBridge | 171:3a7713b1edbc | 109 | #ifdef USART1_BASE |
AnnaBridge | 171:3a7713b1edbc | 110 | USART_1 = USART1_BASE, |
AnnaBridge | 171:3a7713b1edbc | 111 | #endif |
AnnaBridge | 171:3a7713b1edbc | 112 | #ifdef USART2_BASE |
AnnaBridge | 171:3a7713b1edbc | 113 | USART_2 = USART2_BASE, |
AnnaBridge | 171:3a7713b1edbc | 114 | #endif |
AnnaBridge | 171:3a7713b1edbc | 115 | #ifdef USART3_BASE |
AnnaBridge | 171:3a7713b1edbc | 116 | USART_3 = USART3_BASE, |
AnnaBridge | 171:3a7713b1edbc | 117 | #endif |
AnnaBridge | 171:3a7713b1edbc | 118 | #ifdef USART4_BASE |
AnnaBridge | 171:3a7713b1edbc | 119 | USART_4 = USART4_BASE, |
AnnaBridge | 171:3a7713b1edbc | 120 | #endif |
AnnaBridge | 171:3a7713b1edbc | 121 | #ifdef USART5_BASE |
AnnaBridge | 171:3a7713b1edbc | 122 | USART_5 = USART5_BASE, |
AnnaBridge | 171:3a7713b1edbc | 123 | #endif |
AnnaBridge | 171:3a7713b1edbc | 124 | #ifdef UART0_BASE |
AnnaBridge | 171:3a7713b1edbc | 125 | UART_0 = UART0_BASE, |
AnnaBridge | 171:3a7713b1edbc | 126 | #endif |
AnnaBridge | 171:3a7713b1edbc | 127 | #ifdef UART1_BASE |
AnnaBridge | 171:3a7713b1edbc | 128 | UART_1 = UART1_BASE, |
AnnaBridge | 171:3a7713b1edbc | 129 | #endif |
AnnaBridge | 171:3a7713b1edbc | 130 | #ifdef LEUART0_BASE |
AnnaBridge | 171:3a7713b1edbc | 131 | LEUART_0 = LEUART0_BASE, |
AnnaBridge | 171:3a7713b1edbc | 132 | #endif |
AnnaBridge | 171:3a7713b1edbc | 133 | #ifdef LEUART1_BASE |
AnnaBridge | 171:3a7713b1edbc | 134 | LEUART_1 = LEUART1_BASE, |
AnnaBridge | 171:3a7713b1edbc | 135 | #endif |
AnnaBridge | 171:3a7713b1edbc | 136 | } UARTName; |
AnnaBridge | 171:3a7713b1edbc | 137 | #endif |
AnnaBridge | 171:3a7713b1edbc | 138 | |
AnnaBridge | 171:3a7713b1edbc | 139 | #if DEVICE_QSPI |
AnnaBridge | 171:3a7713b1edbc | 140 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 141 | #ifdef QSPI0_BASE |
AnnaBridge | 171:3a7713b1edbc | 142 | QSPI_0 = QSPI0_BASE, |
AnnaBridge | 171:3a7713b1edbc | 143 | #endif |
AnnaBridge | 171:3a7713b1edbc | 144 | } QSPIName; |
AnnaBridge | 171:3a7713b1edbc | 145 | #endif |
AnnaBridge | 171:3a7713b1edbc | 146 | |
AnnaBridge | 171:3a7713b1edbc | 147 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 148 | } |
AnnaBridge | 171:3a7713b1edbc | 149 | #endif |
AnnaBridge | 171:3a7713b1edbc | 150 | |
AnnaBridge | 171:3a7713b1edbc | 151 | #endif |