You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: platform/mbed_error.h
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -86,24 +86,24 @@ extern "C" {
86
86
\endverbatim
87
87
*
88
88
* The error status value range for each error type is as follows:\n
89
-
* Posix Error Status-es - 0xFFFFFFFF to 0xFFFFFF01(-1 -255) - This corresponds to Posix error codes represented as negative.\n
89
+
* POSIX Error Status-es - 0xFFFFFFFF to 0xFFFFFF01(-1 -255) - This corresponds to POSIX error codes represented as negative.\n
90
90
* System Error Status-es - 0x80XX0100 to 0x80XX0FFF - This corresponds to System error codes range(all values are negative). Bits 23-16 will be module type(marked with XX)\n
91
91
* Custom Error Status-es - 0xA0XX1000 to 0xA0XXFFFF - This corresponds to Custom error codes range(all values are negative). Bits 23-16 will be module type(marked with XX)\n\n
92
92
*
93
93
* The ERROR CODE(values encoded into ERROR CODE bit-field in mbed_error_status_t) value range for each error type is also separated as below:\n
94
-
* Posix Error Codes - 1 to 255.\n
94
+
* POSIX Error Codes - 1 to 255.\n
95
95
* System Error Codes - 256 to 4095.\n
96
96
* Custom Error Codes - 4096 to 65535.\n
97
97
*
98
-
* @note Posix error codes are always encoded as negative of their actual value. For example, EPERM is encoded as -EPERM.
99
-
* And, the MODULE TYPE for Posix error codes are always encoded as MBED_MODULE_UNKNOWN.\n
100
-
* This is to enable easy injection of Posix error codes into MbedOS error handling system without altering the actual Posix error values.\n
101
-
* Accordingly, Posix error codes are represented as -1 to -255 under MbedOS error status representation.
98
+
* @note POSIX error codes are always encoded as negative of their actual value. For example, EPERM is encoded as -EPERM.
99
+
* And, the MODULE TYPE for POSIX error codes are always encoded as MBED_MODULE_UNKNOWN.\n
100
+
* This is to enable easy injection of POSIX error codes into MbedOS error handling system without altering the actual POSIX error values.\n
101
+
* Accordingly, POSIX error codes are represented as -1 to -255 under MbedOS error status representation.
102
102
*/
103
103
typedefintmbed_error_status_t;
104
104
105
105
/**
106
-
* Macro for defining a Posix error status. This macro is mainly used to define Posix error values in mbed_error_code_t enumeration.
106
+
* Macro for defining a POSIX error status. This macro is mainly used to define POSIX error values in mbed_error_code_t enumeration.
107
107
* @param error_name Name of the error without the ERROR_ prefix
108
108
* @param error_code Error code value to be used, must be between 1 and 255(inclusive).
109
109
*
@@ -201,7 +201,7 @@ typedef int mbed_error_status_t;
201
201
* See mbed_error_status_t description for more info.\n
202
202
* MBED_ERROR_TYPE_SYSTEM - Used to indicate that the error status is of System defined Error type.\n
203
203
* MBED_ERROR_TYPE_CUSTOM - Used to indicate that the error status is of Custom defined Error type.\n
204
-
* MBED_ERROR_TYPE_POSIX - Used to indicate that the error status is of Posix error type.\n
204
+
* MBED_ERROR_TYPE_POSIX - Used to indicate that the error status is of POSIX error type.\n
0 commit comments