mbed library sources. Supersedes mbed-src. Edited target satm32f446 for user USART3 pins

Dependents:   IGLOO_board

Fork of mbed-dev by mbed official

Committer:
ua1arn
Date:
Mon Jul 30 12:31:10 2018 +0000
Revision:
188:3f10722804f9
Parent:
181:57724642e740
before add multi-configuration USB descriptors

Who changed what in which revision?

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