4545

Dependents:   LSS_Rev_1

Fork of mbed-dev by Umar Naeem

Committer:
<>
Date:
Fri Sep 02 15:07:44 2016 +0100
Revision:
144:ef7eb2e8f9f7
Child:
147:30b64687e01f
This updates the lib to the mbed lib v125

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 ******************************************************************************
<> 144:ef7eb2e8f9f7 10 * @copyright (c) 2012 ON Semiconductor. All rights reserved.
<> 144:ef7eb2e8f9f7 11 * ON Semiconductor is supplying this software for use with ON Semiconductor
<> 144:ef7eb2e8f9f7 12 * processor based microcontrollers only.
<> 144:ef7eb2e8f9f7 13 *
<> 144:ef7eb2e8f9f7 14 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
<> 144:ef7eb2e8f9f7 15 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
<> 144:ef7eb2e8f9f7 16 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
<> 144:ef7eb2e8f9f7 17 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
<> 144:ef7eb2e8f9f7 18 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
<> 144:ef7eb2e8f9f7 19 * @endinternal
<> 144:ef7eb2e8f9f7 20 *
<> 144:ef7eb2e8f9f7 21 * @ingroup debug
<> 144:ef7eb2e8f9f7 22 */
<> 144:ef7eb2e8f9f7 23
<> 144:ef7eb2e8f9f7 24 #ifndef MBED_PERIPHERALNAMES_H
<> 144:ef7eb2e8f9f7 25 #define MBED_PERIPHERALNAMES_H
<> 144:ef7eb2e8f9f7 26
<> 144:ef7eb2e8f9f7 27 #include "cmsis.h"
<> 144:ef7eb2e8f9f7 28
<> 144:ef7eb2e8f9f7 29 #include "memory_map.h" /* This is needed because enums use base adresses */
<> 144:ef7eb2e8f9f7 30 #include "PinNames.h"
<> 144:ef7eb2e8f9f7 31 #ifdef __cplusplus
<> 144:ef7eb2e8f9f7 32 extern "C" {
<> 144:ef7eb2e8f9f7 33 #endif
<> 144:ef7eb2e8f9f7 34
<> 144:ef7eb2e8f9f7 35 typedef enum {
<> 144:ef7eb2e8f9f7 36 ADC_0 = (int)ADCREG_BASE
<> 144:ef7eb2e8f9f7 37 } ADCName;
<> 144:ef7eb2e8f9f7 38
<> 144:ef7eb2e8f9f7 39 typedef enum {
<> 144:ef7eb2e8f9f7 40 UART_0 = (int)UART1REG_BASE,
<> 144:ef7eb2e8f9f7 41 UART_1 = (int)UART2REG_BASE,
<> 144:ef7eb2e8f9f7 42 } UARTName;
<> 144:ef7eb2e8f9f7 43
<> 144:ef7eb2e8f9f7 44 #define STDIO_UART_TX USBTX
<> 144:ef7eb2e8f9f7 45 #define STDIO_UART_RX USBRX
<> 144:ef7eb2e8f9f7 46 #define STDIO_UART UART_0
<> 144:ef7eb2e8f9f7 47
<> 144:ef7eb2e8f9f7 48 typedef enum {
<> 144:ef7eb2e8f9f7 49 SPI_0 = (int)SPI1REG_BASE,
<> 144:ef7eb2e8f9f7 50 SPI_1 = (int)SPI2REG_BASE
<> 144:ef7eb2e8f9f7 51 } SPIName;
<> 144:ef7eb2e8f9f7 52
<> 144:ef7eb2e8f9f7 53 typedef enum {
<> 144:ef7eb2e8f9f7 54 I2C_0 = (int)I2C1REG_BASE,
<> 144:ef7eb2e8f9f7 55 I2C_1 = (int)I2C2REG_BASE
<> 144:ef7eb2e8f9f7 56 } I2CName;
<> 144:ef7eb2e8f9f7 57
<> 144:ef7eb2e8f9f7 58 typedef enum {
<> 144:ef7eb2e8f9f7 59 PWM_0 = (int)PWMREG_BASE,
<> 144:ef7eb2e8f9f7 60 } PWMName;
<> 144:ef7eb2e8f9f7 61
<> 144:ef7eb2e8f9f7 62 #ifdef __cplusplus
<> 144:ef7eb2e8f9f7 63 }
<> 144:ef7eb2e8f9f7 64 #endif
<> 144:ef7eb2e8f9f7 65
<> 144:ef7eb2e8f9f7 66 #endif