mbed library sources

Dependents:   frdm_kl05z_gpio_test

Fork of mbed-src by mbed official

Committer:
bogdanm
Date:
Wed Aug 07 16:43:59 2013 +0300
Revision:
15:4892fe388435
Child:
50:b08ceb75017d
Added LPC4088 target and interrupt chaining code

Who changed what in which revision?

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