1 /* mbed Microcontroller Library - PeripheralNames
2 * Copyright (C) 2008-2011 ARM Limited. All rights reserved.
4 * Provides the mappings for peripherals
7 #ifndef MBED_PERIPHERALNAMES_H
8 #define MBED_PERIPHERALNAMES_H
16 #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368)
19 UART_0
= (int)LPC_UART0_BASE
20 , UART_1
= (int)LPC_UART1_BASE
21 , UART_2
= (int)LPC_UART2_BASE
22 , UART_3
= (int)LPC_UART3_BASE
24 typedef enum UARTName UARTName
;
36 typedef enum ADCName ADCName
;
41 typedef enum DACName DACName
;
44 SPI_0
= (int)LPC_SSP0_BASE
45 , SPI_1
= (int)LPC_SSP1_BASE
47 typedef enum SPIName SPIName
;
50 I2C_0
= (int)LPC_I2C0_BASE
51 , I2C_1
= (int)LPC_I2C1_BASE
52 , I2C_2
= (int)LPC_I2C2_BASE
54 typedef enum I2CName I2CName
;
64 typedef enum PWMName PWMName
;
67 TIMER_0
= (int)LPC_TIM0_BASE
68 , TIMER_1
= (int)LPC_TIM1_BASE
69 , TIMER_2
= (int)LPC_TIM2_BASE
70 , TIMER_3
= (int)LPC_TIM3_BASE
72 typedef enum TimerName TimerName
;
75 CAN_1
= (int)LPC_CAN1_BASE
,
76 CAN_2
= (int)LPC_CAN2_BASE
78 typedef enum CANName CANName
;
80 #define US_TICKER_TIMER TIMER_3
81 #define US_TICKER_TIMER_IRQn TIMER3_IRQn
83 #elif defined(TARGET_LPC11U24)
86 UART_0
= (int)LPC_USART_BASE
88 typedef enum UARTName UARTName
;
91 I2C_0
= (int)LPC_I2C_BASE
93 typedef enum I2CName I2CName
;
96 TIMER_0
= (int)LPC_CT32B0_BASE
97 , TIMER_1
= (int)LPC_CT32B1_BASE
99 typedef enum TimerName TimerName
;
111 typedef enum ADCName ADCName
;
114 SPI_0
= (int)LPC_SSP0_BASE
115 , SPI_1
= (int)LPC_SSP1_BASE
117 typedef enum SPIName SPIName
;
119 #define US_TICKER_TIMER TIMER_1
120 #define US_TICKER_TIMER_IRQn TIMER_32_1_IRQn
122 typedef enum PWMName
{
138 #define STDIO_UART_TX USBTX
139 #define STDIO_UART_RX USBRX
140 #define STDIO_UART UART_0