Lab 1 Program C
Fork of mbed by
device.h@44:1c5f591fce58, 2015-09-29 (annotated)
- Committer:
- mattsims12
- Date:
- Tue Sep 29 03:04:58 2015 +0000
- Revision:
- 44:1c5f591fce58
- Parent:
- 30:3991a86798e3
Lab 1 Program C
Who changed what in which revision?
User | Revision | Line number | New 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 | |
emilmont | 27:7110ebee3484 | 18 | #define DEVICE_I2C 1 |
emilmont | 27:7110ebee3484 | 19 | #define DEVICE_I2CSLAVE 1 |
emilmont | 27:7110ebee3484 | 20 | |
emilmont | 27:7110ebee3484 | 21 | #define DEVICE_SPI 1 |
emilmont | 27:7110ebee3484 | 22 | #define DEVICE_SPISLAVE 1 |
emilmont | 27:7110ebee3484 | 23 | |
emilmont | 27:7110ebee3484 | 24 | #define DEVICE_CAN 1 |
emilmont | 27:7110ebee3484 | 25 | |
emilmont | 27:7110ebee3484 | 26 | #define DEVICE_RTC 1 |
emilmont | 27:7110ebee3484 | 27 | |
emilmont | 27:7110ebee3484 | 28 | #define DEVICE_ETHERNET 1 |
emilmont | 27:7110ebee3484 | 29 | |
emilmont | 27:7110ebee3484 | 30 | #define DEVICE_PWMOUT 1 |
emilmont | 27:7110ebee3484 | 31 | |
emilmont | 27:7110ebee3484 | 32 | #elif defined(TARGET_LPC11U24) |
emilmont | 27:7110ebee3484 | 33 | |
emilmont | 28:667d61c9177b | 34 | #define DEVICE_PORTIN 1 |
emilmont | 28:667d61c9177b | 35 | #define DEVICE_PORTOUT 1 |
emilmont | 28:667d61c9177b | 36 | #define DEVICE_PORTINOUT 1 |
emilmont | 27:7110ebee3484 | 37 | |
emilmont | 27:7110ebee3484 | 38 | #define DEVICE_INTERRUPTIN 1 |
emilmont | 27:7110ebee3484 | 39 | |
emilmont | 27:7110ebee3484 | 40 | #define DEVICE_ANALOGIN 1 |
emilmont | 27:7110ebee3484 | 41 | #define DEVICE_ANALOGOUT 0 |
emilmont | 27:7110ebee3484 | 42 | |
emilmont | 27:7110ebee3484 | 43 | #define DEVICE_SERIAL 1 |
emilmont | 27:7110ebee3484 | 44 | |
emilmont | 27:7110ebee3484 | 45 | #define DEVICE_I2C 1 |
emilmont | 30:3991a86798e3 | 46 | #define DEVICE_I2CSLAVE 1 |
emilmont | 27:7110ebee3484 | 47 | |
emilmont | 27:7110ebee3484 | 48 | #define DEVICE_SPI 1 |
emilmont | 30:3991a86798e3 | 49 | #define DEVICE_SPISLAVE 1 |
emilmont | 27:7110ebee3484 | 50 | |
emilmont | 27:7110ebee3484 | 51 | #define DEVICE_CAN 0 |
emilmont | 27:7110ebee3484 | 52 | |
emilmont | 27:7110ebee3484 | 53 | #define DEVICE_RTC 0 |
emilmont | 27:7110ebee3484 | 54 | |
emilmont | 27:7110ebee3484 | 55 | #define DEVICE_ETHERNET 0 |
emilmont | 27:7110ebee3484 | 56 | |
emilmont | 28:667d61c9177b | 57 | #define DEVICE_PWMOUT 1 |
emilmont | 27:7110ebee3484 | 58 | |
emilmont | 27:7110ebee3484 | 59 | #endif |
emilmont | 27:7110ebee3484 | 60 | |
emilmont | 27:7110ebee3484 | 61 | #endif |
emilmont | 27:7110ebee3484 | 62 |