This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

I2C hal_tables fix


Hi,

The following patch corrects a missing in the use of hal_tables.

Index: packages/io/i2c/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/i2c/current/ChangeLog,v
retrieving revision 1.2
diff -u -r1.2 ChangeLog
--- packages/io/i2c/current/ChangeLog	21 Apr 2005 19:04:57 -0000	1.2
+++ packages/io/i2c/current/ChangeLog	13 May 2005 20:46:22 -0000
@@ -1,3 +1,8 @@
+2005-05-13  Nicolas Brouard  <nicolas.brouard@silicomp.ca>
+
+	* include/i2c.h: Add CYG_HAL_TABLE_TYPE to the cyg_i2c_bus structure
+	for a correct use of hal_tables.
+
 2005-04-21  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* doc/i2c.sgml: Replaced a _ with a - to keep jade happy.
@@ -42,3 +47,4 @@
 // -------------------------------------------
 //####ECOSGPLCOPYRIGHTEND####
 //===========================================================================
+
Index: packages/io/i2c/current/include/i2c.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/i2c/current/include/i2c.h,v
retrieving revision 1.1
diff -u -r1.1 i2c.h
--- packages/io/i2c/current/include/i2c.h	20 Apr 2005 12:25:30 -0000	1.1
+++ packages/io/i2c/current/include/i2c.h	13 May 2005 20:46:23 -0000
@@ -92,7 +92,7 @@
     void                    (*i2c_stop_fn)(const cyg_i2c_device*);
     // A spare field for use by the driver
     void*                   i2c_extra;
-} cyg_i2c_bus;
+} CYG_HAL_TABLE_TYPE cyg_i2c_bus;
 
 #define CYG_I2C_BUS(_name_, _init_fn_, _tx_fn_, _rx_fn_, _stop_fn_, _extra_)    \
     cyg_i2c_bus _name_  CYG_HAL_TABLE_ENTRY( i2c_buses ) = {                    \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]