This fixes the AT91 SPI driver in the same way as the CortexM STM32 one. Bart
2009-02-11 Bart Veer <[email protected]> * src/spi_at91.c (cyg_spi_at91_bus_init): turn into a prioritized constructor, make it a static and rename. * cdl/spi_at91.cdl: remove src/spi_at91_init.cxx * src/spi_at91_init.cxx: removed, no longer needed. Index: cdl/spi_at91.cdl =================================================================== RCS file: /cvs/ecos/ecos/packages/devs/spi/arm/at91/current/cdl/spi_at91.cdl,v retrieving revision 1.3 diff -u -p -r1.3 spi_at91.cdl --- cdl/spi_at91.cdl 29 Jan 2009 17:48:44 -0000 1.3 +++ cdl/spi_at91.cdl 11 Feb 2009 15:48:12 -0000 @@ -54,8 +54,6 @@ cdl_package CYGPKG_DEVS_SPI_ARM_AT91 { hardware include_dir cyg/io compile spi_at91.c - compile -library=libextras.a spi_at91_init.cxx - cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS0 { display "Enable support for SPI bus 0" Index: src/spi_at91.c =================================================================== RCS file: /cvs/ecos/ecos/packages/devs/spi/arm/at91/current/src/spi_at91.c,v retrieving revision 1.8 diff -u -p -r1.8 spi_at91.c --- src/spi_at91.c 29 Jan 2009 17:48:45 -0000 1.8 +++ src/spi_at91.c 11 Feb 2009 15:48:34 -0000 @@ -175,8 +175,8 @@ CYG_SPI_DEFINE_BUS_TABLE(cyg_spi_at91_de #endif // ------------------------------------------------------------------------- -void -cyg_spi_at91_bus_init(void) +static void CYGBLD_ATTRIB_C_INIT_PRI(CYG_INIT_BUS_SPI) +spi_at91_bus_init(void) { #ifdef CYGHWR_DEVS_SPI_ARM_AT91_BUS0
