Skip to content

Infineon/ethernet-phy-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethernet PHY Driver

Overview

  • The library provides the Ethernet PHY-related interface APIs as required by Ethernet connection manager library to enable the completion of Ethernet-based applications on supported platforms. The current version of ethernet-phy-driver library has Ethernet PHY-related interface APIs implemented for PHY chip DP83867IR.

Features and functionality

  • The library contains the necessary ethernet PHY interface APIs for the ethernet-connection-manager library, enabling ethernet-based applications to operate on supported ethernet PHY chips.
  • Supports the Ethernet PHY driver for the PHY chip DP83867IR.

Supported platforms

This library and its features are supported on the following Infineon platforms:

Quick Start

  1. To download ethernet PHY driver, create the following ethernet-phy-driver.mtb file in application deps folder.

    • ethernet-phy-driver.mtb:
      https://github.com/Infineon/ethernet-phy-driver#latest-v1.X#$$ASSET_REPO$$/ethernet-phy-driver/latest-v1.X
  2. To use ethernet-phy-driver library on FreeRTOS, lwIP, and Mbed TLS combination, the application should pull ethernet-core-freertos-lwip-mbedtls library version 2.X which will internally pull secure-sockets, ethernet-connection-manager, FreeRTOS, lwIP, Mbed TLS and other dependent modules.
    To pull ethernet-core-freertos-lwip-mbedtls create the following .mtb file in deps folder.

    • ethernet-core-freertos-lwip-mbedtls.mtb: https://github.com/Infineon/ethernet-core-freertos-lwip-mbedtls#latest-v2.X#$$ASSET_REPO$$/ethernet-core-freertos-lwip-mbedtls/latest-v2.X
  3. The ethernet PHY driver library disables all the debug log messages by default. To enable log messages, the application must perform the following:

    • Add the ENABLE_ETH_PHY_DRIVER_LOGS macro to the DEFINES in the code example's Makefile. The Makefile entry would look like as follows:
      DEFINES+=ENABLE_ETH_PHY_DRIVER_LOGS
      
    • Call the cy_log_init() function provided by the cy-log module. cy-log is part of the connectivity-utilities library. See connectivity-utilities library API documentation for cy-log details.

Additional information