From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9225 invoked by alias); 21 Nov 2008 15:15:32 -0000 Received: (qmail 9156 invoked by uid 22791); 21 Nov 2008 15:15:30 -0000 X-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SARE_PROLOSTOCK_SYM3 X-Spam-Check-By: sourceware.org Received: from mail01.solnet.ch (HELO mail01.solnet.ch) (212.101.4.135) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 21 Nov 2008 15:14:51 +0000 X-Virus-Scanned: by SolNet-Check at mail01.solnet.ch Received: from mail01.solnet.ch ([127.0.0.1]) by localhost (mail01.solnet.ch [127.0.0.1]) (SolNet-Check, port 10024) with LMTP id i5VdgRdw-26n; Fri, 21 Nov 2008 15:14:47 +0000 (UTC) Received: from beta.intefo.ch (static-212-101-18-64.adsl.solnet.ch [212.101.18.64]) by mail01.solnet.ch (Postfix) with ESMTP id 1B5E450836; Fri, 21 Nov 2008 15:14:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at beta.intefo.ch Received: from beta.intefo.ch ([127.0.0.1]) by localhost (beta.intefo.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id atORuFqMhz2E; Fri, 21 Nov 2008 16:14:46 +0100 (CET) Received: from [192.168.1.20] (simon.intefo.ch [192.168.1.20]) by beta.intefo.ch (Postfix) with ESMTP id 79B277700E9; Fri, 21 Nov 2008 16:14:45 +0100 (CET) Message-ID: <4926D088.5000100@intefo.ch> Date: Fri, 21 Nov 2008 15:15:00 -0000 From: Simon Kallweit User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Chris Holgate CC: ecos-devel@ecos.sourceware.org Subject: Re: STM32 - I/O pullup and EXTI issues, plus new SPI driver. References: <1227280292.8476.47.camel@hercules.zynaptic.com> In-Reply-To: <1227280292.8476.47.camel@hercules.zynaptic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00042.txt.bz2 Chris Holgate wrote: > Hi folks, > > I came across a couple of HAL issues while putting together my new SPI > driver for the STM32. I appreciate that the maintainers are overloaded > with eCos 3.0 work at the moment, so I'll defer to them as to whether > any of this needs fixing now and can provide more information/patches on > request. > > 1) It's not possible to set pullups on I/Os using the provided > functions. This is a trivial one-line fix to stm32-misc.c. > If you don't have the time to wrap this up in a little patch, send the changes to me so I can do it. > 2) External interrupts don't work as they stand. This requires a few > changes to the STM32 var_intr.h. If required I can tidy up my changes > there and provide a patch which I've tested using a single I/O > (EXTINT0), but which would probably benefit from a bit more testing > using other I/O configurations. > I can review your changes if you want, I have done some work with EXTIs on my own obsolete port. > 3) I've now got full register maps for the AFIO, DMA and SPI blocks. > For development purposes I've kept these in a separate file from the > STM32 var_io.h, but can provide the file for merging if required. > Make a patch for the register definitions, I think this can go in the tree without the driver, register definitions are always welcome :) > FYI, I now have a DMA-based SPI driver that is fully functional in > kernel mode, but will need one or two changes (and some testing!) to > make it play nicely in non-kernel mode. Probably best to leave that > until the 3.0 release is done, though. > I can do a review and prepare patches if that helps. Otherwise, I wait until it's done. Simon