mbed library sources
Fork of mbed-src by
targets/hal/TARGET_NXP/TARGET_LPC23XX/PeripheralNames.h@35:db417d6d0a5c, 2013-10-16 (annotated)
- Committer:
- vsluiter
- Date:
- Wed Oct 16 07:57:27 2013 +0000
- Revision:
- 35:db417d6d0a5c
- Parent:
- 13:0645d8841f51
Changed startup_MKL25Z4.s
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 13:0645d8841f51 | 1 | /* mbed Microcontroller Library |
bogdanm | 13:0645d8841f51 | 2 | * Copyright (c) 2006-2013 ARM Limited |
bogdanm | 13:0645d8841f51 | 3 | * |
bogdanm | 13:0645d8841f51 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
bogdanm | 13:0645d8841f51 | 5 | * you may not use this file except in compliance with the License. |
bogdanm | 13:0645d8841f51 | 6 | * You may obtain a copy of the License at |
bogdanm | 13:0645d8841f51 | 7 | * |
bogdanm | 13:0645d8841f51 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
bogdanm | 13:0645d8841f51 | 9 | * |
bogdanm | 13:0645d8841f51 | 10 | * Unless required by applicable law or agreed to in writing, software |
bogdanm | 13:0645d8841f51 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
bogdanm | 13:0645d8841f51 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
bogdanm | 13:0645d8841f51 | 13 | * See the License for the specific language governing permissions and |
bogdanm | 13:0645d8841f51 | 14 | * limitations under the License. |
bogdanm | 13:0645d8841f51 | 15 | */ |
bogdanm | 13:0645d8841f51 | 16 | #ifndef MBED_PERIPHERALNAMES_H |
bogdanm | 13:0645d8841f51 | 17 | #define MBED_PERIPHERALNAMES_H |
bogdanm | 13:0645d8841f51 | 18 | |
bogdanm | 13:0645d8841f51 | 19 | #include "cmsis.h" |
bogdanm | 13:0645d8841f51 | 20 | |
bogdanm | 13:0645d8841f51 | 21 | #ifdef __cplusplus |
bogdanm | 13:0645d8841f51 | 22 | extern "C" { |
bogdanm | 13:0645d8841f51 | 23 | #endif |
bogdanm | 13:0645d8841f51 | 24 | |
bogdanm | 13:0645d8841f51 | 25 | typedef enum { |
bogdanm | 13:0645d8841f51 | 26 | UART_0 = (int)LPC_UART0_BASE, |
bogdanm | 13:0645d8841f51 | 27 | UART_1 = (int)LPC_UART1_BASE, |
bogdanm | 13:0645d8841f51 | 28 | UART_2 = (int)LPC_UART2_BASE, |
bogdanm | 13:0645d8841f51 | 29 | UART_3 = (int)LPC_UART3_BASE |
bogdanm | 13:0645d8841f51 | 30 | } UARTName; |
bogdanm | 13:0645d8841f51 | 31 | |
bogdanm | 13:0645d8841f51 | 32 | typedef enum { |
bogdanm | 13:0645d8841f51 | 33 | ADC0_0 = 0, |
bogdanm | 13:0645d8841f51 | 34 | ADC0_1, |
bogdanm | 13:0645d8841f51 | 35 | ADC0_2, |
bogdanm | 13:0645d8841f51 | 36 | ADC0_3, |
bogdanm | 13:0645d8841f51 | 37 | ADC0_4, |
bogdanm | 13:0645d8841f51 | 38 | ADC0_5, |
bogdanm | 13:0645d8841f51 | 39 | ADC0_6, |
bogdanm | 13:0645d8841f51 | 40 | ADC0_7 |
bogdanm | 13:0645d8841f51 | 41 | } ADCName; |
bogdanm | 13:0645d8841f51 | 42 | |
bogdanm | 13:0645d8841f51 | 43 | typedef enum { |
bogdanm | 13:0645d8841f51 | 44 | DAC_0 = 0 |
bogdanm | 13:0645d8841f51 | 45 | } DACName; |
bogdanm | 13:0645d8841f51 | 46 | |
bogdanm | 13:0645d8841f51 | 47 | typedef enum { |
bogdanm | 13:0645d8841f51 | 48 | SPI_0 = (int)LPC_SSP0_BASE, |
bogdanm | 13:0645d8841f51 | 49 | SPI_1 = (int)LPC_SSP1_BASE |
bogdanm | 13:0645d8841f51 | 50 | } SPIName; |
bogdanm | 13:0645d8841f51 | 51 | |
bogdanm | 13:0645d8841f51 | 52 | typedef enum { |
bogdanm | 13:0645d8841f51 | 53 | I2C_0 = (int)LPC_I2C0_BASE, |
bogdanm | 13:0645d8841f51 | 54 | I2C_1 = (int)LPC_I2C1_BASE, |
bogdanm | 13:0645d8841f51 | 55 | I2C_2 = (int)LPC_I2C2_BASE |
bogdanm | 13:0645d8841f51 | 56 | } I2CName; |
bogdanm | 13:0645d8841f51 | 57 | |
bogdanm | 13:0645d8841f51 | 58 | typedef enum { |
bogdanm | 13:0645d8841f51 | 59 | PWM_1 = 1, |
bogdanm | 13:0645d8841f51 | 60 | PWM_2, |
bogdanm | 13:0645d8841f51 | 61 | PWM_3, |
bogdanm | 13:0645d8841f51 | 62 | PWM_4, |
bogdanm | 13:0645d8841f51 | 63 | PWM_5, |
bogdanm | 13:0645d8841f51 | 64 | PWM_6 |
bogdanm | 13:0645d8841f51 | 65 | } PWMName; |
bogdanm | 13:0645d8841f51 | 66 | |
bogdanm | 13:0645d8841f51 | 67 | typedef enum { |
bogdanm | 13:0645d8841f51 | 68 | CAN_1 = (int)LPC_CAN1_BASE, |
bogdanm | 13:0645d8841f51 | 69 | CAN_2 = (int)LPC_CAN2_BASE |
bogdanm | 13:0645d8841f51 | 70 | } CANName; |
bogdanm | 13:0645d8841f51 | 71 | |
bogdanm | 13:0645d8841f51 | 72 | #define STDIO_UART_TX USBTX |
bogdanm | 13:0645d8841f51 | 73 | #define STDIO_UART_RX USBRX |
bogdanm | 13:0645d8841f51 | 74 | #define STDIO_UART UART_0 |
bogdanm | 13:0645d8841f51 | 75 | |
bogdanm | 13:0645d8841f51 | 76 | #ifdef __cplusplus |
bogdanm | 13:0645d8841f51 | 77 | } |
bogdanm | 13:0645d8841f51 | 78 | #endif |
bogdanm | 13:0645d8841f51 | 79 | |
bogdanm | 13:0645d8841f51 | 80 | #endif |