Lab 1 Program C
Fork of mbed by
device.h@28:667d61c9177b, 2011-12-08 (annotated)
- Committer:
- emilmont
- Date:
- Thu Dec 08 12:04:01 2011 +0000
- Revision:
- 28:667d61c9177b
- Parent:
- 27:7110ebee3484
- Child:
- 30:3991a86798e3
Add additional M0 peripherals implementations, fix GCC stdio/uart
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 | #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 | 28:667d61c9177b | 36 | #define DEVICE_PORTIN 1 |
emilmont | 28:667d61c9177b | 37 | #define DEVICE_PORTOUT 1 |
emilmont | 28:667d61c9177b | 38 | #define DEVICE_PORTINOUT 1 |
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 | 28:667d61c9177b | 61 | #define DEVICE_PWMOUT 1 |
emilmont | 27:7110ebee3484 | 62 | |
emilmont | 27:7110ebee3484 | 63 | #endif |
emilmont | 27:7110ebee3484 | 64 | |
emilmont | 27:7110ebee3484 | 65 | #endif |
emilmont | 27:7110ebee3484 | 66 |