NXP LPC1768 Ethernet driver for lwip and CMSIS-RTOS

Dependents:   EthernetInterface EthernetInterface EthernetInterface_RSF EthernetInterface ... more

Legacy Networking Libraries

This is an mbed 2 networking library. For mbed 5, the networking libraries have been revised to better support additional network stacks and thread safety here.

This library is based on the code of the NXP LPC port of the Lightweight TCP/IP Stack

Copyright(C) 2011, NXP Semiconductor
All rights reserved.

Software that is described herein is for illustrative purposes only
which provides customers with programming information regarding the
products. This software is supplied "AS IS" without any warranties.
NXP Semiconductors assumes no responsibility or liability for the
use of the software, conveys no license or title under any patent,
copyright, or mask work right to the product. NXP Semiconductors
reserves the right to make changes in the software without
notification. NXP Semiconductors also make no representation or
warranty that such application will be suitable for the specified
use without further testing or modification.
Committer:
mbed_official
Date:
Mon Sep 22 17:30:30 2014 +0100
Revision:
20:620d381e7f4c
Parent:
17:eb2c8c3aa1cd
Child:
21:10cdd9fe0509
Synchronized with git revision cb3999ca5e34d491101071a32bfc0916f5a77fe7

Full URL: https://github.com/mbedmicro/mbed/commit/cb3999ca5e34d491101071a32bfc0916f5a77fe7/

[NET, HAL] K64F - update files to use address of enet peripheral (not instance as required by KSDK v1.0)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 10:ab9330955226 1 /*
mbed_official 10:ab9330955226 2 * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc.
mbed_official 10:ab9330955226 3 * All rights reserved.
mbed_official 10:ab9330955226 4 *
mbed_official 10:ab9330955226 5 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 10:ab9330955226 6 * are permitted provided that the following conditions are met:
mbed_official 10:ab9330955226 7 *
mbed_official 10:ab9330955226 8 * o Redistributions of source code must retain the above copyright notice, this list
mbed_official 10:ab9330955226 9 * of conditions and the following disclaimer.
mbed_official 10:ab9330955226 10 *
mbed_official 10:ab9330955226 11 * o Redistributions in binary form must reproduce the above copyright notice, this
mbed_official 10:ab9330955226 12 * list of conditions and the following disclaimer in the documentation and/or
mbed_official 10:ab9330955226 13 * other materials provided with the distribution.
mbed_official 10:ab9330955226 14 *
mbed_official 10:ab9330955226 15 * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
mbed_official 10:ab9330955226 16 * contributors may be used to endorse or promote products derived from this
mbed_official 10:ab9330955226 17 * software without specific prior written permission.
mbed_official 10:ab9330955226 18 *
mbed_official 10:ab9330955226 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
mbed_official 10:ab9330955226 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
mbed_official 10:ab9330955226 21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 10:ab9330955226 22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
mbed_official 10:ab9330955226 23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
mbed_official 10:ab9330955226 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
mbed_official 10:ab9330955226 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
mbed_official 10:ab9330955226 26 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
mbed_official 10:ab9330955226 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
mbed_official 10:ab9330955226 28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 10:ab9330955226 29 */
mbed_official 10:ab9330955226 30 #ifndef K64F_EMAC_CONFIG_H__
mbed_official 10:ab9330955226 31 #define K64F_EMAC_CONFIG_H__
mbed_official 10:ab9330955226 32
mbed_official 10:ab9330955226 33 #define ENET_RX_RING_LEN (16)
mbed_official 10:ab9330955226 34 #define ENET_TX_RING_LEN (8)
mbed_official 10:ab9330955226 35 #define ENET_RX_LARGE_BUFFER_NUM (0)
mbed_official 10:ab9330955226 36 #define ENET_RX_BUFFER_ALIGNMENT (16)
mbed_official 10:ab9330955226 37 #define ENET_TX_BUFFER_ALIGNMENT (16)
mbed_official 10:ab9330955226 38 #define ENET_BD_ALIGNMENT (16)
mbed_official 10:ab9330955226 39 #define ENET_MII_CLOCK (2500000L)
mbed_official 10:ab9330955226 40 #define RX_BUF_ALIGNMENT (16)
mbed_official 10:ab9330955226 41 #define TX_BUF_ALIGNMENT (8)
mbed_official 10:ab9330955226 42 #define BOARD_DEBUG_ENET_INSTANCE (0)
mbed_official 20:620d381e7f4c 43 #define BOARD_DEBUG_ENET_INSTANCE_ADDR (ENET_BASE)
mbed_official 10:ab9330955226 44
mbed_official 10:ab9330955226 45 #define ENET_ETH_MAX_FLEN (1522) // recommended size for a VLAN frame
mbed_official 10:ab9330955226 46
mbed_official 10:ab9330955226 47 #endif // #define K64F_EMAC_CONFIG_H__
mbed_official 10:ab9330955226 48