mbed library sources. Supersedes mbed-src.

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

Committer:
AnnaBridge
Date:
Fri Feb 16 16:09:33 2018 +0000
Revision:
181:57724642e740
Parent:
149:156823d33999
mbed-dev library. Release version 159.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 144:ef7eb2e8f9f7 1 /**
<> 144:ef7eb2e8f9f7 2 ******************************************************************************
<> 144:ef7eb2e8f9f7 3 * @file peripheralnames.h
<> 144:ef7eb2e8f9f7 4 * @brief Implements an assertion.
<> 144:ef7eb2e8f9f7 5 * @internal
<> 144:ef7eb2e8f9f7 6 * @author ON Semiconductor
<> 144:ef7eb2e8f9f7 7 * $Rev: 0.1 $
<> 144:ef7eb2e8f9f7 8 * $Date: 2015-11-07 $
<> 144:ef7eb2e8f9f7 9 ******************************************************************************
<> 147:30b64687e01f 10 * Copyright 2016 Semiconductor Components Industries LLC (d/b/a “ON Semiconductor”).
<> 147:30b64687e01f 11 * All rights reserved. This software and/or documentation is licensed by ON Semiconductor
<> 147:30b64687e01f 12 * under limited terms and conditions. The terms and conditions pertaining to the software
<> 147:30b64687e01f 13 * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf
<> 147:30b64687e01f 14 * (“ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software”) and
<> 147:30b64687e01f 15 * if applicable the software license agreement. Do not use this software and/or
<> 147:30b64687e01f 16 * documentation unless you have carefully read and you agree to the limited terms and
<> 147:30b64687e01f 17 * conditions. By using this software and/or documentation, you agree to the limited
<> 147:30b64687e01f 18 * terms and conditions.
<> 144:ef7eb2e8f9f7 19 *
<> 144:ef7eb2e8f9f7 20 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
<> 144:ef7eb2e8f9f7 21 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
<> 144:ef7eb2e8f9f7 22 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
<> 144:ef7eb2e8f9f7 23 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
<> 144:ef7eb2e8f9f7 24 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
<> 144:ef7eb2e8f9f7 25 * @endinternal
<> 144:ef7eb2e8f9f7 26 *
<> 144:ef7eb2e8f9f7 27 * @ingroup debug
<> 144:ef7eb2e8f9f7 28 */
<> 144:ef7eb2e8f9f7 29
<> 144:ef7eb2e8f9f7 30 #ifndef MBED_PERIPHERALNAMES_H
<> 144:ef7eb2e8f9f7 31 #define MBED_PERIPHERALNAMES_H
<> 144:ef7eb2e8f9f7 32
<> 144:ef7eb2e8f9f7 33 #include "cmsis.h"
<> 144:ef7eb2e8f9f7 34
<> 144:ef7eb2e8f9f7 35 #include "memory_map.h" /* This is needed because enums use base adresses */
<> 144:ef7eb2e8f9f7 36 #include "PinNames.h"
<> 144:ef7eb2e8f9f7 37 #ifdef __cplusplus
<> 144:ef7eb2e8f9f7 38 extern "C" {
<> 144:ef7eb2e8f9f7 39 #endif
<> 144:ef7eb2e8f9f7 40
<> 144:ef7eb2e8f9f7 41 typedef enum {
<> 144:ef7eb2e8f9f7 42 ADC_0 = (int)ADCREG_BASE
<> 144:ef7eb2e8f9f7 43 } ADCName;
<> 144:ef7eb2e8f9f7 44
<> 144:ef7eb2e8f9f7 45 typedef enum {
<> 144:ef7eb2e8f9f7 46 UART_0 = (int)UART1REG_BASE,
<> 144:ef7eb2e8f9f7 47 UART_1 = (int)UART2REG_BASE,
<> 144:ef7eb2e8f9f7 48 } UARTName;
<> 144:ef7eb2e8f9f7 49
<> 144:ef7eb2e8f9f7 50 #define STDIO_UART_TX USBTX
<> 144:ef7eb2e8f9f7 51 #define STDIO_UART_RX USBRX
<> 144:ef7eb2e8f9f7 52 #define STDIO_UART UART_0
<> 144:ef7eb2e8f9f7 53
<> 144:ef7eb2e8f9f7 54 typedef enum {
<> 144:ef7eb2e8f9f7 55 SPI_0 = (int)SPI1REG_BASE,
<> 144:ef7eb2e8f9f7 56 SPI_1 = (int)SPI2REG_BASE
<> 144:ef7eb2e8f9f7 57 } SPIName;
<> 144:ef7eb2e8f9f7 58
<> 144:ef7eb2e8f9f7 59 typedef enum {
<> 144:ef7eb2e8f9f7 60 I2C_0 = (int)I2C1REG_BASE,
<> 144:ef7eb2e8f9f7 61 I2C_1 = (int)I2C2REG_BASE
<> 144:ef7eb2e8f9f7 62 } I2CName;
<> 144:ef7eb2e8f9f7 63
<> 144:ef7eb2e8f9f7 64 typedef enum {
<> 144:ef7eb2e8f9f7 65 PWM_0 = (int)PWMREG_BASE,
<> 144:ef7eb2e8f9f7 66 } PWMName;
<> 144:ef7eb2e8f9f7 67
<> 144:ef7eb2e8f9f7 68 #ifdef __cplusplus
<> 144:ef7eb2e8f9f7 69 }
<> 144:ef7eb2e8f9f7 70 #endif
<> 144:ef7eb2e8f9f7 71
<> 144:ef7eb2e8f9f7 72 #endif