From: Ned F. <nfo...@wh...> - 2008-11-03 20:33:17
|
NewBie_Driver wrote: > Hi Ned, > > If I understand right, following are the Protocol Drivers for different > devices, correct ? > robostix_spi.c, pni11096_spi.c, lis3lv02dq.h and lis3lv02dq_spi.c and I need > have similar driver for the slave device I plan to use. > > If I use non-kernel method I can just run the application file to > send/receive packets? > > I have a SPI Adapter from Totalphase.com, I plan to use it to get started. > It can be in slave mode and display received data on GUI. I can try direct > method to see the rx/tx working and then move to kernel method. I think you understand correctly. It would be easiest to start with the direct-register access method, and if that works for you, it will be all you need. > Any advise for writing a simple protocol driver? Not really. The examples on the gumstix wiki are probably good places to start. I do not use, and have not tried, the direct-register method. My protocol driver is extremely complex and is not a good starting example; it uses a highly modified version of pxa2xx_spi.c, which receives 11Mbit/sec data from an externally clocked source. -- Ned Forrester nfo...@wh... Oceanographic Systems Lab 508-289-2226 Applied Ocean Physics and Engineering Dept. Woods Hole Oceanographic Institution Woods Hole, MA 02543, USA http://www.whoi.edu/sbl/liteSite.do?litesiteid=7212 http://www.whoi.edu/hpb/Site.do?id=1532 http://www.whoi.edu/page.do?pid=10079 |