projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for ATmega2560.
[bertos.git]
/
boards
/
triface
/
examples
/
triface
/
protocol.c
diff --git
a/boards/triface/examples/triface/protocol.c
b/boards/triface/examples/triface/protocol.c
index 900531e6e2e743c03826c48839c60e90c614bbe5..fe9f125ec11df5425347a9c318c5db709177814c 100644
(file)
--- a/
boards/triface/examples/triface/protocol.c
+++ b/
boards/triface/examples/triface/protocol.c
@@
-46,6
+46,10
@@
#include "hw/hw_input.h"
#include "hw/hw_input.h"
+#include "cfg/cfg_parser.h"
+#include <cfg/compiler.h>
+#include <cfg/debug.h>
+
#include <drv/adc.h>
#include <drv/timer.h>
#include <drv/ser.h>
#include <drv/adc.h>
#include <drv/timer.h>
#include <drv/ser.h>
@@
-56,10
+60,7
@@
#include <mware/readline.h>
#include <mware/parser.h>
#include <mware/readline.h>
#include <mware/parser.h>
-#include <cfg/compiler.h>
-#include <cfg/debug.h>
-
-#include <kern/kfile.h>
+#include <io/kfile.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
@@
-149,7
+150,7
@@
static void protocol_parse(KFile *fd, const char *buf)
return;
}
return;
}
- parms args[PARSER_MAX_ARGS];
+ parms args[
CONFIG_
PARSER_MAX_ARGS];
/* Args Check. TODO: Handle different case. see doc/PROTOCOL . */
if (!parser_get_cmd_arguments(buf, templ, args))
/* Args Check. TODO: Handle different case. see doc/PROTOCOL . */
if (!parser_get_cmd_arguments(buf, templ, args))