From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32057 invoked by alias); 30 Jan 2007 20:51:37 -0000 Received: (qmail 32048 invoked by uid 22791); 30 Jan 2007 20:51:37 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 Jan 2007 20:51:30 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1HBzws-0006Hu-00; Tue, 30 Jan 2007 21:51:26 +0100 Date: Tue, 30 Jan 2007 20:51:00 -0000 To: Frank Wu Cc: ecos-discuss Message-ID: <20070130205126.GE22661@lunn.ch> Mail-Followup-To: Frank Wu , ecos-discuss References: <591a86200701301236l4e646c1cma2db1aa361bebea@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <591a86200701301236l4e646c1cma2db1aa361bebea@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) From: Andrew Lunn X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] at91sam7 spi test code X-SW-Source: 2007-01/txt/msg00174.txt.bz2 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