tiz
Error.h@0:d60c26d5fddc, 2016-09-14 (annotated)
- Committer:
- youle1119
- Date:
- Wed Sep 14 08:55:41 2016 +0000
- Revision:
- 0:d60c26d5fddc
tiz
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| youle1119 | 0:d60c26d5fddc | 1 | #include "mbed.h" |
| youle1119 | 0:d60c26d5fddc | 2 | |
| youle1119 | 0:d60c26d5fddc | 3 | #ifndef __ERROR_H__ |
| youle1119 | 0:d60c26d5fddc | 4 | #define __ERROR_H__ |
| youle1119 | 0:d60c26d5fddc | 5 | |
| youle1119 | 0:d60c26d5fddc | 6 | enum ErrorCode{ |
| youle1119 | 0:d60c26d5fddc | 7 | ERROR_UNKNOW, |
| youle1119 | 0:d60c26d5fddc | 8 | ERROR_CONFIG |
| youle1119 | 0:d60c26d5fddc | 9 | }; |
| youle1119 | 0:d60c26d5fddc | 10 | |
| youle1119 | 0:d60c26d5fddc | 11 | void raise_error(ErrorCode ec); |
| youle1119 | 0:d60c26d5fddc | 12 | |
| youle1119 | 0:d60c26d5fddc | 13 | #endif //__ERROR_H__ |