Fork of the official mbed C/C++ SDK provides the software platform and libraries to build your applications. The fork has the documentation converted to Doxygen format

Dependents:   NervousPuppySprintOne NervousPuppySprint2602 Robot WarehouseBot1 ... more

Fork of mbed by mbed official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers device.h Source File

device.h

00001 
00002 #ifndef MBED_DEVICE_H
00003 #define MBED_DEVICE_H
00004 
00005 #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368)
00006 
00007 #define DEVICE_PORTIN 1
00008 #define DEVICE_PORTOUT 1
00009 #define DEVICE_PORTINOUT 1
00010 
00011 #define DEVICE_INTERRUPTIN 1
00012 
00013 #define DEVICE_ANALOGIN 1
00014 #define DEVICE_ANALOGOUT 1
00015 
00016 #define DEVICE_SERIAL 1
00017 
00018 #define DEVICE_I2C 1
00019 #define DEVICE_I2CSLAVE 1
00020 
00021 #define DEVICE_SPI 1
00022 #define DEVICE_SPISLAVE 1
00023 
00024 #define DEVICE_CAN 1
00025 
00026 #define DEVICE_RTC 1
00027 
00028 #define DEVICE_ETHERNET 1
00029 
00030 #define DEVICE_PWMOUT 1
00031 
00032 #elif defined(TARGET_LPC11U24)
00033 
00034 #define DEVICE_PORTIN 1
00035 #define DEVICE_PORTOUT 1
00036 #define DEVICE_PORTINOUT 1
00037 
00038 #define DEVICE_INTERRUPTIN 1
00039 
00040 #define DEVICE_ANALOGIN 1
00041 #define DEVICE_ANALOGOUT 0
00042 
00043 #define DEVICE_SERIAL 1
00044 
00045 #define DEVICE_I2C 1
00046 #define DEVICE_I2CSLAVE 1
00047 
00048 #define DEVICE_SPI 1
00049 #define DEVICE_SPISLAVE 1
00050 
00051 #define DEVICE_CAN 0
00052 
00053 #define DEVICE_RTC 0
00054 
00055 #define DEVICE_ETHERNET 0
00056 
00057 #define DEVICE_PWMOUT 1
00058 
00059 #endif
00060 
00061 #endif
00062