GameOpener / mbed-src

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Thu Feb 12 14:45:07 2015 +0000
Revision:
474:cfdbf9d61292
Synchronized with git revision fba139024133cfe86f2ca5bf2914e30e473e5bcc

Full URL: https://github.com/mbedmicro/mbed/commit/fba139024133cfe86f2ca5bf2914e30e473e5bcc/

Add support for LPC11U34_421 and AppNearMe's MicroNFCBoard

Who changed what in which revision?

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