Changeset 5fc0ade in rtems-lwip


Ignore:
Timestamp:
03/09/23 11:58:22 (12 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
7216322
Parents:
8dfd35f
git-author:
Sebastian Huber <sebastian.huber@…> (03/09/23 11:58:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/24/23 10:22:53)
Message:

Fix build for arm/tms570 BSPs

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • defs/bsps/arm/tms570_base.json

    r8dfd35f r5fc0ade  
    22        "header-paths-to-import": [
    33                "uLan/ports/driver/tms570_emac",
    4                 "uLan/ports/os"
     4                "uLan/ports/os",
     5                "cpsw/src/include"
    56        ],
    67        "source-paths-to-import": [
    7                 "uLan/ports/driver/tms570_emac"
     8                "uLan/ports/driver/tms570_emac",
     9                "cpsw/src"
    810        ]
    911}
  • uLan/ports/driver/tms570_emac/eth_lwip.c

    r8dfd35f r5fc0ade  
    4040#include "eth_lwip_default.h"
    4141#include "eth_lwip.h"
    42 #include "beaglebone.h"
     42#include "tms570_netif.h"
    4343#include <stdio.h>
    4444
     
    7373}
    7474
    75 int8_t
    76 eth_lwip_init(uint8_t *mac_addr)
     75int start_networking(
     76  struct netif  *net_interface,
     77  ip_addr_t     *ipaddr,
     78  ip_addr_t     *netmask,
     79  ip_addr_t     *gateway,
     80  unsigned char *mac_addr
     81)
    7782{
    7883  unsigned int instance_number = 0;
     
    104109
    105110  netif_tmp = netif_add(netif, &ip_addr, &net_mask, &gw_addr,
    106                         NULL, ETH_LWIP_INIT_NETIF_FNC, tcpip_input);
     111                        NULL, tms570_eth_init_netif, tcpip_input);
    107112
    108113  if (netif_tmp == NULL)
     
    110115
    111116  netif_set_default(netif);
     117#if LWIP_NETIF_API
    112118  netifapi_netif_set_up(netif);
    113119#if !STATIC_IP_ADDRESS
    114120  netifapi_dhcp_start(netif);
     121#endif
    115122#endif
    116123
  • uLan/ports/driver/tms570_emac/phy_dp83848h.c

    r8dfd35f r5fc0ade  
    3535#include "ti_drv_mdio.h"
    3636#include "phy_dp83848h.h"
     37#ifdef __rtems__
     38#include "mdio.h"
     39#endif /* __rtems__ */
    3740
    3841#ifndef TRUE
  • uLan/ports/driver/tms570_emac/phy_dp83848h.h

    r8dfd35f r5fc0ade  
    3535#ifndef __DRV_PHY_H
    3636#define __DRV_PHY_H
     37
     38#ifdef __rtems__
     39#include <bsp/ti_herc/reg_mdio.h>
     40#endif /* __rtems__ */
    3741
    3842#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.