lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /** |
| 2 | * @file max_macro.h |
| 3 | * @brief ƽ̨¼¶Ä£¿é¼ä¹«¹²ÉÏÏ޺궨Ò壬Óû§¿ÉÐÞ¸ÄÉÏÏÞÖµ£¬·²ÊDz»»á±»Ð޸ĵĺ꣬²»×¼ÔÚ´ËÍ·ÎļþÖж¨Òå |
| 4 | *ËùÓпçÄ£¿éµÄ²ßÂԺ꣬ÈçÏûÏ¢³¤¶È¡¢NV³¤¶ÈµÈ£»SMS¡¢PB³¤¶È£»¶¨Ê±Æ÷ʱ³¤£»³¢ÊÔ´ÎÊý£»Ñ»·ÉÏÏÞ£» |
| 5 | * Copyright (C) 2017 Sanechips Technology Co., Ltd. |
| 6 | * @author |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License version 2 as |
| 10 | * published by the Free Software Foundation. |
| 11 | * |
| 12 | */ |
| 13 | #ifndef __MAX_MACRO_H__ |
| 14 | #define __MAX_MACRO_H__ |
| 15 | |
| 16 | /** |
| 17 | * @brief ½ø³Ì¼äÏûÏ¢·¢Ë͵ÄÏûÏ¢ÄÚÈݳ¤¶ÈÉÏÏÞ |
| 18 | */ |
| 19 | #define MSG_DATA_MAX_LEN 3500 |
| 20 | |
| 21 | /** |
| 22 | * @brief ºË¼äÏûÏ¢·¢Ë͵ÄÏûÏ¢ÄÚÈݳ¤¶ÈÉÏÏÞ |
| 23 | */ |
| 24 | #define SOC_MSG_MAX_LEN (MSG_DATA_MAX_LEN-16) |
| 25 | |
| 26 | /** |
| 27 | * @brief ºË¼äͨµÀ»º´æ´óС |
| 28 | */ |
| 29 | #define AT_CHAN_MAX_BUF_LEN 8*1024 |
| 30 | |
| 31 | /** |
| 32 | * @brief NVÅäÖÃÎļþÃû³¤¶ÈÉÏÏÞ |
| 33 | */ |
| 34 | #define NV_MAX_FILE_LEN 256 |
| 35 | |
| 36 | /** |
| 37 | * @brief NVÏîÃû³Æ³¤¶ÈÉÏÏÞ |
| 38 | */ |
| 39 | #define NV_MAX_KEY_LEN 1024 |
| 40 | |
| 41 | /** |
| 42 | * @brief NVÖµ³¤¶ÈÉÏÏÞ |
| 43 | */ |
| 44 | #define NV_MAX_VAL_LEN 1024 |
| 45 | |
| 46 | /** |
| 47 | * @brief NVÏîºÍNVÖµ³¤¶ÈÉÏÏÞ |
| 48 | */ |
| 49 | #define NV_MAX_ITEM_LEN (NV_MAX_KEY_LEN + NV_MAX_VAL_LEN) |
| 50 | |
| 51 | /** |
| 52 | * @brief Ó¦ÓòãÃæ´íÎóÂë¸ú×Ù¸öÊýÉÏÏÞ£¬½öÓÃÓÚÎÊÌⶨλ. |
| 53 | *Õâ¸ö´óСÊÜÏÞÓÚNV_MAX_VAL_LENµÄ´óС |
| 54 | */ |
| 55 | #define ERR_TRACK_MAX_NUM (NV_MAX_VAL_LEN-16)/(2 * 8) |
| 56 | |
| 57 | /** |
| 58 | * @brief µ¥ÌõATÃüÁî×î´ó³¤¶È |
| 59 | */ |
| 60 | #define AT_CMD_MAX 2048 |
| 61 | |
| 62 | /** |
| 63 | * @brief Íø¿ÚÃû³¤¶ÈÉÏÏÞ |
| 64 | */ |
| 65 | #define NETIF_NAME_LEN 20 |
| 66 | |
| 67 | /** |
| 68 | * @brief PCÖ÷»úÃû³¤¶ÈÉÏÏÞ |
| 69 | */ |
| 70 | #define HOSTNAME_LEN 150 |
| 71 | |
| 72 | /** |
| 73 | * @brief ÍøÂçIPµØÖ·³¤¶ÈÉÏÏÞ |
| 74 | */ |
| 75 | #define SOFTAP_IP_MAX_LEN 32 |
| 76 | |
| 77 | |
| 78 | /** |
| 79 | * @brief ×Ö·û´®³¤¶È |
| 80 | */ |
| 81 | #define SOFTAP_STR_LEN_16 16 |
| 82 | |
| 83 | |
| 84 | //////ÒÔÏÂÊÇPBµç»°±¾µÄºê¶¨Ò壬ÇëÕÅ·ÒǣͷÕûÀí |
| 85 | |
| 86 | |
| 87 | //////ÒÔÏÂÊÇSMSµÄºê¶¨Ò壬ÇëÕÅ·ÒǣͷÕûÀí |
| 88 | |
| 89 | #define ZSMS_PDU_SIZE 400 |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | #endif |