mbed
Fork of mbed-dev by
targets/TARGET_Silicon_Labs/TARGET_EFM32/PeripheralNames.h@182:57724642e740, 2018-02-16 (annotated)
- Committer:
- AnnaBridge
- Date:
- Fri Feb 16 16:09:33 2018 +0000
- Revision:
- 182:57724642e740
mbed-dev library. Release version 159.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 182:57724642e740 | 1 | /***************************************************************************//** |
AnnaBridge | 182:57724642e740 | 2 | * @file PeripheralNames.h |
AnnaBridge | 182:57724642e740 | 3 | ******************************************************************************* |
AnnaBridge | 182:57724642e740 | 4 | * @section License |
AnnaBridge | 182:57724642e740 | 5 | * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b> |
AnnaBridge | 182:57724642e740 | 6 | ******************************************************************************* |
AnnaBridge | 182:57724642e740 | 7 | * |
AnnaBridge | 182:57724642e740 | 8 | * SPDX-License-Identifier: Apache-2.0 |
AnnaBridge | 182:57724642e740 | 9 | * |
AnnaBridge | 182:57724642e740 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
AnnaBridge | 182:57724642e740 | 11 | * not use this file except in compliance with the License. |
AnnaBridge | 182:57724642e740 | 12 | * You may obtain a copy of the License at |
AnnaBridge | 182:57724642e740 | 13 | * |
AnnaBridge | 182:57724642e740 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 182:57724642e740 | 15 | * |
AnnaBridge | 182:57724642e740 | 16 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 182:57724642e740 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
AnnaBridge | 182:57724642e740 | 18 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 182:57724642e740 | 19 | * See the License for the specific language governing permissions and |
AnnaBridge | 182:57724642e740 | 20 | * limitations under the License. |
AnnaBridge | 182:57724642e740 | 21 | * |
AnnaBridge | 182:57724642e740 | 22 | ******************************************************************************/ |
AnnaBridge | 182:57724642e740 | 23 | #ifndef MBED_PERIPHERALNAMES_H |
AnnaBridge | 182:57724642e740 | 24 | #define MBED_PERIPHERALNAMES_H |
AnnaBridge | 182:57724642e740 | 25 | |
AnnaBridge | 182:57724642e740 | 26 | #include "em_adc.h" |
AnnaBridge | 182:57724642e740 | 27 | #include "em_usart.h" |
AnnaBridge | 182:57724642e740 | 28 | #include "em_i2c.h" |
AnnaBridge | 182:57724642e740 | 29 | |
AnnaBridge | 182:57724642e740 | 30 | #ifdef __cplusplus |
AnnaBridge | 182:57724642e740 | 31 | extern "C" { |
AnnaBridge | 182:57724642e740 | 32 | #endif |
AnnaBridge | 182:57724642e740 | 33 | |
AnnaBridge | 182:57724642e740 | 34 | #if DEVICE_ANALOGIN |
AnnaBridge | 182:57724642e740 | 35 | typedef enum { |
AnnaBridge | 182:57724642e740 | 36 | #ifdef ADC0_BASE |
AnnaBridge | 182:57724642e740 | 37 | ADC_0 = ADC0_BASE, |
AnnaBridge | 182:57724642e740 | 38 | #endif |
AnnaBridge | 182:57724642e740 | 39 | } ADCName; |
AnnaBridge | 182:57724642e740 | 40 | #endif |
AnnaBridge | 182:57724642e740 | 41 | |
AnnaBridge | 182:57724642e740 | 42 | #if DEVICE_ANALOGOUT |
AnnaBridge | 182:57724642e740 | 43 | typedef enum { |
AnnaBridge | 182:57724642e740 | 44 | #ifdef DAC0_BASE |
AnnaBridge | 182:57724642e740 | 45 | DAC_0 = DAC0_BASE, |
AnnaBridge | 182:57724642e740 | 46 | #endif |
AnnaBridge | 182:57724642e740 | 47 | } DACName; |
AnnaBridge | 182:57724642e740 | 48 | #endif |
AnnaBridge | 182:57724642e740 | 49 | |
AnnaBridge | 182:57724642e740 | 50 | #if DEVICE_I2C |
AnnaBridge | 182:57724642e740 | 51 | typedef enum { |
AnnaBridge | 182:57724642e740 | 52 | #ifdef I2C0_BASE |
AnnaBridge | 182:57724642e740 | 53 | I2C_0 = I2C0_BASE, |
AnnaBridge | 182:57724642e740 | 54 | #endif |
AnnaBridge | 182:57724642e740 | 55 | #ifdef I2C1_BASE |
AnnaBridge | 182:57724642e740 | 56 | I2C_1 = I2C1_BASE, |
AnnaBridge | 182:57724642e740 | 57 | #endif |
AnnaBridge | 182:57724642e740 | 58 | } I2CName; |
AnnaBridge | 182:57724642e740 | 59 | #endif |
AnnaBridge | 182:57724642e740 | 60 | |
AnnaBridge | 182:57724642e740 | 61 | #if DEVICE_PWMOUT |
AnnaBridge | 182:57724642e740 | 62 | typedef enum { |
AnnaBridge | 182:57724642e740 | 63 | #if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN) |
AnnaBridge | 182:57724642e740 | 64 | PWM_CH0 = 0, |
AnnaBridge | 182:57724642e740 | 65 | #endif |
AnnaBridge | 182:57724642e740 | 66 | #if defined(TIMER_ROUTE_CC1PEN) || defined(TIMER_ROUTEPEN_CC1PEN) |
AnnaBridge | 182:57724642e740 | 67 | PWM_CH1 = 1, |
AnnaBridge | 182:57724642e740 | 68 | #endif |
AnnaBridge | 182:57724642e740 | 69 | #if defined(TIMER_ROUTE_CC2PEN) || defined(TIMER_ROUTEPEN_CC2PEN) |
AnnaBridge | 182:57724642e740 | 70 | PWM_CH2 = 2, |
AnnaBridge | 182:57724642e740 | 71 | #endif |
AnnaBridge | 182:57724642e740 | 72 | #if defined(TIMER_ROUTE_CC3PEN) || defined(TIMER_ROUTEPEN_CC3PEN) |
AnnaBridge | 182:57724642e740 | 73 | PWM_CH3 = 3, |
AnnaBridge | 182:57724642e740 | 74 | #endif |
AnnaBridge | 182:57724642e740 | 75 | } PWMName; |
AnnaBridge | 182:57724642e740 | 76 | #endif |
AnnaBridge | 182:57724642e740 | 77 | |
AnnaBridge | 182:57724642e740 | 78 | #if DEVICE_SPI |
AnnaBridge | 182:57724642e740 | 79 | typedef enum { |
AnnaBridge | 182:57724642e740 | 80 | #ifdef USART0_BASE |
AnnaBridge | 182:57724642e740 | 81 | SPI_0 = USART0_BASE, |
AnnaBridge | 182:57724642e740 | 82 | #endif |
AnnaBridge | 182:57724642e740 | 83 | #ifdef USART1_BASE |
AnnaBridge | 182:57724642e740 | 84 | SPI_1 = USART1_BASE, |
AnnaBridge | 182:57724642e740 | 85 | #endif |
AnnaBridge | 182:57724642e740 | 86 | #ifdef USART2_BASE |
AnnaBridge | 182:57724642e740 | 87 | SPI_2 = USART2_BASE, |
AnnaBridge | 182:57724642e740 | 88 | #endif |
AnnaBridge | 182:57724642e740 | 89 | #ifdef USART3_BASE |
AnnaBridge | 182:57724642e740 | 90 | SPI_3 = USART3_BASE, |
AnnaBridge | 182:57724642e740 | 91 | #endif |
AnnaBridge | 182:57724642e740 | 92 | } SPIName; |
AnnaBridge | 182:57724642e740 | 93 | #endif |
AnnaBridge | 182:57724642e740 | 94 | |
AnnaBridge | 182:57724642e740 | 95 | #if DEVICE_SERIAL |
AnnaBridge | 182:57724642e740 | 96 | typedef enum { |
AnnaBridge | 182:57724642e740 | 97 | #ifdef USART0_BASE |
AnnaBridge | 182:57724642e740 | 98 | USART_0 = USART0_BASE, |
AnnaBridge | 182:57724642e740 | 99 | #endif |
AnnaBridge | 182:57724642e740 | 100 | #ifdef USART1_BASE |
AnnaBridge | 182:57724642e740 | 101 | USART_1 = USART1_BASE, |
AnnaBridge | 182:57724642e740 | 102 | #endif |
AnnaBridge | 182:57724642e740 | 103 | #ifdef USART2_BASE |
AnnaBridge | 182:57724642e740 | 104 | USART_2 = USART2_BASE, |
AnnaBridge | 182:57724642e740 | 105 | #endif |
AnnaBridge | 182:57724642e740 | 106 | #ifdef USART3_BASE |
AnnaBridge | 182:57724642e740 | 107 | USART_3 = USART3_BASE, |
AnnaBridge | 182:57724642e740 | 108 | #endif |
AnnaBridge | 182:57724642e740 | 109 | #ifdef UART0_BASE |
AnnaBridge | 182:57724642e740 | 110 | UART_0 = UART0_BASE, |
AnnaBridge | 182:57724642e740 | 111 | #endif |
AnnaBridge | 182:57724642e740 | 112 | #ifdef UART1_BASE |
AnnaBridge | 182:57724642e740 | 113 | UART_1 = UART1_BASE, |
AnnaBridge | 182:57724642e740 | 114 | #endif |
AnnaBridge | 182:57724642e740 | 115 | #ifdef LEUART0_BASE |
AnnaBridge | 182:57724642e740 | 116 | LEUART_0 = LEUART0_BASE, |
AnnaBridge | 182:57724642e740 | 117 | #endif |
AnnaBridge | 182:57724642e740 | 118 | #ifdef LEUART1_BASE |
AnnaBridge | 182:57724642e740 | 119 | LEUART_1 = LEUART1_BASE, |
AnnaBridge | 182:57724642e740 | 120 | #endif |
AnnaBridge | 182:57724642e740 | 121 | } UARTName; |
AnnaBridge | 182:57724642e740 | 122 | #endif |
AnnaBridge | 182:57724642e740 | 123 | |
AnnaBridge | 182:57724642e740 | 124 | #ifdef __cplusplus |
AnnaBridge | 182:57724642e740 | 125 | } |
AnnaBridge | 182:57724642e740 | 126 | #endif |
AnnaBridge | 182:57724642e740 | 127 | |
AnnaBridge | 182:57724642e740 | 128 | #endif |