Closed GoogleCodeExporter closed 9 years ago
From my point of view, there is a clean abstraction layer for the SPI
interface. However it is
- not documented
- put into a single file.
What I will do on this issue: I can provide a interface description and a (kind
of) device driver developer guideline.
Original comment by olikr...@gmail.com
on 24 Dec 2010 at 6:55
current abstraction layer looks like this:
/*
dogmspi.c
spi abstraction layer
*/
#include "dogm128.h"
/* setup hardware pins, prepare SPI subsystem */
void dog_spi_init(void)
{
}
/* output a 8 bit value on the SPI bus */
unsigned char dog_spi_out(unsigned char data)
{
}
/* assign low to chip select line */
void dog_spi_enable_client(void)
{
}
/* assign high to chip select line */
void dog_spi_disable_client(void)
{
}
/* assign low to A0 line */
void dog_cmd_mode(void)
{
}
/* assign high to A0 line */
void dog_data_mode(void)
{
}
Original comment by olikr...@gmail.com
on 24 Dec 2010 at 8:46
added template file and function description.
missing: variable description
Original comment by olikr...@gmail.com
on 24 Dec 2010 at 11:18
this looks perfect, so anyone can now insert own calls inside those functions
and off you go :)
Original comment by ytilare@tlen.pl
on 26 Dec 2010 at 3:42
thanks for your comments.
the wiki page will be here:
http://code.google.com/p/dogm128/wiki/spiapi
however, related issue 107 has to be finished...
Original comment by olikr...@gmail.com
on 26 Dec 2010 at 10:15
issue 107 closed, from my side, all seems to be done
Original comment by olikr...@gmail.com
on 29 Dec 2010 at 5:58
Original issue reported on code.google.com by
ytilare@tlen.pl
on 21 Dec 2010 at 2:16