Add LPC1768
Dependencies: mbed-rtos mbed Xbus
Fork of MTi-1_example by
Revision 71:b9b97b6d3a8e, committed 2017-01-12
- Comitter:
- dakh131
- Date:
- Thu Jan 12 12:15:42 2017 +0000
- Parent:
- 70:cb7fbf7821b5
- Parent:
- 68:00b3b39c60a3
- Commit message:
- Merged LPC1768
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Dec 05 15:23:06 2016 +0000 +++ b/main.cpp Thu Jan 12 12:15:42 2017 +0000 @@ -88,6 +88,9 @@ #error "Must select communication interface by defining one of: MTI_USES_I2C_INTERFACE, MTI_USES_SPI_INTERFACE or MTI_USES_UART_INTERFACE" #endif +// Define Target (David) +//#define TARGET_MBED_LPC1768 + #if defined(TARGET_NUCLEO_F302R8) #define PC_TX PA_2 @@ -160,6 +163,23 @@ #define MT_NRESET p8 #define MT_DRDY p15 +#elif defined(TARGET_MBED_LPC1768) + +#define PC_TX USBTX +#define PC_RX USBRX +#define MT_TX p9 +#define MT_RX p10 +#define MT_SDA p9 +#define MT_SCL p10 +#define MT_ADD0 p13 +#define MT_ADD1 p12 +#define MT_ADD2 p11 +#define MT_MOSI p11 +#define MT_MISO p12 +#define MT_SCLK p13 +#define MT_nCS p14 +#define MT_NRESET p8 +#define MT_DRDY p15 #else #error "Support for selected mbed platform has not been added."
--- a/mbed-rtos.lib Mon Dec 05 15:23:06 2016 +0000 +++ b/mbed-rtos.lib Thu Jan 12 12:15:42 2017 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#d7bd06319118 +http://mbed.org/users/mbed_official/code/mbed-rtos/#58563e6cba1e
--- a/mbed.bld Mon Dec 05 15:23:06 2016 +0000 +++ b/mbed.bld Thu Jan 12 12:15:42 2017 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/99b5ccf27215 \ No newline at end of file