net_err.c
来自「uC/OS原版的TCP协议栈」· C语言 代码 · 共 123 行
C
123 行
/*
*********************************************************************************************************
* uC/TCP-IP
* The Embedded TCP/IP Suite
*
* (c) Copyright 2003-2006; Micrium, Inc.; Weston, FL
*
* All rights reserved. Protected by international copyright laws.
* Knowledge of the source code may not be used to write a similar
* product. This file may only be used in accordance with a license
* and should not be redistributed in any way.
*********************************************************************************************************
*/
/*
*********************************************************************************************************
*
* NETWORK ERROR CODE MANAGEMENT
*
* Filename : net_err.c
* Version : V1.86
* Programmer(s) : ITJ
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* INCLUDE FILES
*********************************************************************************************************
*/
#define NET_ERR_MODULE
#include <net.h>
/*$PAGE*/
/*
*********************************************************************************************************
* LOCAL DEFINES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* ERROR CODE STRING DEFINES
*********************************************************************************************************
*/
#define NET_ERR_STR_NONE ""
/*$PAGE*/
/*
*********************************************************************************************************
* LOCAL CONSTANTS
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* LOCAL DATA TYPES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* LOCAL TABLES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* LOCAL GLOBAL VARIABLES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* LOCAL FUNCTION PROTOTYPES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* LOCAL CONFIGURATION ERRORS
*********************************************************************************************************
*/
/*$PAGE*/
/*
*********************************************************************************************************
* NetErr_GetStr()
*
* Description : Get error code string for a specific network error code value.
*
* Argument(s) : err_code Desired error code to return corresponding error code string.
*
* Return(s) : Error code's error code string, if error code found.
*
* NET_ERR_STR_NONE, otherwise.
*
* Caller(s) : Application.
*
* Note(s) : (1) #### NOT yet implemented.
*********************************************************************************************************
*/
#if (NET_DBG_CFG_TEST_EN == DEF_ENABLED)
CPU_CHAR *NetErr_GetStr (NET_ERR err_code)
{
(void)&err_code; /* Prevent compiler warning. */
return (NET_ERR_STR_NONE);
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?