From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13213 invoked by alias); 9 Feb 2009 23:06:13 -0000 Received: (qmail 13196 invoked by uid 22791); 9 Feb 2009 23:06:08 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_33,SPF_PASS X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Feb 2009 23:06:02 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 71D203B4003E for ; Mon, 9 Feb 2009 23:06:00 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PX1nf1c6pfeX; Mon, 9 Feb 2009 23:05:59 +0000 (GMT) Date: Mon, 09 Feb 2009 23:06:00 -0000 Message-Id: From: Bart Veer To: ecos-patches@sourceware.org Subject: SPI subsystem update Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2009-02/txt/msg00057.txt.bz2 A couple of the CDL descriptions mentioned the generic serial package instead of SPI. There was a typo in the documentation. I have also added a mention of CYG_INIT_BUS_SPI priority. Bart 2009-02-09 Bart Veer * cdl/spi.cdl: fix descriptions in the CFLAGS_ADD and CFLAGS_REMOVE options * doc/spi.sgml: fix typo. Mention CYG_INIT_BUS_SPI priority. Index: doc/spi.sgml =================================================================== RCS file: /cvs/ecos/ecos/packages/io/spi/current/doc/spi.sgml,v retrieving revision 1.2 diff -u -p -r1.2 spi.sgml --- doc/spi.sgml 29 Jan 2009 17:49:48 -0000 1.2 +++ doc/spi.sgml 9 Feb 2009 23:04:52 -0000 @@ -203,8 +203,8 @@ extra functions in the platform HAL. Typically all appropriate packages will be loaded automatically when you configure eCos for a given target. If the application does not use -of the SPI I/O facilities, directly or indirectly, then linker garbage -collection should eliminate all unnecessary code and data. All +any of the SPI I/O facilities, directly or indirectly, then linker +garbage collection should eliminate all unnecessary code and data. All necessary initialization should happen automatically. However the exact details may depend on the target, so the platform HAL documentation should be checked for further details. @@ -689,7 +689,8 @@ Create a HAL table for the devices attac Arrange for the bus to be initialized early on during system initialization. Typically this will happen via a prioritized static -constructor. As part of this initialization the bus driver should +constructor with priority CYG_INIT_BUS_SPI. +As part of this initialization the bus driver should invoke the CYG_SPI_BUS_COMMON_INIT macro on its cyg_spi_bus field. Index: cdl/spi.cdl =================================================================== RCS file: /cvs/ecos/ecos/packages/io/spi/current/cdl/spi.cdl,v retrieving revision 1.4 diff -u -p -r1.4 spi.cdl --- cdl/spi.cdl 29 Jan 2009 17:49:48 -0000 1.4 +++ cdl/spi.cdl 9 Feb 2009 23:05:31 -0000 @@ -58,15 +58,13 @@ cdl_package CYGPKG_IO_SPI { attached to an SPI bus. It also provides support for writing bus drivers and for defining SPI device structures." - cdl_component CYGPKG_IO_SPI_OPTIONS { display "SPI build options" flavor none description " Package specific build options including control over - compiler flags used only in building this package, - and details of which tests are built." - + compiler flags used only in building the generic SPI + package, and details of which tests are built." cdl_option CYGPKG_IO_SPI_CFLAGS_ADD { display "Additional compiler flags" @@ -75,8 +73,8 @@ cdl_package CYGPKG_IO_SPI { default_value { "" } description " This option modifies the set of compiler flags for - building the serial device drivers. These flags are used in addition - to the set of global flags." + building the generic SPI package. These flags are + used in addition to the set of global flags." } cdl_option CYGPKG_IO_SPI_CFLAGS_REMOVE { @@ -86,8 +84,8 @@ cdl_package CYGPKG_IO_SPI { default_value { "" } description " This option modifies the set of compiler flags for - building the serial device drivers. These flags are removed from - the set of global flags if present." + building the generic SPI package. These flags are + removed from the set of global flags if present." } } }