Tim Barry / mbed_blinky_offset
Committer:
timbobazza
Date:
Sat Oct 04 09:07:08 2014 +0000
Revision:
0:2173789ea697
First version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
timbobazza 0:2173789ea697 1 /* mbed Microcontroller Library
timbobazza 0:2173789ea697 2 * Copyright (c) 2006-2013 ARM Limited
timbobazza 0:2173789ea697 3 *
timbobazza 0:2173789ea697 4 * Licensed under the Apache License, Version 2.0 (the "License");
timbobazza 0:2173789ea697 5 * you may not use this file except in compliance with the License.
timbobazza 0:2173789ea697 6 * You may obtain a copy of the License at
timbobazza 0:2173789ea697 7 *
timbobazza 0:2173789ea697 8 * http://www.apache.org/licenses/LICENSE-2.0
timbobazza 0:2173789ea697 9 *
timbobazza 0:2173789ea697 10 * Unless required by applicable law or agreed to in writing, software
timbobazza 0:2173789ea697 11 * distributed under the License is distributed on an "AS IS" BASIS,
timbobazza 0:2173789ea697 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
timbobazza 0:2173789ea697 13 * See the License for the specific language governing permissions and
timbobazza 0:2173789ea697 14 * limitations under the License.
timbobazza 0:2173789ea697 15 */
timbobazza 0:2173789ea697 16 #ifndef MBED_PERIPHERALNAMES_H
timbobazza 0:2173789ea697 17 #define MBED_PERIPHERALNAMES_H
timbobazza 0:2173789ea697 18
timbobazza 0:2173789ea697 19 #include "cmsis.h"
timbobazza 0:2173789ea697 20
timbobazza 0:2173789ea697 21 #ifdef __cplusplus
timbobazza 0:2173789ea697 22 extern "C" {
timbobazza 0:2173789ea697 23 #endif
timbobazza 0:2173789ea697 24
timbobazza 0:2173789ea697 25 typedef enum {
timbobazza 0:2173789ea697 26 UART_0 = (int)LPC_USART_BASE
timbobazza 0:2173789ea697 27 } UARTName;
timbobazza 0:2173789ea697 28
timbobazza 0:2173789ea697 29 typedef enum {
timbobazza 0:2173789ea697 30 I2C_0 = (int)LPC_I2C_BASE
timbobazza 0:2173789ea697 31 } I2CName;
timbobazza 0:2173789ea697 32
timbobazza 0:2173789ea697 33 typedef enum {
timbobazza 0:2173789ea697 34 ADC0_0 = 0,
timbobazza 0:2173789ea697 35 ADC0_1,
timbobazza 0:2173789ea697 36 ADC0_2,
timbobazza 0:2173789ea697 37 ADC0_3,
timbobazza 0:2173789ea697 38 ADC0_4,
timbobazza 0:2173789ea697 39 ADC0_5,
timbobazza 0:2173789ea697 40 ADC0_6,
timbobazza 0:2173789ea697 41 ADC0_7
timbobazza 0:2173789ea697 42 } ADCName;
timbobazza 0:2173789ea697 43
timbobazza 0:2173789ea697 44 typedef enum {
timbobazza 0:2173789ea697 45 SPI_0 = (int)LPC_SSP0_BASE,
timbobazza 0:2173789ea697 46 SPI_1 = (int)LPC_SSP1_BASE
timbobazza 0:2173789ea697 47 } SPIName;
timbobazza 0:2173789ea697 48
timbobazza 0:2173789ea697 49 typedef enum {
timbobazza 0:2173789ea697 50 PWM_1 = 0,
timbobazza 0:2173789ea697 51 PWM_2,
timbobazza 0:2173789ea697 52 PWM_3,
timbobazza 0:2173789ea697 53 PWM_4,
timbobazza 0:2173789ea697 54 PWM_5,
timbobazza 0:2173789ea697 55 PWM_6,
timbobazza 0:2173789ea697 56 PWM_7,
timbobazza 0:2173789ea697 57 PWM_8,
timbobazza 0:2173789ea697 58 PWM_9,
timbobazza 0:2173789ea697 59 PWM_10,
timbobazza 0:2173789ea697 60 PWM_11
timbobazza 0:2173789ea697 61 } PWMName;
timbobazza 0:2173789ea697 62
timbobazza 0:2173789ea697 63 #define STDIO_UART_TX USBTX
timbobazza 0:2173789ea697 64 #define STDIO_UART_RX USBRX
timbobazza 0:2173789ea697 65 #define STDIO_UART UART_0
timbobazza 0:2173789ea697 66
timbobazza 0:2173789ea697 67 #ifdef __cplusplus
timbobazza 0:2173789ea697 68 }
timbobazza 0:2173789ea697 69 #endif
timbobazza 0:2173789ea697 70
timbobazza 0:2173789ea697 71 #endif