projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix comments.
[bertos.git]
/
examples
/
triface
/
protocol.c
diff --git
a/examples/triface/protocol.c
b/examples/triface/protocol.c
index c00219bd4967201c08306f582bef81c0b59c430d..254880e5657287ffb19dd9fde352940559a6f7a1 100644
(file)
--- a/
examples/triface/protocol.c
+++ b/
examples/triface/protocol.c
@@
-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;