mbed SDK library sources

Fork of mbed-src by mbed official

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Mon Sep 30 20:45:04 2013 +0100
Revision:
32:4742f6c694e8
Parent:
targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/PeripheralNames.h@30:91c1d09ada54
Synchronized with git revision e8afb9cd1deecf3a0ef2c140d38e3f2d68a2eb50

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 30:91c1d09ada54 1 /* mbed Microcontroller Library
mbed_official 30:91c1d09ada54 2 * Copyright (c) 2006-2013 ARM Limited
mbed_official 30:91c1d09ada54 3 *
mbed_official 30:91c1d09ada54 4 * Licensed under the Apache License, Version 2.0 (the "License");
mbed_official 30:91c1d09ada54 5 * you may not use this file except in compliance with the License.
mbed_official 30:91c1d09ada54 6 * You may obtain a copy of the License at
mbed_official 30:91c1d09ada54 7 *
mbed_official 30:91c1d09ada54 8 * http://www.apache.org/licenses/LICENSE-2.0
mbed_official 30:91c1d09ada54 9 *
mbed_official 30:91c1d09ada54 10 * Unless required by applicable law or agreed to in writing, software
mbed_official 30:91c1d09ada54 11 * distributed under the License is distributed on an "AS IS" BASIS,
mbed_official 30:91c1d09ada54 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbed_official 30:91c1d09ada54 13 * See the License for the specific language governing permissions and
mbed_official 30:91c1d09ada54 14 * limitations under the License.
mbed_official 30:91c1d09ada54 15 */
mbed_official 30:91c1d09ada54 16 #ifndef MBED_PERIPHERALNAMES_H
mbed_official 30:91c1d09ada54 17 #define MBED_PERIPHERALNAMES_H
mbed_official 30:91c1d09ada54 18
mbed_official 30:91c1d09ada54 19 #include "cmsis.h"
mbed_official 30:91c1d09ada54 20
mbed_official 30:91c1d09ada54 21 #ifdef __cplusplus
mbed_official 30:91c1d09ada54 22 extern "C" {
mbed_official 30:91c1d09ada54 23 #endif
mbed_official 30:91c1d09ada54 24
mbed_official 30:91c1d09ada54 25 typedef enum {
mbed_official 30:91c1d09ada54 26 UART_0 = (int)LPC_UART_BASE
mbed_official 30:91c1d09ada54 27 } UARTName;
mbed_official 30:91c1d09ada54 28
mbed_official 30:91c1d09ada54 29 typedef enum {
mbed_official 30:91c1d09ada54 30 I2C_0 = (int)LPC_I2C_BASE
mbed_official 30:91c1d09ada54 31 } I2CName;
mbed_official 30:91c1d09ada54 32
mbed_official 30:91c1d09ada54 33 typedef enum {
mbed_official 30:91c1d09ada54 34 ADC0_0 = 0,
mbed_official 30:91c1d09ada54 35 ADC0_1,
mbed_official 30:91c1d09ada54 36 ADC0_2,
mbed_official 30:91c1d09ada54 37 ADC0_3,
mbed_official 30:91c1d09ada54 38 ADC0_4,
mbed_official 30:91c1d09ada54 39 ADC0_5,
mbed_official 30:91c1d09ada54 40 ADC0_6,
mbed_official 30:91c1d09ada54 41 ADC0_7
mbed_official 30:91c1d09ada54 42 } ADCName;
mbed_official 30:91c1d09ada54 43
mbed_official 30:91c1d09ada54 44 typedef enum {
mbed_official 30:91c1d09ada54 45 SPI_0 = (int)LPC_SSP0_BASE,
mbed_official 30:91c1d09ada54 46 SPI_1 = (int)LPC_SSP1_BASE
mbed_official 30:91c1d09ada54 47 } SPIName;
mbed_official 30:91c1d09ada54 48
mbed_official 30:91c1d09ada54 49 typedef enum {
mbed_official 30:91c1d09ada54 50 PWM_1 = 0,
mbed_official 30:91c1d09ada54 51 PWM_2,
mbed_official 30:91c1d09ada54 52 PWM_3,
mbed_official 30:91c1d09ada54 53 PWM_4,
mbed_official 30:91c1d09ada54 54 PWM_5
mbed_official 30:91c1d09ada54 55 } PWMName;
mbed_official 30:91c1d09ada54 56
mbed_official 30:91c1d09ada54 57 #define STDIO_UART_TX USBTX
mbed_official 30:91c1d09ada54 58 #define STDIO_UART_RX USBRX
mbed_official 30:91c1d09ada54 59 #define STDIO_UART UART_0
mbed_official 30:91c1d09ada54 60
mbed_official 30:91c1d09ada54 61 #ifdef __cplusplus
mbed_official 30:91c1d09ada54 62 }
mbed_official 30:91c1d09ada54 63 #endif
mbed_official 30:91c1d09ada54 64
mbed_official 30:91c1d09ada54 65 #endif