| 1444 | } |
| 1445 | |
| 1446 | static struct pbuf* eth_dev_rx(rt_device_t dev) |
| 1447 | { |
| 1448 | rt_err_t result; |
| 1449 | rt_uint32_t temp =0; |
| 1450 | net_device_t net_dev = (net_device_t)dev; |
| 1451 | result = rt_mb_recv(net_dev->rx_pbuf_mb, (rt_ubase_t *)&temp, RT_WAITING_NO); |
| 1452 | |
| 1453 | return (result == RT_EOK)? (struct pbuf*)temp : RT_NULL; |
| 1454 | } |
| 1455 | |
| 1456 | int rt_hw_tiva_eth_init(void) |
| 1457 | { |
nothing calls this directly
no test coverage detected