projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fast MSP430 Flash writes.
[goodfet]
/
firmware
/
lib
/
command.c
diff --git
a/firmware/lib/command.c
b/firmware/lib/command.c
index
282d98a
..
a826571
100644
(file)
--- a/
firmware/lib/command.c
+++ b/
firmware/lib/command.c
@@
-30,6
+30,17
@@
void debugstr(const char *str){
txstring(0xFF,0xFF,str);
}
txstring(0xFF,0xFF,str);
}
+/*! \brief Transmit debug bytes.
+
+ Transmits bytes for debugging.
+*/
+void debugbytes(const char *bytes, unsigned int len){
+ u16 i;
+ txhead(0xFF,0xFE,len);
+ for(i=0;i<len;i++)
+ serial_tx(bytes[i]);
+}
+
//! Transmit a header.
void txhead(unsigned char app,
//! Transmit a header.
void txhead(unsigned char app,
@@
-37,7
+48,7
@@
void txhead(unsigned char app,
unsigned long len){
serial_tx(app);
serial_tx(verb);
unsigned long len){
serial_tx(app);
serial_tx(verb);
- //serial_tx(len);
+ //serial_tx(len);
//old protocol
txword(len);
}
txword(len);
}