lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /********************************************************************************* |
| 2 | * @file zxic_errno.h |
| 3 | * @brief ¶¨ÒåÆ½Ì¨µÄ´íÎóÂë |
| 4 | * |
| 5 | * Copyright (C) 2017 Sanechips Technology Co., Ltd. |
| 6 | * @author |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | * |
| 11 | ***********************************************************************************/ |
| 12 | #ifndef _ZXIC_ERRNO_H_ |
| 13 | #define _ZXIC_ERRNO_H_ |
| 14 | |
| 15 | #include "max_macro.h" |
| 16 | |
| 17 | |
| 18 | |
| 19 | #ifndef NULL |
| 20 | #define NULL ((void*)0) |
| 21 | #endif |
| 22 | |
| 23 | |
| 24 | typedef struct { |
| 25 | int err_no; |
| 26 | unsigned long err_time; //´íÎó·¢Éúʱ¼ä |
| 27 | } ERR_INFO; |
| 28 | |
| 29 | typedef struct { |
| 30 | unsigned int num; //¼Ç¼errno×ܸöÊý |
| 31 | ERR_INFO errInfo[ERR_TRACK_MAX_NUM]; //Ñ»·¸²¸Çϱê num % ERR_TRACK_MAX_NUM |
| 32 | } ERR_TRACK; |
| 33 | #endif |