Mercurial > ecos-v3_0-branch
changeset 2804:32cb142393e6
* doc/spi.sgml: fix an example of code.
| author | jlarmour |
|---|---|
| date | Mon, 16 Feb 2009 21:48:43 +0000 |
| parents | d21b0d3d2e3e |
| children | 763f435204f8 |
| files | packages/io/spi/current/ChangeLog packages/io/spi/current/doc/spi.sgml |
| diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/io/spi/current/ChangeLog +++ b/packages/io/spi/current/ChangeLog @@ -1,3 +1,7 @@ +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
--- a/packages/io/spi/current/doc/spi.sgml +++ b/packages/io/spi/current/doc/spi.sgml @@ -628,10 +628,11 @@ To achieve this all device definitions s 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
