From: Nathael Pajani Date: Sun, 29 Dec 2013 00:35:03 +0000 (+0100) Subject: Improved comments on error codes. X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=c1ef9b8bdb1ad26c904a5d7ed970b6facb7fab30;p=soft%2Flpc122x%2Fcore Improved comments on error codes. --- diff --git a/include/core/system.h b/include/core/system.h index be2e939..e978988 100644 --- a/include/core/system.h +++ b/include/core/system.h @@ -32,15 +32,21 @@ /* Error Values, from glibc errno.h and errno-base.h */ -#define EIO 5 /* Bad one: Illegal start or stop, or illegal state in i2c state machine */ +#define EIO 5 /* Bad one: Input or Output error. */ #define EAGAIN 11 /* Device already in use */ -#define EFAULT 14 /* address above eeprom size */ -#define EBUSY 16 /* Device or ressource Busy or Arbitration lost */ +#define EFAULT 14 /* Address error */ +#define EBUSY 16 /* Device or ressource Busy */ #define ENODEV 19 /* No such device */ #define EINVAL 22 /* Invalid argument */ #define EBADFD 77 /* Device not initialized */ #define EREMOTEIO 121 /* Device did not acknowledge */ +/* Note on error values for I2C : + * EIO : Bad one: Illegal start or stop, or illegal state in i2c state machine + * EFAULT : address above eeprom size + * EBUSY : Device or ressource Busy or Arbitration lost + * EREMOTEIO : Device did not acknowledge + */ /***************************************************************************** */ /* Power up defaults */