mbed library sources

Dependents:   disable_semihost

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
yihui
Date:
Fri Jan 17 03:18:47 2014 +0000
Parent:
74:847f030b50ee
Commit message:
disable semihost and local file system

Changed in this revision

targets/hal/TARGET_NXP/TARGET_LPC176X/device.h Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_NXP/TARGET_LPC176X/sleep.c Show annotated file Show diff for this revision Revisions of this file
diff -r 847f030b50ee -r af844aac7b8c targets/hal/TARGET_NXP/TARGET_LPC176X/device.h
--- a/targets/hal/TARGET_NXP/TARGET_LPC176X/device.h	Tue Jan 14 22:15:04 2014 +0000
+++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/device.h	Fri Jan 17 03:18:47 2014 +0000
@@ -42,8 +42,8 @@
 
 #define DEVICE_PWMOUT           1
 
-#define DEVICE_SEMIHOST         1
-#define DEVICE_LOCALFILESYSTEM  1
+#define DEVICE_SEMIHOST         0
+#define DEVICE_LOCALFILESYSTEM  0
 #define DEVICE_ID_LENGTH       32
 #define DEVICE_MAC_OFFSET      20
 
diff -r 847f030b50ee -r af844aac7b8c targets/hal/TARGET_NXP/TARGET_LPC176X/sleep.c
--- a/targets/hal/TARGET_NXP/TARGET_LPC176X/sleep.c	Tue Jan 14 22:15:04 2014 +0000
+++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/sleep.c	Fri Jan 17 03:18:47 2014 +0000
@@ -17,6 +17,10 @@
 #include "cmsis.h"
 #include "mbed_interface.h"
 
+#if (DEVICE_SEMIHOST == 0)
+#define mbed_interface_disconnect()
+#endif
+
 void sleep(void) {
     // ensure debug is disconnected
     mbed_interface_disconnect();