...

Dependents:   2doejemplo Labo_TRSE_Drone

Fork of mbed by mbed official

Committer:
jalp89
Date:
Fri Nov 29 09:39:46 2013 +0000
Revision:
71:7ec3cb6bbcc4
Parent:
70:673126e12c73
...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 70:673126e12c73 1 /* mbed Microcontroller Library
bogdanm 70:673126e12c73 2 * Copyright (c) 2006-2013 ARM Limited
bogdanm 70:673126e12c73 3 *
bogdanm 70:673126e12c73 4 * Licensed under the Apache License, Version 2.0 (the "License");
bogdanm 70:673126e12c73 5 * you may not use this file except in compliance with the License.
bogdanm 70:673126e12c73 6 * You may obtain a copy of the License at
bogdanm 70:673126e12c73 7 *
bogdanm 70:673126e12c73 8 * http://www.apache.org/licenses/LICENSE-2.0
bogdanm 70:673126e12c73 9 *
bogdanm 70:673126e12c73 10 * Unless required by applicable law or agreed to in writing, software
bogdanm 70:673126e12c73 11 * distributed under the License is distributed on an "AS IS" BASIS,
bogdanm 70:673126e12c73 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
bogdanm 70:673126e12c73 13 * See the License for the specific language governing permissions and
bogdanm 70:673126e12c73 14 * limitations under the License.
bogdanm 70:673126e12c73 15 */
bogdanm 70:673126e12c73 16 #ifndef MBED_PERIPHERALNAMES_H
bogdanm 70:673126e12c73 17 #define MBED_PERIPHERALNAMES_H
bogdanm 70:673126e12c73 18
bogdanm 70:673126e12c73 19 #include "cmsis.h"
bogdanm 70:673126e12c73 20
bogdanm 70:673126e12c73 21 #ifdef __cplusplus
bogdanm 70:673126e12c73 22 extern "C" {
bogdanm 70:673126e12c73 23 #endif
bogdanm 70:673126e12c73 24
bogdanm 70:673126e12c73 25 typedef enum {
bogdanm 70:673126e12c73 26 UART_0 = (int)LPC_UART0_BASE,
bogdanm 70:673126e12c73 27 UART_1 = (int)LPC_UART1_BASE,
bogdanm 70:673126e12c73 28 UART_2 = (int)LPC_UART2_BASE,
bogdanm 70:673126e12c73 29 UART_3 = (int)LPC_UART3_BASE,
bogdanm 70:673126e12c73 30 UART_4 = (int)LPC_UART4_BASE
bogdanm 70:673126e12c73 31 } UARTName;
bogdanm 70:673126e12c73 32
bogdanm 70:673126e12c73 33 typedef enum {
bogdanm 70:673126e12c73 34 ADC0_0 = 0,
bogdanm 70:673126e12c73 35 ADC0_1,
bogdanm 70:673126e12c73 36 ADC0_2,
bogdanm 70:673126e12c73 37 ADC0_3,
bogdanm 70:673126e12c73 38 ADC0_4,
bogdanm 70:673126e12c73 39 ADC0_5,
bogdanm 70:673126e12c73 40 ADC0_6,
bogdanm 70:673126e12c73 41 ADC0_7
bogdanm 70:673126e12c73 42 } ADCName;
bogdanm 70:673126e12c73 43
bogdanm 70:673126e12c73 44 typedef enum {
bogdanm 70:673126e12c73 45 DAC_0 = 0
bogdanm 70:673126e12c73 46 } DACName;
bogdanm 70:673126e12c73 47
bogdanm 70:673126e12c73 48 typedef enum {
bogdanm 70:673126e12c73 49 SPI_0 = (int)LPC_SSP0_BASE,
bogdanm 70:673126e12c73 50 SPI_1 = (int)LPC_SSP1_BASE,
bogdanm 70:673126e12c73 51 SPI_2 = (int)LPC_SSP2_BASE
bogdanm 70:673126e12c73 52 } SPIName;
bogdanm 70:673126e12c73 53
bogdanm 70:673126e12c73 54 typedef enum {
bogdanm 70:673126e12c73 55 I2C_0 = (int)LPC_I2C0_BASE,
bogdanm 70:673126e12c73 56 I2C_1 = (int)LPC_I2C1_BASE,
bogdanm 70:673126e12c73 57 I2C_2 = (int)LPC_I2C2_BASE
bogdanm 70:673126e12c73 58 } I2CName;
bogdanm 70:673126e12c73 59
bogdanm 70:673126e12c73 60 typedef enum {
bogdanm 70:673126e12c73 61 PWM0_1 = 1,
bogdanm 70:673126e12c73 62 PWM0_2,
bogdanm 70:673126e12c73 63 PWM0_3,
bogdanm 70:673126e12c73 64 PWM0_4,
bogdanm 70:673126e12c73 65 PWM0_5,
bogdanm 70:673126e12c73 66 PWM0_6,
bogdanm 70:673126e12c73 67 PWM1_1,
bogdanm 70:673126e12c73 68 PWM1_2,
bogdanm 70:673126e12c73 69 PWM1_3,
bogdanm 70:673126e12c73 70 PWM1_4,
bogdanm 70:673126e12c73 71 PWM1_5,
bogdanm 70:673126e12c73 72 PWM1_6
bogdanm 70:673126e12c73 73 } PWMName;
bogdanm 70:673126e12c73 74
bogdanm 70:673126e12c73 75 typedef enum {
bogdanm 70:673126e12c73 76 CAN_1 = (int)LPC_CAN1_BASE,
bogdanm 70:673126e12c73 77 CAN_2 = (int)LPC_CAN2_BASE
bogdanm 70:673126e12c73 78 } CANName;
bogdanm 70:673126e12c73 79
bogdanm 70:673126e12c73 80 #define STDIO_UART_TX USBTX
bogdanm 70:673126e12c73 81 #define STDIO_UART_RX USBRX
bogdanm 70:673126e12c73 82 #define STDIO_UART UART_0
bogdanm 70:673126e12c73 83
bogdanm 70:673126e12c73 84 #ifdef __cplusplus
bogdanm 70:673126e12c73 85 }
bogdanm 70:673126e12c73 86 #endif
bogdanm 70:673126e12c73 87
bogdanm 70:673126e12c73 88 #endif