Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of lwip-eth by
arch/TARGET_Freescale/k64f_emac_config.h@21:10cdd9fe0509, 2014-10-13 (annotated)
- Committer:
- mbed_official
- Date:
- Mon Oct 13 07:15:17 2014 +0100
- Revision:
- 21:10cdd9fe0509
- Parent:
- 20:620d381e7f4c
- Child:
- 31:da93f0f73711
Synchronized with git revision 18b494b682ee3f3a1436f115ad1cde2bcfafecc2
Full URL: https://github.com/mbedmicro/mbed/commit/18b494b682ee3f3a1436f115ad1cde2bcfafecc2/
Net: K64F - Add phy_link_status() to link status in emac driver
Who changed what in which revision?
User | Revision | Line number | New 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 | 21:10cdd9fe0509 | 47 | #if defined(__cplusplus) |
mbed_official | 21:10cdd9fe0509 | 48 | extern "C" { |
mbed_official | 21:10cdd9fe0509 | 49 | #endif |
mbed_official | 21:10cdd9fe0509 | 50 | |
mbed_official | 21:10cdd9fe0509 | 51 | int phy_link_status(void); |
mbed_official | 21:10cdd9fe0509 | 52 | |
mbed_official | 21:10cdd9fe0509 | 53 | #if defined(__cplusplus) |
mbed_official | 21:10cdd9fe0509 | 54 | } |
mbed_official | 21:10cdd9fe0509 | 55 | #endif |
mbed_official | 21:10cdd9fe0509 | 56 | |
mbed_official | 10:ab9330955226 | 57 | #endif // #define K64F_EMAC_CONFIG_H__ |
mbed_official | 10:ab9330955226 | 58 |