Add LPC1768

Dependencies:   mbed-rtos mbed Xbus

Fork of MTi-1_example by Xsens

Files at this revision

API Documentation at this revision

Comitter:
dakh131
Date:
Thu Jan 12 09:28:24 2017 +0000
Parent:
67:5c6676f25ffd
Child:
71:b9b97b6d3a8e
Commit message:
Add Target_MBED_LPC1768

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Oct 14 14:37:09 2015 +0200
+++ b/main.cpp	Thu Jan 12 09:28:24 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
@@ -142,6 +145,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	Wed Oct 14 14:37:09 2015 +0200
+++ b/mbed-rtos.lib	Thu Jan 12 09:28:24 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	Wed Oct 14 14:37:09 2015 +0200
+++ b/mbed.bld	Thu Jan 12 09:28:24 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