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

Function PHY_Read

bsp/tm4c129x/drivers/drv_eth.c:1492–1496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1490#ifdef RT_USING_FINSH
1491#include "finsh.h"
1492void PHY_Read(uint8_t addr)
1493{
1494 uint16_t data = EMACPHYRead(EMAC0_BASE, PHY_PHYS_ADDR, addr);
1495 rt_kprintf("R PHY_REG[0x%02X] = 0x%04X\n", addr, data);
1496}
1497FINSH_FUNCTION_EXPORT(PHY_Read, (add));
1498
1499void PHY_Write(uint8_t addr , uint16_t data)

Callers

nothing calls this directly

Calls 2

rt_kprintfFunction · 0.85
EMACPHYReadFunction · 0.50

Tested by

no test coverage detected