From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26460 invoked by alias); 16 Mar 2011 17:07:45 -0000 Received: (qmail 26438 invoked by uid 22791); 16 Mar 2011 17:07:41 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay01.alfahosting-server.de (HELO relay01.alfahosting-server.de) (80.86.191.88) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Mar 2011 17:07:33 +0000 Received: by relay01.alfahosting-server.de (Postfix, from userid 1001) id AB7D032C0036; Wed, 16 Mar 2011 18:07:31 +0100 (CET) X-Spam-DCC: : relay01 1282; Body=1 Fuz1=1 Fuz2=1 Received: from alfa3018.alfahosting-server.de (alfa3018.alfahosting-server.de [82.197.146.36]) by relay01.alfahosting-server.de (Postfix) with ESMTP id 637CB32C0173; Wed, 16 Mar 2011 18:07:25 +0100 (CET) Received: from pc.martinlaabs.de (p54B33B53.dip.t-dialin.net [84.179.59.83]) by alfa3018.alfahosting-server.de (Postfix) with ESMTPSA id 0519C515EC20; Wed, 16 Mar 2011 18:07:24 +0100 (CET) Message-ID: <4D80EE4C.3090703@mailbox.tu-dresden.de> Date: Wed, 16 Mar 2011 17:07:00 -0000 From: Martin Laabs Reply-To: uni@martinlaabs.de User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.16) Gecko/20101223 Lightning/1.0b1 Thunderbird/3.0.11 MIME-Version: 1.0 To: John Dallaway , ecos-devel@ecos.sourceware.org Subject: Re: eCos on AT91SAM9 - call to action References: <4D809BF2.6040205@dallaway.org.uk> In-Reply-To: <4D809BF2.6040205@dallaway.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checker-Version: clamassassin 1.2.4 with ClamAV 0.97/12846/Wed Mar 16 15:28:52 2011 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: 2011-03/txt/msg00007.txt.bz2 Hello, my port based on the one of Evgeniy Dushitov at the very beginning. However - after some weeks I discovered that it was very hard to support more CPUs out of the AT91SAM9 family with that code-base. So I started from beginning, reusing only some code snipplet from Evgeniy. I made the decision to split the port into three packages. The at91sam9 package contains all the stuff that is common to all at91sam9 CPUs. The at91sam9260 package contains the CPU specific definitions/function and the board package handles all the board specific things like pin assignment, linker scripts etc. I used the atmel register definitions to generate the includes for the register that are common to every at91sam9 cpu and the cpu specific parts. The names are not equal to the ones in the at91 packages - but its worth the price for a (nearly) complete register description that is also equal to the ones in the datasheets. I also changed the pin handling to a somewhat better readable style. I.e. #define SPI1_NPCS0 AT91SAM9_PIN(AT91SAM9_PIN_TYPE_PERIPH_A,AT91SAM9_PIN_PORT_B, 3) Currently we ported the SPI driver in polled and dma mode (including the cache coherency handling), the serial driver and ethernet peripheral. I also wrote code for the SSI but this is to application specific. Board support is limited to the AT91SAM9260EK and our specific board. However we plan to add the olimex eval board of the AT91SAM9260 soon. The include files for all other processors are generated as well. So porting to other CPUs and/or boards should be no great deal. Currently we use our own GIT server. But I think we can open it for publicly - at least reading access. I will ask for permission to open the GIT server and publish the URL if someone want to look on the code base. Greetings, Martin Laabs