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 28 Apr 2005 10:27:05 -0000 @@ -1,3 +1,9 @@ +2005-04-28 Peter Korsgaard + + * doc/i2c.sgml: Corrected cyg_i2c_rx, cyg_i2c_transaction_rx and + xyzzy_i2c_rx prototype. Removed continuation character in + CYG_I2C_DEVICE example. + 2005-04-21 Andrew Lunn * doc/i2c.sgml: Replaced a _ with a - to keep jade happy. Index: packages/io/i2c/current/doc/i2c.sgml =================================================================== RCS file: /cvs/ecos/ecos/packages/io/i2c/current/doc/i2c.sgml,v retrieving revision 1.2 diff -u -r1.2 i2c.sgml --- packages/io/i2c/current/doc/i2c.sgml 21 Apr 2005 19:05:03 -0000 1.2 +++ packages/io/i2c/current/doc/i2c.sgml 28 Apr 2005 10:27:05 -0000 @@ -231,7 +231,7 @@ cyg_uint32 cyg_i2c_rx const cyg_i2c_device* device - const cyg_uint8* tx_data + cyg_uint8* rx_data cyg_uint32 count @@ -254,7 +254,7 @@ cyg_uint32 cyg_i2c_transaction_rx const cyg_i2c_device* device cyg_bool send_start - const cyg_uint8* tx_data + cyg_uint8* rx_data cyg_uint32 count cyg_bool send_nack cyg_bool send_stop @@ -641,16 +641,16 @@ #include <cyg/io/i2c.h> -CYG_I2C_DEVICE(cyg_i2c_wallclock_ds1307, \ - &hal_alaia_i2c_bus, \ - 0x68, \ - 0x00, \ +CYG_I2C_DEVICE(cyg_i2c_wallclock_ds1307, + &hal_alaia_i2c_bus, + 0x68, + 0x00, CYG_I2C_DEFAULT_DELAY); -CYG_I2C_DEVICE(hal_alaia_i2c_fs6377, \ - &hal_alaia_i2c_bus, \ - 0x58, \ - 0x00, \ +CYG_I2C_DEVICE(hal_alaia_i2c_fs6377, + &hal_alaia_i2c_bus, + 0x58, + 0x00, CYG_I2C_DEFAULT_DELAY); @@ -906,9 +906,9 @@ } static cyg_uint32 -xyzzy_i2c_tx(const cyg_i2c_device* dev, +xyzzy_i2c_rx(const cyg_i2c_device* dev, cyg_bool send_start, - const cyg_uint8* tx_data, cyg_uint32 count, + cyg_uint8* rx_data, cyg_uint32 count, cyg_bool send_stop) { …