mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PeripheralNames.h@243:1b2bee05fe98, 2014-06-27 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Jun 27 16:30:08 2014 +0100
- Revision:
- 243:1b2bee05fe98
Synchronized with git revision f74be83b0461a86c139b029e42d632c278656b83
Full URL: https://github.com/mbedmicro/mbed/commit/f74be83b0461a86c139b029e42d632c278656b83/
LPCCAPPUCCINO] initial port
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 243:1b2bee05fe98 | 1 | /* mbed Microcontroller Library |
mbed_official | 243:1b2bee05fe98 | 2 | * Copyright (c) 2006-2013 ARM Limited |
mbed_official | 243:1b2bee05fe98 | 3 | * |
mbed_official | 243:1b2bee05fe98 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 243:1b2bee05fe98 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 243:1b2bee05fe98 | 6 | * You may obtain a copy of the License at |
mbed_official | 243:1b2bee05fe98 | 7 | * |
mbed_official | 243:1b2bee05fe98 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 243:1b2bee05fe98 | 9 | * |
mbed_official | 243:1b2bee05fe98 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 243:1b2bee05fe98 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 243:1b2bee05fe98 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 243:1b2bee05fe98 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 243:1b2bee05fe98 | 14 | * limitations under the License. |
mbed_official | 243:1b2bee05fe98 | 15 | */ |
mbed_official | 243:1b2bee05fe98 | 16 | #ifndef MBED_PERIPHERALNAMES_H |
mbed_official | 243:1b2bee05fe98 | 17 | #define MBED_PERIPHERALNAMES_H |
mbed_official | 243:1b2bee05fe98 | 18 | |
mbed_official | 243:1b2bee05fe98 | 19 | #include "cmsis.h" |
mbed_official | 243:1b2bee05fe98 | 20 | |
mbed_official | 243:1b2bee05fe98 | 21 | #ifdef __cplusplus |
mbed_official | 243:1b2bee05fe98 | 22 | extern "C" { |
mbed_official | 243:1b2bee05fe98 | 23 | #endif |
mbed_official | 243:1b2bee05fe98 | 24 | |
mbed_official | 243:1b2bee05fe98 | 25 | typedef enum { |
mbed_official | 243:1b2bee05fe98 | 26 | UART_0 = (int)LPC_USART_BASE |
mbed_official | 243:1b2bee05fe98 | 27 | } UARTName; |
mbed_official | 243:1b2bee05fe98 | 28 | |
mbed_official | 243:1b2bee05fe98 | 29 | typedef enum { |
mbed_official | 243:1b2bee05fe98 | 30 | I2C_0 = (int)LPC_I2C_BASE |
mbed_official | 243:1b2bee05fe98 | 31 | } I2CName; |
mbed_official | 243:1b2bee05fe98 | 32 | |
mbed_official | 243:1b2bee05fe98 | 33 | typedef enum { |
mbed_official | 243:1b2bee05fe98 | 34 | ADC0_0 = 0, |
mbed_official | 243:1b2bee05fe98 | 35 | ADC0_1, |
mbed_official | 243:1b2bee05fe98 | 36 | ADC0_2, |
mbed_official | 243:1b2bee05fe98 | 37 | ADC0_3, |
mbed_official | 243:1b2bee05fe98 | 38 | ADC0_4, |
mbed_official | 243:1b2bee05fe98 | 39 | ADC0_5, |
mbed_official | 243:1b2bee05fe98 | 40 | ADC0_6, |
mbed_official | 243:1b2bee05fe98 | 41 | ADC0_7 |
mbed_official | 243:1b2bee05fe98 | 42 | } ADCName; |
mbed_official | 243:1b2bee05fe98 | 43 | |
mbed_official | 243:1b2bee05fe98 | 44 | typedef enum { |
mbed_official | 243:1b2bee05fe98 | 45 | SPI_0 = (int)LPC_SSP0_BASE, |
mbed_official | 243:1b2bee05fe98 | 46 | SPI_1 = (int)LPC_SSP1_BASE |
mbed_official | 243:1b2bee05fe98 | 47 | } SPIName; |
mbed_official | 243:1b2bee05fe98 | 48 | |
mbed_official | 243:1b2bee05fe98 | 49 | typedef enum { |
mbed_official | 243:1b2bee05fe98 | 50 | PWM_1 = 0, |
mbed_official | 243:1b2bee05fe98 | 51 | PWM_2, |
mbed_official | 243:1b2bee05fe98 | 52 | PWM_3, |
mbed_official | 243:1b2bee05fe98 | 53 | PWM_4, |
mbed_official | 243:1b2bee05fe98 | 54 | PWM_5, |
mbed_official | 243:1b2bee05fe98 | 55 | PWM_6, |
mbed_official | 243:1b2bee05fe98 | 56 | PWM_7, |
mbed_official | 243:1b2bee05fe98 | 57 | PWM_8, |
mbed_official | 243:1b2bee05fe98 | 58 | PWM_9, |
mbed_official | 243:1b2bee05fe98 | 59 | PWM_10, |
mbed_official | 243:1b2bee05fe98 | 60 | PWM_11 |
mbed_official | 243:1b2bee05fe98 | 61 | } PWMName; |
mbed_official | 243:1b2bee05fe98 | 62 | |
mbed_official | 243:1b2bee05fe98 | 63 | #define STDIO_UART_TX UART_TX |
mbed_official | 243:1b2bee05fe98 | 64 | #define STDIO_UART_RX UART_RX |
mbed_official | 243:1b2bee05fe98 | 65 | #define STDIO_UART UART_0 |
mbed_official | 243:1b2bee05fe98 | 66 | |
mbed_official | 243:1b2bee05fe98 | 67 | #ifdef __cplusplus |
mbed_official | 243:1b2bee05fe98 | 68 | } |
mbed_official | 243:1b2bee05fe98 | 69 | #endif |
mbed_official | 243:1b2bee05fe98 | 70 | |
mbed_official | 243:1b2bee05fe98 | 71 | #endif |