parent
666d12988a
commit
1e396417d8
|
@ -93,7 +93,7 @@
|
|||
#define DFS_FD_MAX 4
|
||||
|
||||
/* SECTION: lwip, a lighwight TCP/IP protocol stack */
|
||||
#define RT_USING_LWIP
|
||||
/* #define RT_USING_LWIP */
|
||||
/* LwIP uses RT-Thread Memory Management */
|
||||
#define RT_LWIP_USING_RT_MEM
|
||||
/* Enable ICMP protocol*/
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
#include <board.h>
|
||||
#include <components.h>
|
||||
|
||||
#ifdef RT_USING_LWIP
|
||||
#include "drv_eth.h"
|
||||
#endif
|
||||
/* thread phase init */
|
||||
void rt_init_thread_entry(void *parameter)
|
||||
{
|
||||
|
@ -27,9 +24,6 @@ void rt_init_thread_entry(void *parameter)
|
|||
#ifdef RT_USING_FINSH
|
||||
finsh_set_device(RT_CONSOLE_DEVICE_NAME);
|
||||
#endif
|
||||
#ifdef RT_USING_LWIP
|
||||
rt_hw_tiva_eth_init();
|
||||
#endif
|
||||
}
|
||||
|
||||
int rt_application_init(void)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,20 +0,0 @@
|
|||
/*
|
||||
* File : drv_eth.c
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2009-2013 RT-Thread Develop Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rt-thread.org/license/LICENSE
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2014-07-25 ArdaFu Port to TM4C129X
|
||||
*/
|
||||
|
||||
#ifndef __TIVA_ETH_H__
|
||||
#define __TIVA_ETH_H__
|
||||
|
||||
rt_err_t rt_hw_tiva_eth_init(void);
|
||||
|
||||
#endif
|
|
@ -2917,7 +2917,6 @@ EMACPHYRead(uint32_t ui32Base, uint8_t ui8PhyAddr, uint8_t ui8RegAddr)
|
|||
//
|
||||
HWREG(ui32Base + EMAC_O_MIIADDR) =
|
||||
((HWREG(ui32Base + EMAC_O_MIIADDR) & EMAC_MIIADDR_CR_M) |
|
||||
EMAC_MIIADDR_CR_100_150 |
|
||||
(ui8RegAddr << EMAC_MIIADDR_MII_S) |
|
||||
(ui8PhyAddr << EMAC_MIIADDR_PLA_S) | EMAC_MIIADDR_MIIB);
|
||||
|
||||
|
|
Loading…
Reference in New Issue