mbed library sources. Supersedes mbed-src.

Dependents:   SPIne CH_Communicatuin_Test CH_Communicatuin_Test2 MCP_SPIne ... more

Fork of mbed-dev-f303 by Ben Katz

Revision:
153:fa9ff456f731
Parent:
149:156823d33999
Child:
172:7d866c31b3c5
--- a/hal/i2c_api.h	Thu Dec 15 11:48:27 2016 +0000
+++ b/hal/i2c_api.h	Tue Dec 20 17:27:56 2016 +0000
@@ -117,7 +117,9 @@
  *  @param data    The buffer for sending
  *  @param length  Number of bytes to write
  *  @param stop    Stop to be generated after the transfer is done
- *  @return Number of written bytes
+ *  @return 
+ *      zero or non-zero - Number of written bytes
+ *      negative - I2C_ERROR_XXX status
  */
 int i2c_write(i2c_t *obj, int address, const char *data, int length, int stop);