From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28443 invoked by alias); 28 Nov 2008 12:17:50 -0000 Received: (qmail 28434 invoked by uid 22791); 28 Nov 2008 12:17:50 -0000 X-Spam-Level: * X-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BARRACUDA_BRBL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from nicola.2020media.com (HELO nicola.2020mail.com) (212.124.192.216) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 Nov 2008 12:17:02 +0000 Received: from [212.124.199.38] (helo=[192.168.0.2]) by nicola.2020mail.com with esmtp (Exim 4.22) id 1L62Gr-000F9X-DI for ecos-devel@ecos.sourceware.org; Fri, 28 Nov 2008 12:16:29 +0000 Subject: STM32 SPI driver available. From: Chris Holgate To: "ecos-devel@ecos.sourceware.org" Content-Type: text/plain Organization: Zynaptic Limited Date: Fri, 28 Nov 2008 12:17:00 -0000 Message-Id: <1227874609.2834.64.camel@hercules.zynaptic.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1.1 Content-Transfer-Encoding: 7bit X-2020-Relay: Sent using 2020MEDIA.net.uk relay with auth code: Send Abuse reports to abuse@2020media.net.uk X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2008-11/txt/msg00075.txt.bz2 Hi folks, I'm still waiting on the FSF to get back to me with the copyright assignment forms. In the meantime, I've now got the STM32 SPI driver into a state where I'm happy with it. In addition, I've put together a patch for the STM32 which adds the following things: 1) A fix so that GPIO pullups work. 2) A fix so that externally generated interrupts work - not yet tested for all possible external interrupt combinations! 3) Register maps for the DMA, SPI, AFIO and USB blocks. The fixes patch (which should be applied first) is at: http://www.zynaptic.com/ecos/patches/stm32_fixes_27_11_08.patch.gz The SPI driver patch is at: http://www.zynaptic.com/ecos/patches/stm32_spi_release_28_11_08.patch.gz These will both need the -p1 option if patching from the directory containing your ecos CVS checkout. The SPI driver patch also adds the .sram section to all the linker scripts. This is required because the driver needs to use the SRAM for DMA bounce buffers when running from external memory. There is a quick loopback test in the SPI test directory which can be used to check basic functionality. I've also run a number of stress tests against my proprietary SPI target device. In an ideal world there would also be a device driver for the M25X SPI flash series device which is present on the STM3210E-EVAL board - but unfortunately I've got other priorities right now. As I said, this is all stuff which I want to contribute to the main repository once the FSF paperwork is sorted, so any testing and feedback that you want to generate now will save time later. Chris.