command: replace printf printf_P
[protos/xbee-avr.git] / general_errors.h
1 /*  
2  *  Copyright Droids Corporation, Microb Technology, Eirbot (2005)
3  * 
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  *
18  *  Revision : $Id: general_errors.h,v 1.5.4.3 2009-01-23 23:54:15 zer0 Exp $
19  *
20  */
21
22
23 /** 
24  * these are general errors. 
25  */
26
27 /* Not module specific */
28
29 /* Operation not permitted */
30 #define EPERM_COMMENT   "Operation not permitted"
31
32 /* No such file or directory */
33 #define ENOENT_COMMENT   "No such file or directory"
34
35 /* I/O error */
36 #define EIO_COMMENT   "I/O error"
37
38 /* No such device or address */
39 #define ENXIO_COMMENT   "No such device or address"
40
41 /* Argument list too long */
42 #define E2BIG_COMMENT   "Argument list too long"
43
44 /* Try again */
45 #define EAGAIN_COMMENT   "Try again"
46
47 /* Out of memory */
48 #define ENOMEM_COMMENT   "Out of memory"
49
50 /* Bad address */
51 #define EFAULT_COMMENT   "Bad address"
52
53 /* Device or resource busy */
54 #define EBUSY_COMMENT   "Device or resource busy"
55
56 /* Invalid argument */
57 #define EINVAL_COMMENT   "Invalid argument"
58
59 /* Unkwow error */
60 #define EUNKNOW_COMMENT   "Unkwow error"
61
62
63 /* Module specific, from 129 to 192 */
64
65 #define E_UART 129
66 #define E_ROBOT_SYSTEM 130
67 #define E_MULTISERVO 131
68 #define E_TRAJECTORY 132
69 #define E_I2C 133
70 #define E_BLOCKING_DETECTION_MANAGER 134
71 #define E_OA 135
72 #define E_SPI 136
73 #define E_CC2420 137
74 #define E_TIME_EXT 138
75
76 /* ... etc TBD */
77
78 /* User specific, from > 192 */
79
80 /* defined in user app */