⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 app_cfg.h

📁 Micrium提供的专门针对ucos操作系统的TCP/IP协议栈 ucip
💻 H
📖 第 1 页 / 共 2 页
字号:
#define  FTPc_CFG_DTP_MAX_ACCEPT_TIMEOUT_MS            30000    /* Maximum inactivity time (ms) on ACCEPT.              */
#define  FTPc_CFG_DTP_MAX_CONN_TIMEOUT_MS              30000    /* Maximum inactivity time (ms) on CONNECT.             */
#define  FTPc_CFG_DTP_MAX_RX_TIMEOUT_MS                30000    /* Maximum inactivity time (ms) on RX.                  */
#define  FTPc_CFG_DTP_MAX_TX_TIMEOUT_MS                30000    /* Maximum inactivity time (ms) on TX.                  */

#define  FTPc_CFG_CTRL_MAX_CONN_RETRY                      3    /* Maximum number of retries on CONNECT.                */
#define  FTPc_CFG_CTRL_MAX_RX_RETRY                        3    /* Maximum number of retries on RX.                     */
#define  FTPc_CFG_CTRL_MAX_TX_RETRY                        3    /* Maximum number of retries on TX.                     */

#define  FTPc_CFG_DTP_MAX_ACCEPT_RETRY                     3    /* Maximum number of retries on ACCEPT.                 */
#define  FTPc_CFG_DTP_MAX_CONN_RETRY                       3    /* Maximum number of retries on CONNECT.                */
#define  FTPc_CFG_DTP_MAX_RX_RETRY                         3    /* Maximum number of retries on RX.                     */
#define  FTPc_CFG_DTP_MAX_TX_RETRY                         3    /* Maximum number of retries on TX.                     */

#define  FTPc_CFG_MAX_USER_LEN                            32    /* Maximum length for user name.                        */
#define  FTPc_CFG_MAX_PASS_LEN                            32    /* Maximum length for password.                         */

#define  FTPc_CFG_USE_FS                                   1    /* If 1, interface functions using FS are enabled.      */
                                                                /* If 0, only functions using RAM buffers are enabled.  */


/*
*********************************************************************************************************
*                                                 FTPs
*********************************************************************************************************
*/

#define  FTPs_CFG_CTRL_IPPORT                             21    /* FTP Control IP port. Default is 21.                  */
#define  FTPs_CFG_DTP_IPPORT                              20    /* FTP Data IP port.    Default is 20.                  */

#define  FTPs_CFG_CTRL_MAX_ACCEPT_TIMEOUT_MS              -1    /* Maximum inactivity time (ms) on ACCEPT.              */
#define  FTPs_CFG_CTRL_MAX_RX_TIMEOUT_MS               30000    /* Maximum inactivity time (ms) on RX.                  */
#define  FTPs_CFG_CTRL_MAX_TX_TIMEOUT_MS               30000    /* Maximum inactivity time (ms) on TX.                  */

#define  FTPs_CFG_DTP_MAX_ACCEPT_TIMEOUT_MS            30000    /* Maximum inactivity time (ms) on ACCEPT.              */
#define  FTPs_CFG_DTP_MAX_CONN_TIMEOUT_MS              30000    /* Maximum inactivity time (ms) on CONNECT.             */
#define  FTPs_CFG_DTP_MAX_RX_TIMEOUT_MS                30000    /* Maximum inactivity time (ms) on RX.                  */
#define  FTPs_CFG_DTP_MAX_TX_TIMEOUT_MS                30000    /* Maximum inactivity time (ms) on TX.                  */

#define  FTPs_CFG_CTRL_MAX_ACCEPT_RETRY                   -1    /* Maximum number of retries on ACCEPT.                 */
#define  FTPs_CFG_CTRL_MAX_RX_RETRY                        3    /* Maximum number of retries on RX.                     */
#define  FTPs_CFG_CTRL_MAX_TX_RETRY                        3    /* Maximum number of retries on TX.                     */

#define  FTPs_CFG_DTP_MAX_ACCEPT_RETRY                     3    /* Maximum number of retries on ACCEPT.                 */
#define  FTPs_CFG_DTP_MAX_CONN_RETRY                       3    /* Maximum number of retries on CONNECT.                */
#define  FTPs_CFG_DTP_MAX_RX_RETRY                         3    /* Maximum number of retries on RX.                     */
#define  FTPs_CFG_DTP_MAX_TX_RETRY                         3    /* Maximum number of retries on TX.                     */

#define  FTPs_CFG_MAX_USER_LEN                            32    /* Maximum length for user name.                        */
#define  FTPs_CFG_MAX_PASS_LEN                            32    /* Maximum length for password.                         */


/*
*********************************************************************************************************
*                                                 HTTPs
*********************************************************************************************************
*/

#define  HTTPs_CFG_IPPORT                                 80    /* HTTP server IP port. Default is 80.                  */

#define  HTTPs_CFG_MAX_ACCEPT_TIMEOUT_MS                  -1    /* Maximum inactivity time (ms) on ACCEPT.              */
#define  HTTPs_CFG_MAX_RX_TIMEOUT_MS                   30000    /* Maximum inactivity time (ms) on RX.                  */
#define  HTTPs_CFG_MAX_TX_TIMEOUT_MS                   30000    /* Maximum inactivity time (ms) on TX.                  */

#define  HTTPs_CFG_MAX_ACCEPT_RETRY                       -1    /* Maximum number of retries on ACCEPT.                 */
#define  HTTPs_CFG_MAX_RX_RETRY                            3    /* Maximum number of retries on RX.                     */
#define  HTTPs_CFG_MAX_TX_RETRY                            3    /* Maximum number of retries on TX.                     */

#define  HTTPs_CFG_FILE_RD_BUF_LEN                      1024    /* Length of buffer used to read file.                  */
#define  HTTPs_CFG_FILE_TX_BUF_LEN                      1024    /* Length of buffer used to send file.                  */

#define  HTTPs_CFG_TOK_PARSE_EN                 DEF_ENABLED     /* Enable / disable token parsing (${}).                */
                                                                /* Size of parse table.  Set to "1" if                  */
                                                                /* HTTPs_CFG_TOKEN_PARSE_EN is disabled in order to     */
#define  HTTPs_CFG_TOK_PARSE_TBL_SIZE                    256    /* minimize memory consumption.                         */

                                                                /* Root path for HTTP documents in filesystem.          */
#define  HTTPs_CFG_FS_ROOT                     "/HTTPRoot"      /* Filesystem-specific symbols can be used.             */
#define  HTTPs_CFG_DFLT_FILE                   "index.htm"      /* Default file to load if no filename specified in URL.*/

                                                                /* Default HTML document returned when the requested    */
                                                                /* HTML document is not found (HTTP error #404).        */
#define  HTTPs_CFG_ERR_MSG_HTML_NOT_FOUND      "<HTML>\r\n" \
                                               "<BODY>\r\n" \
                                               "<HEAD><TITLE>SYSTEM ERROR</TITLE></HEAD>\r\n" \
                                               "<H1>NOT FOUND</H1>\r\n" \
                                               "The requested object does not exist on this server.\r\n" \
                                               "</BODY>\r\n" \
                                               "</HTML>\r\n"


/*
*********************************************************************************************************
*                                                 POP3c
*********************************************************************************************************
*/

#define  POP3c_CFG_IPPORT                                110    /* POP3 client IP port. Default is 110. See note #1.    */

#define  POP3c_CFG_MAX_CONN_TIMEOUT_MS                 30000    /* Maximum inactivity time (ms) on CONNECT.             */
#define  POP3c_CFG_MAX_RX_TIMEOUT_MS                   30000    /* Maximum inactivity time (ms) on RX.                  */
#define  POP3c_CFG_MAX_TX_TIMEOUT_MS                   30000    /* Maximum inactivity time (ms) on TX.                  */

#define  POP3c_CFG_MAX_CONN_RETRY                          3    /* Maximum number of retries on CONNECT.                */
#define  POP3c_CFG_MAX_RX_RETRY                            3    /* Maximum number of retries on RX.                     */
#define  POP3c_CFG_MAX_TX_RETRY                            3    /* Maximum number of retries on TX.                     */


/*
*********************************************************************************************************
*                                                 SMTPc
*********************************************************************************************************
*/

#define  SMTPc_CFG_IPPORT                                 25    /* SMTP client IP port. Default is 25.                  */

#define  SMTPc_CFG_MAX_CONN_TIMEOUT_MS                 30000    /* Maximum inactivity time (ms) on CONNECT.             */
#define  SMTPc_CFG_MAX_RX_TIMEOUT_MS                   30000    /* Maximum inactivity time (ms) on RX.                  */
#define  SMTPc_CFG_MAX_TX_TIMEOUT_MS                   30000    /* Maximum inactivity time (ms) on TX.                  */

#define  SMTPc_CFG_MAX_CONN_RETRY                          3    /* Maximum number of retries on CONNECT.                */
#define  SMTPc_CFG_MAX_RX_RETRY                            3    /* Maximum number of retries on RX.                     */
#define  SMTPc_CFG_MAX_TX_RETRY                            3    /* Maximum number of retries on TX.                     */

#define  SMTPc_CFG_MBOX_NAME_DISP_LEN                     50    /* Maximum length of sender's name.                     */
#define  SMTPc_CFG_MSG_SUBJECT_LEN                        50    /* Maximum length of message subject.                   */

#define  SMTPc_CFG_MSG_MAX_TO                              5    /* Maximum number of TO recipients.                     */
#define  SMTPc_CFG_MSG_MAX_CC                              5    /* Maximum number of CC  recipients.                    */
#define  SMTPc_CFG_MSG_MAX_BCC                             5    /* Maximum number of BCC recipients.                    */
#define  SMTPc_CFG_MSG_MAX_ATTACH                          5    /* Maximum number of message attachments.               */


/*
*********************************************************************************************************
*                                                 SNTPc
*********************************************************************************************************
*/

#define  SNTPc_CFG_IPPORT                                123    /* SNTP client IP port. Default is 123.                 */

#define  SNTPc_CFG_MAX_RX_TIMEOUT_MS                    5000    /* Maximum inactivity time (ms) on RX.                  */
#define  SNTPc_CFG_MAX_TX_TIMEOUT_MS                    5000    /* Maximum inactivity time (ms) on TX.                  */


/*
*********************************************************************************************************
*                                                 TFTPc
*********************************************************************************************************
*/

#define  TFTPc_CFG_IPPORT                                 69    /* TFTP client IP port. Default is 69.                  */
#define  TFTPc_DFLT_PORT                                  69    /* TFTP client IP port. Default is 69. Deprecated.      */

#define  TFTPc_CFG_MAX_RX_TIMEOUT_MS                    5000    /* Maximum inactivity time (ms) on RX.                  */
#define  TFTPc_CFG_MAX_TX_TIMEOUT_MS                    5000    /* Maximum inactivity time (ms) on TX.                  */


/*
*********************************************************************************************************
*                                                 TFTPs
*********************************************************************************************************
*/

#define  TFTPs_CFG_IPPORT                                 69    /* TFTP server IP port. Default is 69.                  */

#define  TFTPs_CFG_MAX_RX_TIMEOUT_MS                    5000    /* Maximum inactivity time (ms) on RX.                  */
#define  TFTPs_CFG_MAX_TX_TIMEOUT_MS                    5000    /* Maximum inactivity time (ms) on TX.                  */

#define  TFTPs_TRACE_HIST_SIZE                            16    /* TFTP server trace system history size.               */
#define  TFTPs_TRACE_STR_SIZE                             80    /* TFTP server trace system string size.                */


/*
*********************************************************************************************************
*                                                 TTCP
*********************************************************************************************************
*/

#define  TTCP_CFG_MAX_ACCEPT_TIMEOUT_MS                30000    /* Maximum inactivity time (ms) on ACCEPT.              */
#define  TTCP_CFG_MAX_CONN_TIMEOUT_MS                  30000    /* Maximum inactivity time (ms) on CONNECT.             */
#define  TTCP_CFG_MAX_RX_TIMEOUT_MS                    30000    /* Maximum inactivity time (ms) on RX.                  */
#define  TTCP_CFG_MAX_TX_TIMEOUT_MS                    30000    /* Maximum inactivity time (ms) on TX.                  */

#define  TTCP_CFG_MAX_ACCEPT_RETRY                         3    /* Maximum number of retries on ACCEPT.                 */
#define  TTCP_CFG_MAX_CONN_RETRY                           3    /* Maximum number of retries on CONNECT.                */
#define  TTCP_CFG_MAX_RX_RETRY                             3    /* Maximum number of retries on RX.                     */
#define  TTCP_CFG_MAX_TX_RETRY                             3    /* Maximum number of retries on TX.                     */

/*
*********************************************************************************************************
*                                                TRACING
*********************************************************************************************************
*/

#include  <monlib.h>

#define  TRACE_LEVEL_OFF                                   0
#define  TRACE_LEVEL_INFO                                  1
#define  TRACE_LEVEL_DEBUG                                 2

#define  APP_TRACE_LEVEL                        TRACE_LEVEL_DEBUG
#define  APP_TRACE                              mon_printf

#define  CLK_TRACE_LEVEL                        TRACE_LEVEL_OFF
#define  CLK_TRACE                              mon_printf

#define  DHCPc_TRACE_LEVEL                      TRACE_LEVEL_OFF
#define  DHCPc_TRACE                            mon_printf

#define  DNSc_TRACE_LEVEL                       TRACE_LEVEL_OFF
#define  DNSc_TRACE                             mon_printf

#define  FTPc_TRACE_LEVEL                       TRACE_LEVEL_OFF
#define  FTPc_TRACE                             mon_printf

#define  FTPs_TRACE_LEVEL                       TRACE_LEVEL_OFF
#define  FTPs_TRACE                             mon_printf

#define  HTTPs_TRACE_LEVEL                      TRACE_LEVEL_OFF
#define  HTTPs_TRACE                            mon_printf

#define  POP3c_TRACE_LEVEL                      TRACE_LEVEL_OFF
#define  POP3c_TRACE                            mon_printf

#define  SMTPc_TRACE_LEVEL                      TRACE_LEVEL_OFF
#define  SMTPc_TRACE                            mon_printf

#define  SNTPc_TRACE_LEVEL                      TRACE_LEVEL_OFF
#define  SNTPc_TRACE                            mon_printf

#define  TFTPs_TRACE_LEVEL                      TRACE_LEVEL_OFF
#define  TFTPs_TRACE                            mon_printf

#define  TTCP_TRACE_LEVEL                       TRACE_LEVEL_INFO
#define  TTCP_TRACE                             mon_printf

#define  APP_TRACE_INFO(x)                    ((APP_TRACE_LEVEL >= TRACE_LEVEL_INFO)  ? (void)(APP_TRACE x) : (void)0)
#define  APP_TRACE_DEBUG(x)                   ((APP_TRACE_LEVEL >= TRACE_LEVEL_DEBUG) ? (void)(APP_TRACE x) : (void)0)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -