From: Nathael Pajani Date: Mon, 8 May 2017 00:02:59 +0000 (+0200) Subject: Some more error codes X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=c1f2bb1ca1444a6083aa231aced85818be4f3d55;p=soft%2Flpc122x%2Fcore Some more error codes --- diff --git a/include/lib/errno.h b/include/lib/errno.h index 8d563eb..0a3011d 100644 --- a/include/lib/errno.h +++ b/include/lib/errno.h @@ -22,15 +22,25 @@ #define LIB_ERRNO_H /* Error Values, from glibc errno.h and errno-base.h */ +#define EPERM 1 /* Operation not permitted */ #define EIO 5 /* Bad one: Input or Output error. */ #define E2BIG 7 /* Argument list too long or Data size beyond buffer size */ -#define EAGAIN 11 /* Device already in use */ +#define EAGAIN 11 /* Device already in use (Try again) */ +#define ENOMEM 12 /* Out of memory */ +#define EACCES 13 /* Permission denied */ #define EFAULT 14 /* Address error */ #define EBUSY 16 /* Device or ressource Busy */ #define ENODEV 19 /* No such device */ #define EINVAL 22 /* Invalid argument */ +#define ENODATA 61 /* No data available */ +#define ECOMM 70 /* Communication error on send */ +#define EPROTO 71 /* Protocol error */ #define EBADFD 77 /* Device not initialized */ -#define EREMOTEIO 121 /* Device did not acknowledge */ +#define EILSEQ 84 /* Illegal byte sequence */ +#define ENOBUFS 105 /* No buffer space available */ +#define EREMOTEIO 121 /* Device did not acknowledge */ +#define ECANCELED 125 /* Operation Canceled */ + /* Note on error values for I2C : * EIO : Bad one: Illegal start or stop, or illegal state in i2c state machine