Lab 1 Program C

Dependents:   Lab1C

Fork of mbed by -deleted-

Committer:
emilmont
Date:
Tue Nov 29 14:59:27 2011 +0000
Revision:
27:7110ebee3484
Child:
28:667d61c9177b
New Libraries 11.11

Who changed what in which revision?

UserRevisionLine numberNew contents of line
emilmont 27:7110ebee3484 1
emilmont 27:7110ebee3484 2 #ifndef MBED_DEVICE_H
emilmont 27:7110ebee3484 3 #define MBED_DEVICE_H
emilmont 27:7110ebee3484 4
emilmont 27:7110ebee3484 5 #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368)
emilmont 27:7110ebee3484 6
emilmont 27:7110ebee3484 7 #define DEVICE_PORTIN 1
emilmont 27:7110ebee3484 8 #define DEVICE_PORTOUT 1
emilmont 27:7110ebee3484 9 #define DEVICE_PORTINOUT 1
emilmont 27:7110ebee3484 10
emilmont 27:7110ebee3484 11 #define DEVICE_INTERRUPTIN 1
emilmont 27:7110ebee3484 12
emilmont 27:7110ebee3484 13 #define DEVICE_ANALOGIN 1
emilmont 27:7110ebee3484 14 #define DEVICE_ANALOGOUT 1
emilmont 27:7110ebee3484 15
emilmont 27:7110ebee3484 16 #define DEVICE_SERIAL 1
emilmont 27:7110ebee3484 17 #define DEVICE_SERIALHALFDUPLEX 1
emilmont 27:7110ebee3484 18
emilmont 27:7110ebee3484 19 #define DEVICE_I2C 1
emilmont 27:7110ebee3484 20 #define DEVICE_I2CSLAVE 1
emilmont 27:7110ebee3484 21
emilmont 27:7110ebee3484 22 #define DEVICE_SPI 1
emilmont 27:7110ebee3484 23 #define DEVICE_SPIHALFDUPLEX 1
emilmont 27:7110ebee3484 24 #define DEVICE_SPISLAVE 1
emilmont 27:7110ebee3484 25
emilmont 27:7110ebee3484 26 #define DEVICE_CAN 1
emilmont 27:7110ebee3484 27
emilmont 27:7110ebee3484 28 #define DEVICE_RTC 1
emilmont 27:7110ebee3484 29
emilmont 27:7110ebee3484 30 #define DEVICE_ETHERNET 1
emilmont 27:7110ebee3484 31
emilmont 27:7110ebee3484 32 #define DEVICE_PWMOUT 1
emilmont 27:7110ebee3484 33
emilmont 27:7110ebee3484 34 #elif defined(TARGET_LPC11U24)
emilmont 27:7110ebee3484 35
emilmont 27:7110ebee3484 36 #define DEVICE_PORTIN 0
emilmont 27:7110ebee3484 37 #define DEVICE_PORTOUT 0
emilmont 27:7110ebee3484 38 #define DEVICE_PORTINOUT 0
emilmont 27:7110ebee3484 39
emilmont 27:7110ebee3484 40 #define DEVICE_INTERRUPTIN 1
emilmont 27:7110ebee3484 41
emilmont 27:7110ebee3484 42 #define DEVICE_ANALOGIN 1
emilmont 27:7110ebee3484 43 #define DEVICE_ANALOGOUT 0
emilmont 27:7110ebee3484 44
emilmont 27:7110ebee3484 45 #define DEVICE_SERIAL 1
emilmont 27:7110ebee3484 46 #define DEVICE_SERIALHALFDUPLEX 0
emilmont 27:7110ebee3484 47
emilmont 27:7110ebee3484 48 #define DEVICE_I2C 1
emilmont 27:7110ebee3484 49 #define DEVICE_I2CSLAVE 0
emilmont 27:7110ebee3484 50
emilmont 27:7110ebee3484 51 #define DEVICE_SPI 1
emilmont 27:7110ebee3484 52 #define DEVICE_SPIHALFDUPLEX 0
emilmont 27:7110ebee3484 53 #define DEVICE_SPISLAVE 0
emilmont 27:7110ebee3484 54
emilmont 27:7110ebee3484 55 #define DEVICE_CAN 0
emilmont 27:7110ebee3484 56
emilmont 27:7110ebee3484 57 #define DEVICE_RTC 0
emilmont 27:7110ebee3484 58
emilmont 27:7110ebee3484 59 #define DEVICE_ETHERNET 0
emilmont 27:7110ebee3484 60
emilmont 27:7110ebee3484 61 #define DEVICE_PWMOUT 0
emilmont 27:7110ebee3484 62
emilmont 27:7110ebee3484 63 #endif
emilmont 27:7110ebee3484 64
emilmont 27:7110ebee3484 65 #endif
emilmont 27:7110ebee3484 66