This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: at91sam7 spi test code
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Frank Wu <qiongwu23 at gmail dot com>
- Cc: ecos-discuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 30 Jan 2007 21:51:26 +0100
- Subject: Re: [ECOS] at91sam7 spi test code
- References: <591a86200701301236l4e646c1cma2db1aa361bebea@mail.gmail.com>
On Tue, Jan 30, 2007 at 12:36:40PM -0800, Frank Wu wrote:
> Dear All,
>
> I want to use SPI bus on a sam7 uC. Where can I find SPI test code to
> make sure the SPI driver works?
This is not easy. You need a device on the bus and a driver for the
device. It is not really possible to test the SPI bus driver without
testing the SPI device device driver at the same time.
So i suggest you just write your device device driver and maybe
connect a logic analyser/3-channel digital oscilloscope to the SPI bus.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss