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:
bogdanm
Date:
Tue Sep 10 15:14:19 2013 +0300
Revision:
20:4263a77256ae
Parent:
19:398f4c622e1b
Child:
26:3a65fe875a02
Sync with git revision 171dda705c947bf910926a0b73d6a4797802554d

Who changed what in which revision?

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