fdsf

Dependents:   sisk_proj_stat MQTT Hello_FXOS8700Q WireFSHandControl ... more

Committer:
grzemich
Date:
Wed Dec 07 23:47:50 2016 +0000
Revision:
0:d7bd7384a37c
dgd

Who changed what in which revision?

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