mbed library sources. Supersedes mbed-src.

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

Committer:
AnnaBridge
Date:
Thu Nov 08 11:46:34 2018 +0000
Revision:
188:bcfe06ba3d64
Parent:
181:57724642e740
mbed-dev library. Release version 164

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) 2016, 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 } ADCName;
<> 147:30b64687e01f 44
<> 147:30b64687e01f 45 typedef enum {
<> 147:30b64687e01f 46 DAC_1 = DAC_BASE
<> 147:30b64687e01f 47 } DACName;
<> 147:30b64687e01f 48
<> 147:30b64687e01f 49 typedef enum {
<> 147:30b64687e01f 50 UART_1 = (int)USART1_BASE,
<> 147:30b64687e01f 51 UART_2 = (int)USART2_BASE,
<> 147:30b64687e01f 52 UART_3 = (int)USART3_BASE,
<> 147:30b64687e01f 53 UART_4 = (int)UART4_BASE,
<> 147:30b64687e01f 54 UART_5 = (int)UART5_BASE,
<> 147:30b64687e01f 55 UART_6 = (int)USART6_BASE,
<> 147:30b64687e01f 56 UART_7 = (int)UART7_BASE,
<> 147:30b64687e01f 57 UART_8 = (int)UART8_BASE
<> 147:30b64687e01f 58 } UARTName;
<> 147:30b64687e01f 59
<> 147:30b64687e01f 60 typedef enum {
<> 147:30b64687e01f 61 SPI_1 = (int)SPI1_BASE,
<> 147:30b64687e01f 62 SPI_2 = (int)SPI2_BASE,
<> 147:30b64687e01f 63 SPI_3 = (int)SPI3_BASE,
<> 147:30b64687e01f 64 SPI_4 = (int)SPI4_BASE,
<> 147:30b64687e01f 65 SPI_5 = (int)SPI5_BASE,
<> 147:30b64687e01f 66 SPI_6 = (int)SPI6_BASE
<> 147:30b64687e01f 67 } SPIName;
<> 147:30b64687e01f 68
<> 147:30b64687e01f 69 typedef enum {
<> 147:30b64687e01f 70 I2C_1 = (int)I2C1_BASE,
<> 147:30b64687e01f 71 I2C_2 = (int)I2C2_BASE,
<> 147:30b64687e01f 72 I2C_3 = (int)I2C3_BASE,
<> 147:30b64687e01f 73 I2C_4 = (int)I2C4_BASE
<> 147:30b64687e01f 74 } I2CName;
<> 147:30b64687e01f 75
<> 147:30b64687e01f 76 typedef enum {
<> 147:30b64687e01f 77 PWM_1 = (int)TIM1_BASE,
<> 147:30b64687e01f 78 PWM_2 = (int)TIM2_BASE,
<> 147:30b64687e01f 79 PWM_3 = (int)TIM3_BASE,
<> 147:30b64687e01f 80 PWM_4 = (int)TIM4_BASE,
<> 147:30b64687e01f 81 PWM_5 = (int)TIM5_BASE,
<> 147:30b64687e01f 82 PWM_8 = (int)TIM8_BASE,
<> 147:30b64687e01f 83 PWM_9 = (int)TIM9_BASE,
<> 147:30b64687e01f 84 PWM_10 = (int)TIM10_BASE,
<> 147:30b64687e01f 85 PWM_11 = (int)TIM11_BASE,
<> 147:30b64687e01f 86 PWM_12 = (int)TIM12_BASE,
<> 147:30b64687e01f 87 PWM_13 = (int)TIM13_BASE,
<> 147:30b64687e01f 88 PWM_14 = (int)TIM14_BASE
<> 147:30b64687e01f 89 } PWMName;
<> 147:30b64687e01f 90
<> 147:30b64687e01f 91 typedef enum {
<> 147:30b64687e01f 92 CAN_1 = (int)CAN1_BASE,
Anna Bridge 180:96ed750bd169 93 CAN_2 = (int)CAN2_BASE,
Anna Bridge 180:96ed750bd169 94 CAN_3 = (int)CAN3_BASE
<> 147:30b64687e01f 95 } CANName;
<> 147:30b64687e01f 96
AnnaBridge 188:bcfe06ba3d64 97 typedef enum {
AnnaBridge 188:bcfe06ba3d64 98 QSPI_1 = (int)QSPI_R_BASE,
AnnaBridge 188:bcfe06ba3d64 99 } QSPIName;
AnnaBridge 188:bcfe06ba3d64 100
<> 147:30b64687e01f 101 #ifdef __cplusplus
<> 147:30b64687e01f 102 }
<> 147:30b64687e01f 103 #endif
<> 147:30b64687e01f 104
<> 147:30b64687e01f 105 #endif