public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
* fix AT91 SPI driver
@ 2009-02-11 15:49 Bart Veer
  2009-02-16 23:35 ` Jonathan Larmour
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Veer @ 2009-02-11 15:49 UTC (permalink / raw)
  To: ecos-patches

This fixes the AT91 SPI driver in the same way as the CortexM STM32
one.

Bart

2009-02-11  Bart Veer  <bartv@ecoscentric.com>

	* 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-18 17:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11 15:49 fix AT91 SPI driver Bart Veer
2009-02-16 23:35 ` Jonathan Larmour
2009-02-17 18:01   ` Bart Veer
2009-02-18 17:29     ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).