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