Embedded TCP/IP stack: fnet_mcf_config.h Source File From FNET previous page next page Embedded TCP/IP stack 4.1.0 FNET Overview FNET Quick Start FNET API fnet_stackportcpumcf fnet_mcf_config.h 1 /************************************************************************** 2 * 3 * Copyright 2012-2016 by Andrey Butok. 4 * Copyright 2008-2011 by Andrey Butok. Freescale Semiconductor, Inc. 5 * 6 *************************************************************************** 7 * 8 * Licensed under the Apache License, Version 2.0 (the "License"); you may 9 * not use this file except in compliance with the License. 10 * You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 16 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 * 20 *************************************************************************** 21 * 22 * ColdFire specific default configuration file. 23 * 24 ***************************************************************************/ 25 26 /************************************************************************ 27 * !!!DO NOT MODIFY THIS FILE!!! 28 ************************************************************************/ 29 30 #ifndef _FNET_MCF_CONFIG_H_ 31 32 #define _FNET_MCF_CONFIG_H_ 33 34 #include "fnet_config.h" 35 36 #if FNET_MCF || defined(__DOXYGEN__) 37 41 /**************************************************************************/ 49 #ifndef FNET_CFG_MCF_V1 50 #define FNET_CFG_MCF_V1 (0) 51 #endif 52 53 /***************************************************************************** 54 * Max priority. 55 ******************************************************************************/ 56 #define FNET_CFG_CPU_VECTOR_PRIORITY_MAX (7) 57 58 /****************************************************************************** 59 * Vector number of the Ethernet Receive Frame interrupt. 60 * NOTE: User application should not change this parameter. 61 ******************************************************************************/ 62 #ifndef FNET_CFG_CPU_ETH0_VECTOR_NUMBER 63 #define FNET_CFG_CPU_ETH0_VECTOR_NUMBER (27+0x40) 64 #endif 65 66 /**************************************************************************/ 74 #ifndef FNET_CFG_MCF_TIMER_DTIM 75 #define FNET_CFG_MCF_TIMER_DTIM (1) 76 #endif 77 78 /**************************************************************************/ 86 #ifndef FNET_CFG_MCF_TIMER_PIT 87 #define FNET_CFG_MCF_TIMER_PIT (0) 88 #endif 89 90 #if FNET_CFG_MCF_TIMER_PIT /* Disable DTIM if used PIT. */ 91 #undef FNET_CFG_MCF_TIMER_DTIM 92 #define FNET_CFG_MCF_TIMER_DTIM (0) 93 #endif 94 95 /**************************************************************************/ 104 #ifndef FNET_CFG_MCF_TIMER_RTC8 105 #define FNET_CFG_MCF_TIMER_RTC8 (0) 106 #endif 107 108 /****************************************************************************** 109 * Timer number used by the FNET. It can range from 0 to 3 for DTIM timer 110 * and from 0 to 1 for PIT timer. 111 * NOTE: It's ignored for MCF V1. 112 ******************************************************************************/ 113 #if FNET_CFG_MCF_TIMER_DTIM 114 #define FNET_CFG_CPU_TIMER_NUMBER_MAX (3) 115 #endif 116 117 #if FNET_CFG_MCF_TIMER_PIT 118 #define FNET_CFG_CPU_TIMER_NUMBER_MAX (1) 119 #endif 120 121 /******************************************************************************* 122 * Timer number used by the FNET. It can range from 0 to FNET_CFG_CPU_TIMER_NUMBER_MAX. 123 ******************************************************************************/ 124 #ifndef FNET_CFG_CPU_TIMER_NUMBER 125 #define FNET_CFG_CPU_TIMER_NUMBER (FNET_CFG_CPU_TIMER_NUMBER_MAX) 126 #endif 127 128 /****************************************************************************** 129 * Vector number of the timer interrupt. 130 * NOTE: User application should not change this parameter. 131 ******************************************************************************/ 132 #ifndef FNET_CFG_CPU_TIMER_VECTOR_NUMBER 133 #if FNET_CFG_MCF_TIMER_DTIM 134 #if FNET_CFG_CPU_MCF54418 135 136 #else /* Other MCFs */ 137 #define FNET_CFG_CPU_TIMER_VECTOR_NUMBER (19+FNET_CFG_CPU_TIMER_NUMBER+0x40) 138 #endif 139 #endif 140 #if FNET_CFG_MCF_TIMER_PIT 141 #define FNET_CFG_CPU_TIMER_VECTOR_NUMBER (55+FNET_CFG_CPU_TIMER_NUMBER+0x40) 142 #endif 143 #endif 144 145 146 /**************************************************************************/ 153 #ifndef __FNET_ASM_CODE 154 #ifndef FNET_CFG_MCF_IPSBAR 155 /* The following symbol should be defined in the lcf */ 156 extern unsigned char __IPSBAR []; 157 158 #define FNET_CFG_MCF_IPSBAR __IPSBAR 159 160 #endif 161 #endif 162 163 /* Overload checksum functions.*/ 164 #ifndef FNET_CFG_OVERLOAD_CHECKSUM_LOW 165 #define FNET_CFG_OVERLOAD_CHECKSUM_LOW (1) 166 #endif 167 168 /**************************************************************************/ 175 #ifndef FNET_CFG_MCF_CACHE_CACR 176 #define FNET_CFG_MCF_CACHE_CACR (0) 177 #endif 178 179 /***************************************************************************** 180 * On-chip Flash memory start address. 181 ******************************************************************************/ 182 183 #ifndef __FNET_ASM_CODE 184 #if FNET_CFG_CPU_FLASH 185 #ifndef FNET_CFG_CPU_FLASH_ADDRESS 186 /* The following symbol should be defined in the linker file. */ 187 188 #if FNET_CFG_MCF_V1 189 #define FNET_CFG_CPU_FLASH_ADDRESS (0x00000000) 190 #else 191 extern unsigned char __FLASHBAR []; 192 #define FNET_CFG_CPU_FLASH_ADDRESS ((fnet_uint32_t)__FLASHBAR) 193 #endif 194 195 #endif /* FNET_CFG_CPU_FLASH_ADDRESS */ 196 #endif /* FNET_CFG_CPU_FLASH */ 197 #endif /* __FNET_ASM_CODE */ 198 199 /**************************************************************************/ 206 #ifndef FNET_CFG_MCF_RCM 207 #define FNET_CFG_MCF_RCM (1) 208 #endif 209 210 /**************************************************************************/ 218 #ifndef FNET_CFG_MCF_UART 219 #define FNET_CFG_MCF_UART (1) 220 #endif 221 222 /**************************************************************************/ 230 #ifndef FNET_CFG_MCF_SCI 231 #define FNET_CFG_MCF_SCI (0) 232 #endif 233 234 #define FNET_CFG_CPU_FLASH_PROGRAM_SIZE (4) /* Bytes.*/ 235 236 239 #endif /* FNET_MCF */ 240 241 #endif © 2005-2018 by Andrey Butok. http://fnet.sourceforge.net previous page start next page