LA: Adding some "Ex" features to DmTftBase
Diff: dm_platform.h
- Revision:
- 6:fde03297017b
- Parent:
- 4:92d019216e28
diff -r 2c60f4aafce6 -r fde03297017b dm_platform.h --- 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