projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Save the current BERTOS_PATH in editing mode (instead of override it with the local...
[bertos.git]
/
examples
/
triface
/
protocol.c
diff --git
a/examples/triface/protocol.c
b/examples/triface/protocol.c
index 397e8d0b2575460d9213751e24974e1df4cdcb25..254880e5657287ffb19dd9fde352940559a6f7a1 100644
(file)
--- a/
examples/triface/protocol.c
+++ b/
examples/triface/protocol.c
@@
-283,7
+283,7
@@
MAKE_CMD(ping, "", "",
/* Dout */
MAKE_CMD(dout, "d", "",
({
/* Dout */
MAKE_CMD(dout, "d", "",
({
- kfile_putc((uint8_t)
&
args[1].l, &fd_sipo.fd);
+ kfile_putc((uint8_t)args[1].l, &fd_sipo.fd);
//Store status of dout ports.
reg_status_dout = (uint8_t)args[1].l;
//Store status of dout ports.
reg_status_dout = (uint8_t)args[1].l;
@@
-360,6
+360,11
@@
static void protocol_registerCmds(void)
void protocol_init(KFile *fd)
{
/* SPI Port Initialization */
void protocol_init(KFile *fd)
{
/* SPI Port Initialization */
+ fd_sipo.load_device = TRIFACE_DOUT;
+ fd_sipo.bit_order = SIPO_DATAORDER_LSB;
+ fd_sipo.clock_pol = SIPO_START_LOW;
+ fd_sipo.load_pol = SIPO_LOW_TO_HIGH;
+
sipo_init(&fd_sipo);
interactive = FORCE_INTERACTIVE;
sipo_init(&fd_sipo);
interactive = FORCE_INTERACTIVE;