This fork of the MBED Library allows you to use counters on the external counter pins (15/16 for Timer 3, 29/30 for Timer 2) by switching internal timing functions in MBED to utilize Timer 0

Fork of mbed-src by mbed official

Revision:
75:99bf659e4489
Parent:
13:0645d8841f51
--- a/targets/hal/TARGET_NXP/TARGET_LPC11UXX/sleep.c	Tue Jan 14 22:15:04 2014 +0000
+++ b/targets/hal/TARGET_NXP/TARGET_LPC11UXX/sleep.c	Mon Jan 27 13:30:06 2014 +0000
@@ -19,7 +19,9 @@
 
 void sleep(void) {
     // ensure debug is disconnected
+    #if DEVICE_SEMIHOST
     mbed_interface_disconnect();
+    #endif
     
     // PCON[PD] set to sleep
     LPC_PMU->PCON = 0x0;
@@ -59,7 +61,9 @@
 
 void deepsleep(void) {
     // ensure debug is disconnected
+    #if DEVICE_SEMIHOST
     mbed_interface_disconnect();
+    #endif
     
     // PCON[PD] set to deepsleep
     LPC_PMU->PCON = 0x1;