X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Ftypes%2FTinyError.h;h=1f1465952d5a79d63f62956ed2d4426499d53a99;hb=9cc61e6f53346c35cd9a1661dc7fa287b64de3fc;hp=c2ed2bfab8c9b13f2ed60d9465def147a1f56e34;hpb=8b4a755044c98e87f7110e78bed027979cb9f2b2;p=tinyos-2.x.git diff --git a/tos/types/TinyError.h b/tos/types/TinyError.h index c2ed2bfa..1f146595 100644 --- a/tos/types/TinyError.h +++ b/tos/types/TinyError.h @@ -38,16 +38,18 @@ #endif enum { - SUCCESS = 0, - FAIL = 1, // Generic condition: backwards compatible - ESIZE = 2, // Parameter passed in was too big. - ECANCEL = 3, // Operation cancelled by a call. - EOFF = 4, // Subsystem is not active - EBUSY = 5, // The underlying system is busy; retry later - EINVAL = 6, // An invalid parameter was passed - ERETRY = 7, // A rare and transient failure: can retry - ERESERVE = 8, // Reservation required before usage - EALREADY = 9, // The device state you are requesting is already set + SUCCESS = 0, + FAIL = 1, // Generic condition: backwards compatible + ESIZE = 2, // Parameter passed in was too big. + ECANCEL = 3, // Operation cancelled by a call. + EOFF = 4, // Subsystem is not active + EBUSY = 5, // The underlying system is busy; retry later + EINVAL = 6, // An invalid parameter was passed + ERETRY = 7, // A rare and transient failure: can retry + ERESERVE = 8, // Reservation required before usage + EALREADY = 9, // The device state you are requesting is already set + ENOMEM = 10, // Memory required not available + ELAST = 10 // Last enum value }; typedef uint8_t error_t NESC_COMBINE("ecombine");