This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers k64f_emac_config.h Source File

k64f_emac_config.h

00001 /*
00002  * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc.
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without modification,
00006  * are permitted provided that the following conditions are met:
00007  *
00008  * o Redistributions of source code must retain the above copyright notice, this list
00009  *   of conditions and the following disclaimer.
00010  *
00011  * o Redistributions in binary form must reproduce the above copyright notice, this
00012  *   list of conditions and the following disclaimer in the documentation and/or
00013  *   other materials provided with the distribution.
00014  *
00015  * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
00016  *   contributors may be used to endorse or promote products derived from this
00017  *   software without specific prior written permission.
00018  *
00019  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
00020  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00021  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00022  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
00023  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00024  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00025  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
00026  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00027  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00028  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00029  */
00030 #ifndef K64F_EMAC_CONFIG_H__
00031 #define K64F_EMAC_CONFIG_H__
00032  
00033 //#define ENET_RX_RING_LEN              (16)
00034 //#define ENET_TX_RING_LEN              (8)
00035 #define ENET_RX_LARGE_BUFFER_NUM      (0)
00036 #define ENET_RX_BUFFER_ALIGNMENT      (16)  
00037 #define ENET_TX_BUFFER_ALIGNMENT      (16)
00038 #define ENET_BD_ALIGNMENT             (16)
00039 #define ENET_MII_CLOCK                (2500000L)
00040 #define RX_BUF_ALIGNMENT              (16)
00041 #define TX_BUF_ALIGNMENT              (8)
00042 #define BOARD_DEBUG_ENET_INSTANCE     (0)
00043 
00044 #define ENET_ETH_MAX_FLEN             (1522) // recommended size for a VLAN frame
00045 
00046 #endif // #define K64F_EMAC_CONFIG_H__
00047 
00048