lab practicals
arch/TARGET_Freescale/k64f_emac_config.h@31:da93f0f73711, 2016-05-03 (annotated)
- Committer:
- mbed_official
- Date:
- Tue May 03 00:16:23 2016 +0100
- Revision:
- 31:da93f0f73711
- Parent:
- 21:10cdd9fe0509
Synchronized with git revision 9cef243de23875778f461bbe9a8c1bc47e65212b
Full URL: https://github.com/mbedmicro/mbed/commit/9cef243de23875778f461bbe9a8c1bc47e65212b/
Switch to KSDK 2.0
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 | 31:da93f0f73711 | 32 | |
mbed_official | 31:da93f0f73711 | 33 | #include "fsl_enet.h" |
mbed_official | 31:da93f0f73711 | 34 | |
mbed_official | 10:ab9330955226 | 35 | #define ENET_RX_RING_LEN (16) |
mbed_official | 10:ab9330955226 | 36 | #define ENET_TX_RING_LEN (8) |
mbed_official | 10:ab9330955226 | 37 | |
mbed_official | 10:ab9330955226 | 38 | #define ENET_ETH_MAX_FLEN (1522) // recommended size for a VLAN frame |
mbed_official | 10:ab9330955226 | 39 | |
mbed_official | 21:10cdd9fe0509 | 40 | #if defined(__cplusplus) |
mbed_official | 21:10cdd9fe0509 | 41 | extern "C" { |
mbed_official | 21:10cdd9fe0509 | 42 | #endif |
mbed_official | 21:10cdd9fe0509 | 43 | |
mbed_official | 21:10cdd9fe0509 | 44 | int phy_link_status(void); |
mbed_official | 21:10cdd9fe0509 | 45 | |
mbed_official | 21:10cdd9fe0509 | 46 | #if defined(__cplusplus) |
mbed_official | 21:10cdd9fe0509 | 47 | } |
mbed_official | 21:10cdd9fe0509 | 48 | #endif |
mbed_official | 21:10cdd9fe0509 | 49 | |
mbed_official | 10:ab9330955226 | 50 | #endif // #define K64F_EMAC_CONFIG_H__ |
mbed_official | 10:ab9330955226 | 51 |