Modified version of the DmTftLibrary, optimized for the LPC4088 Experiment Base Board

Dependents:   lpc4088_ebb_dm_calc lpc4088_ebb_dm_bubbles

Fork of DmTftLibrary by Display Module

Files at this revision

API Documentation at this revision

Comitter:
displaymodule
Date:
Fri May 23 08:10:09 2014 +0000
Parent:
5:2c60f4aafce6
Child:
7:6cd8c36cbdb3
Commit message:
Lowered the pulsing time for bit banged SPI on the LPC4088 QSB to make it more responsive.

Changed in this revision

DmTouch.cpp Show annotated file Show diff for this revision Revisions of this file
dm_platform.h Show annotated file Show diff for this revision Revisions of this file
--- a/DmTouch.cpp	Thu May 22 09:35:12 2014 +0000
+++ b/DmTouch.cpp	Fri May 23 08:10:09 2014 +0000
@@ -214,7 +214,7 @@
 
       temp=temp<<1;
 
-      pulse_low(_pinCLK, _bitmaskCLK);
+      slow_pulse_low(_pinCLK, _bitmaskCLK);
     }
   }
 #endif
--- a/dm_platform.h	Thu May 22 09:35:12 2014 +0000
+++ b/dm_platform.h	Fri May 23 08:10:09 2014 +0000
@@ -70,7 +70,11 @@
   // delay should ideally be configurable per platform but for now it will have
   // to be ok to lower the frequency to 500KHz  
   #if defined(__LPC407x_8x_177x_8x_H__)
-    #define slow_pulse_delay()  wait_us(1)
+    //#define slow_pulse_delay()  wait_us(1)
+    #define slow_pulse_delay() do {\
+      volatile unsigned _xyz = 10; \
+      for (; _xyz > 0; _xyz--); \
+    } while(0)
   #else
     #define slow_pulse_delay()
   #endif