1 /* mbed Microcontroller Library - PeripheralNames
2 * Copyright (C) 2008-2009 ARM Limited. All rights reserved.
4 * Provides the mappings for peripherals
5 * Implementation specific to the LPC1768/LPC2368
9 #ifndef MBED_PERIPHERALNAMES_H
10 #define MBED_PERIPHERALNAMES_H
18 typedef enum UARTName UARTName;
20 UART_0 = (int)LPC_UART0_BASE
21 , UART_1 = (int)LPC_UART1_BASE
22 , UART_2 = (int)LPC_UART2_BASE
23 , UART_3 = (int)LPC_UART3_BASE
26 typedef enum ADCName ADCName;
38 typedef enum DACName DACName;
43 typedef enum SPIName SPIName;
45 SPI_0 = (int)LPC_SSP0_BASE
46 , SPI_1 = (int)LPC_SSP1_BASE
49 typedef enum I2CName I2CName;
51 I2C_0 = (int)LPC_I2C0_BASE
52 , I2C_1 = (int)LPC_I2C1_BASE
53 , I2C_2 = (int)LPC_I2C2_BASE
56 typedef enum PWMName PWMName;
66 typedef enum TimerName TimerName;
68 TIMER_0 = (int)LPC_TIM0_BASE
69 , TIMER_1 = (int)LPC_TIM1_BASE
70 , TIMER_2 = (int)LPC_TIM2_BASE
71 , TIMER_3 = (int)LPC_TIM3_BASE
74 typedef enum CANName CANName;
76 CAN_1 = (int)LPC_CAN1_BASE,
77 CAN_2 = (int)LPC_CAN2_BASE
80 #define STDIO_UART_TX USBTX
81 #define STDIO_UART_RX USBRX
82 #define STDIO_UART UART_0
83 #define US_TICKER_TIMER TIMER_3
84 #define US_TICKER_TIMER_IRQn TIMER3_IRQn