MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / eth_dev_rx

Function eth_dev_rx

bsp/tm4c129x/drivers/drv_eth.c:1446–1454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1444}
1445
1446static 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
1456int rt_hw_tiva_eth_init(void)
1457{

Callers

nothing calls this directly

Calls 1

rt_mb_recvFunction · 0.85

Tested by

no test coverage detected