rau cha / mbed-src-I2CWaitFix

Fork of mbed-src by mbed official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PeripheralNames.h Source File

PeripheralNames.h

00001 /* mbed Microcontroller Library
00002  * Copyright (c) 2006-2013 ARM Limited
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 #ifndef MBED_PERIPHERALNAMES_H
00017 #define MBED_PERIPHERALNAMES_H
00018 
00019 #include "cmsis.h"
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00025 typedef enum {
00026     UART_0 = (int)LPC_USART_BASE
00027 } UARTName;
00028 
00029 typedef enum {
00030     I2C_0 = (int)LPC_I2C_BASE
00031 } I2CName;
00032 
00033 typedef enum {
00034     ADC0_0 = 0,
00035     ADC0_1,
00036     ADC0_2,
00037     ADC0_3,
00038     ADC0_4,
00039     ADC0_5,
00040     ADC0_6,
00041     ADC0_7
00042 } ADCName;
00043 
00044 typedef enum {
00045     SPI_0 = (int)LPC_SSP0_BASE,
00046     SPI_1 = (int)LPC_SSP1_BASE
00047 } SPIName;
00048 
00049 typedef enum {
00050     PWM_1 = 0,
00051     PWM_2,
00052     PWM_3,
00053     PWM_4,
00054     PWM_5,
00055     PWM_6,
00056     PWM_7,
00057     PWM_8,
00058     PWM_9,
00059     PWM_10,
00060     PWM_11
00061 } PWMName;
00062 
00063 #define STDIO_UART_TX     USBTX
00064 #define STDIO_UART_RX     USBRX
00065 #define STDIO_UART        UART_0
00066 
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070 
00071 #endif