mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
AnnaBridge
Date:
Wed Feb 20 22:31:08 2019 +0000
Revision:
189:f392fc9709a3
Parent:
187:0387e8f68319
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 147:30b64687e01f 1 /* mbed Microcontroller Library
<> 147:30b64687e01f 2 *******************************************************************************
<> 147:30b64687e01f 3 * Copyright (c) 2015, STMicroelectronics
<> 147:30b64687e01f 4 * All rights reserved.
<> 147:30b64687e01f 5 *
<> 147:30b64687e01f 6 * Redistribution and use in source and binary forms, with or without
<> 147:30b64687e01f 7 * modification, are permitted provided that the following conditions are met:
<> 147:30b64687e01f 8 *
<> 147:30b64687e01f 9 * 1. Redistributions of source code must retain the above copyright notice,
<> 147:30b64687e01f 10 * this list of conditions and the following disclaimer.
<> 147:30b64687e01f 11 * 2. Redistributions in binary form must reproduce the above copyright notice,
<> 147:30b64687e01f 12 * this list of conditions and the following disclaimer in the documentation
<> 147:30b64687e01f 13 * and/or other materials provided with the distribution.
<> 147:30b64687e01f 14 * 3. Neither the name of STMicroelectronics nor the names of its contributors
<> 147:30b64687e01f 15 * may be used to endorse or promote products derived from this software
<> 147:30b64687e01f 16 * without specific prior written permission.
<> 147:30b64687e01f 17 *
<> 147:30b64687e01f 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
<> 147:30b64687e01f 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
<> 147:30b64687e01f 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
<> 147:30b64687e01f 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
<> 147:30b64687e01f 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
<> 147:30b64687e01f 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
<> 147:30b64687e01f 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
<> 147:30b64687e01f 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
<> 147:30b64687e01f 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<> 147:30b64687e01f 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<> 147:30b64687e01f 28 *******************************************************************************
<> 147:30b64687e01f 29 */
<> 147:30b64687e01f 30 #ifndef MBED_PERIPHERALNAMES_H
<> 147:30b64687e01f 31 #define MBED_PERIPHERALNAMES_H
<> 147:30b64687e01f 32
<> 147:30b64687e01f 33 #include "cmsis.h"
<> 147:30b64687e01f 34
<> 147:30b64687e01f 35 #ifdef __cplusplus
<> 147:30b64687e01f 36 extern "C" {
<> 147:30b64687e01f 37 #endif
<> 147:30b64687e01f 38
<> 147:30b64687e01f 39 typedef enum {
<> 147:30b64687e01f 40 ADC_1 = (int)ADC1_BASE,
<> 147:30b64687e01f 41 ADC_2 = (int)ADC2_BASE,
<> 147:30b64687e01f 42 ADC_3 = (int)ADC3_BASE,
<> 147:30b64687e01f 43 ADC_4 = (int)ADC4_BASE
<> 147:30b64687e01f 44 } ADCName;
<> 147:30b64687e01f 45
<> 147:30b64687e01f 46 typedef enum {
<> 147:30b64687e01f 47 DAC_1 = (int)DAC_BASE
<> 147:30b64687e01f 48 } DACName;
<> 147:30b64687e01f 49
<> 147:30b64687e01f 50 typedef enum {
<> 147:30b64687e01f 51 UART_1 = (int)USART1_BASE,
<> 147:30b64687e01f 52 UART_2 = (int)USART2_BASE,
<> 147:30b64687e01f 53 UART_3 = (int)USART3_BASE,
<> 147:30b64687e01f 54 UART_4 = (int)UART4_BASE,
<> 147:30b64687e01f 55 UART_5 = (int)UART5_BASE
<> 147:30b64687e01f 56 } UARTName;
<> 147:30b64687e01f 57
<> 147:30b64687e01f 58 typedef enum {
<> 147:30b64687e01f 59 SPI_1 = (int)SPI1_BASE,
<> 147:30b64687e01f 60 SPI_2 = (int)SPI2_BASE,
<> 147:30b64687e01f 61 SPI_3 = (int)SPI3_BASE,
AnnaBridge 187:0387e8f68319 62 SPI_4 = (int)SPI4_BASE
<> 147:30b64687e01f 63
<> 147:30b64687e01f 64 } SPIName;
<> 147:30b64687e01f 65
<> 147:30b64687e01f 66 typedef enum {
<> 147:30b64687e01f 67 I2C_1 = (int)I2C1_BASE,
<> 147:30b64687e01f 68 I2C_2 = (int)I2C2_BASE,
<> 147:30b64687e01f 69 I2C_3 = (int)I2C3_BASE
<> 147:30b64687e01f 70 } I2CName;
<> 147:30b64687e01f 71
<> 147:30b64687e01f 72 typedef enum {
<> 147:30b64687e01f 73 PWM_1 = (int)TIM1_BASE,
<> 147:30b64687e01f 74 PWM_2 = (int)TIM2_BASE,
<> 147:30b64687e01f 75 PWM_3 = (int)TIM3_BASE,
<> 147:30b64687e01f 76 PWM_4 = (int)TIM4_BASE,
<> 147:30b64687e01f 77 PWM_8 = (int)TIM8_BASE,
<> 147:30b64687e01f 78 PWM_15 = (int)TIM15_BASE,
<> 147:30b64687e01f 79 PWM_16 = (int)TIM16_BASE,
<> 147:30b64687e01f 80 PWM_17 = (int)TIM17_BASE,
AnnaBridge 187:0387e8f68319 81 PWM_20 = (int)TIM20_BASE
<> 147:30b64687e01f 82 } PWMName;
<> 147:30b64687e01f 83
<> 147:30b64687e01f 84 typedef enum {
<> 147:30b64687e01f 85 CAN_1 = (int)CAN_BASE
<> 147:30b64687e01f 86 } CANName;
<> 147:30b64687e01f 87
<> 147:30b64687e01f 88 #ifdef __cplusplus
<> 147:30b64687e01f 89 }
<> 147:30b64687e01f 90 #endif
<> 147:30b64687e01f 91
<> 147:30b64687e01f 92 #endif