X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Ftriface%2Fprotocol.c;h=eec73684520a0a61c55ca2932535959cfaf1cfbf;hb=325b1fff5fbaef18290e6649df2ed3edbaf4a704;hp=c00219bd4967201c08306f582bef81c0b59c430d;hpb=a8a5070cd51cec93d5c037641d3af386750b4b78;p=bertos.git diff --git a/examples/triface/protocol.c b/examples/triface/protocol.c index c00219bd..eec73684 100644 --- a/examples/triface/protocol.c +++ b/examples/triface/protocol.c @@ -34,8 +34,6 @@ * \brief Implementation of the command protocol between the board and the host * * - * \version $Id$ - * * \author Giovanni Bajo * \author Marco Benelli * \author Bernie Innocenti @@ -360,6 +358,11 @@ static void protocol_registerCmds(void) 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;