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

📄 config.h

📁 这个一个FS8610相关的源码,质量很好啊
💻 H
字号:
/**
 * \addtogroup t4arch
 * @{
 */

/** 
 * \addtogroup t4config Architecture and Socket Configuration
 * @{
 */

/**
 * \file config.h
 * \brief System Configuration for Architecture and Socket.
 */

/*
******************************************************************************
*
Copyright (c) 2006 FameG Shanghai, Inc. All rights reserved.
*
This is unpublished proprietary source code of FameG Shanghai, Inc.
*
The copyright notice above does not evidence any actual or intended
*
publication of such source code.
******************************************************************************
*/
/*
******************************************************************************
*
Project: T4 Hardware TCP/IP
*
Filename: config.h
*
Date:  28/02/2006
*
Purpose: System Configuration
*
Author: Xiaofei Rui
******************************************************************************
*/


#ifndef __CONFIG_H__
#define __CONFIG_H__

/* Function Modules */
#define INCLUDE_DMA_CONTROL    1   /**< Enable/Disable DMA control \hideinitializer */
#define INCLUDE_IGMP_CONTROL   1   /**< Enable/Disable IGMP control \hideinitializer */
#define INCLUDE_RARP_CONTROL   1   /**<Enable/Disable RARP control \hideinitializer */
//#define INCLUDE_PPPOE_CONTROL   1   /**<Enable/Disable RARP control \hideinitializer */
#define INCLUDE_ICMP_RESPONSE  1   /**< Enable/Disable Ping response  \hideinitializer */

#define RX_BUF_LEN   1500   /**< Receive buffer length define. 
                             * \hideinitializer */
#define TX_BUF_LEN   1500   /**< Transmit buffer length define. 
                             * \hideinitializer */     


#define TCP_POLLING_TIME        5000   /**< TCP polling timer, unit:10ms*/

#define ICMP_POLLING_TIME      TCP_POLLING_TIME   /**< ICMP polling timer, 5s*/

#define UDP_FRAG_SIZE        1472   /**< If UDP data size larger than this value, 
                                     *   it will be fragmented. 
                                     *   This value must be divided exactly by 8.
                                     * \hideinitializer */

#define ICMP_FRAGMENT_LEN    1400   /**< If ICMP packet size larger than this value, 
                                    *   it will be fragmented. 
                                    * \hideinitializer */

#define IP_REASSEMBLY   1      /**< 0 - Disable UDP packet reassembly; 
                                *   1 - enable UDP packet reassembly. 
                                * \hideinitializer */

#define IP_REASS_BUFSIZE 5000  /**< Reassembly buffer size define. 
                                * \hideinitializer */

#define IGMP_CTL_BY_HW   1     /**< 1 - IGMP controlled by hardware;
				* 0 - IGMP controlled by driver. 
                                * \hideinitializer */

#if 0
#define UDP_CHKSUM      0      /**< 0 - Disable UDP checksum generation; 
                                *   1 - enable UDP checksum generation.
                                * \hideinitializer */
#endif

#define IPOPTION    0    /**< If defined, packet sent by socket can include IP Option. 
                          * \hideinitializer */

#define URGENT      0   /**< If defined, packet sent by socket can include urgent data. 
                         * \hideinitializer */

#define TICK_UNIT	1      /**< Define tick: 10ms/tick. 
                             * \hideinitializer */

#define TIMERTIC    1000		/**< Timer period 1/secs, 
                             *   it depends on TICK_UNIT: TICK_UINT*TIMERTIC=1000ms. 
                             * \hideinitializer */

#define NUMTIMERS   10      /**< Number of timers available in the system. 
                             *\hideinitializer */

#endif /* __CONFIG_H__ */

/** @} */
/** @} */

⌨️ 快捷键说明

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