projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MSP430X2 client connects but reads garbage from ram.
[goodfet]
/
firmware
/
lib
/
command.c
diff --git
a/firmware/lib/command.c
b/firmware/lib/command.c
index
08a5cf7
..
738fab6
100644
(file)
--- a/
firmware/lib/command.c
+++ b/
firmware/lib/command.c
@@
-31,8
+31,21
@@
void txdata(unsigned char app,
}
}
}
}
+//Be very careful changing delay().
+//It was chosen poorly by trial and error.
+
//! Delay for a count.
void delay(unsigned int count){
volatile unsigned int i=count;
while(i--) asm("nop");
}
//! Delay for a count.
void delay(unsigned int count){
volatile unsigned int i=count;
while(i--) asm("nop");
}
+//! MSDelay
+void msdelay(unsigned int ms){
+ volatile unsigned int i,j;
+ i=100;
+ while(i--){
+ j=ms;
+ while(j--) asm("nop");
+ }
+ //Using TimerA might be cleaner.
+}