printer

Dependents:   Good_Serial_HelloWorld_Mbed

Fork of mbed by gokmen ascioglu

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PortNames.h Source File

PortNames.h

00001 /* mbed Microcontroller Library - PortName 
00002  * Copyright (c) 2010-2011 ARM Limited. All rights reserved.
00003  */
00004 
00005 #ifndef MBED_PORTNAMES_H
00006 #define MBED_PORTNAMES_H
00007 
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011 
00012 #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368)
00013 
00014 enum PortName {
00015     Port0 = 0
00016     , Port1 = 1
00017     , Port2 = 2
00018     , Port3 = 3
00019     , Port4 = 4
00020 };
00021 typedef enum PortName PortName;
00022 
00023 #elif defined(TARGET_LPC11U24)
00024 
00025 enum PortName {
00026     Port0 = 0
00027     , Port1 = 1
00028 };
00029 typedef enum PortName PortName;
00030 
00031 
00032 #endif
00033 
00034 #ifdef __cplusplus
00035 }
00036 #endif
00037 #endif
00038