projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now compiling with -Wall, error free.
[goodfet]
/
firmware
/
lib
/
command.c
diff --git
a/firmware/lib/command.c
b/firmware/lib/command.c
index
cc6e687
..
08a5cf7
100644
(file)
--- a/
firmware/lib/command.c
+++ b/
firmware/lib/command.c
@@
-1,7
+1,23
@@
+#include "command.h"
+#include "platform.h"
+#include <string.h>
+
//! Different command handling functions.
unsigned char cmddata[256];
//! Different command handling functions.
unsigned char cmddata[256];
+//! Transmit a string.
+void txstring(unsigned char app,
+ unsigned char verb,
+ const char *str){
+ unsigned char len=strlen(str);
+ serial_tx(app);
+ serial_tx(verb);
+ serial_tx(len);
+ while(len--)
+ serial_tx(*(str++));
+}
+
//! Transmit data.
void txdata(unsigned char app,
unsigned char verb,
//! Transmit data.
void txdata(unsigned char app,
unsigned char verb,