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