This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
spi.sgml fix
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: eCos patches list <ecos-patches at ecos dot sourceware dot org>
- Date: Fri, 13 Feb 2009 20:20:33 +0200
- Subject: spi.sgml fix
Hi
It seems there is a wrong order for the struct attributes in a code
example.
Sergei
Index: current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/spi/current/ChangeLog,v
retrieving revision 1.5
diff -U5 -r1.5 ChangeLog
--- current/ChangeLog 9 Feb 2009 23:06:15 -0000 1.5
+++ current/ChangeLog 13 Feb 2009 18:15:33 -0000
@@ -1,5 +1,9 @@
+2009-02-13 Sergei Gavrikov <sergei.gavrikov@gmail.com>
+
+ * doc/spi.sgml: fix an example of code.
+
2009-02-09 Bart Veer <bartv@ecoscentric.com>
* 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: current/doc/spi.sgml
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/spi/current/doc/spi.sgml,v
retrieving revision 1.3
diff -U5 -r1.3 spi.sgml
--- current/doc/spi.sgml 9 Feb 2009 23:06:14 -0000 1.3
+++ current/doc/spi.sgml 13 Feb 2009 18:15:33 -0000
@@ -626,14 +626,15 @@
cpu pins should be configured as chip selects rather than GPIO pins.
To achieve this all device definitions should specify the particular
bus to which they are attached, for example:
</para>
<programlisting>
-struct cyg_mcf52xx_qspi_device hal_spi_atod = {
+struct cyg_mcf52xx_qspi_device hal_spi_atod CYG_SPI_DEVICE_ON_BUS(0) =
+{
.spi_common.spi_bus = &cyg_mcf52xx_qspi_bus,
…
-} CYG_SPI_DEVICE_ON_BUS(0);
+};
</programlisting>
<para>
The <function>CYG_SPI_DEVICE_ON_BUS</function> macro adds information
to the structure which causes the linker to group all such structures
in a single table. The bus driver's initialization code can then