Skip to content

Commit 282c354

Browse files
committed
The value of 2 can't fit in a 1 bit wide field.
The phy_speed_100mbs, phy_full_duplex, and phy_link_active fields of PHY_STATUS_TYPE are 1 bit wide but lpc_phy_init() attempted to initialize them to a value of 2. I switched the initializations to be 0 instead and it still generated the same .bin image.
1 parent 962dd8b commit 282c354

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/net/eth/lwip-eth/arch/lpc_phy_dp83848.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ err_t lpc_phy_init(struct netif *netif, int rmii)
228228
u32_t tmp;
229229
s32_t i;
230230

231-
physts.phy_speed_100mbs = olddphysts.phy_speed_100mbs = 2;
232-
physts.phy_full_duplex = olddphysts.phy_full_duplex = 2;
233-
physts.phy_link_active = olddphysts.phy_link_active = 2;
231+
physts.phy_speed_100mbs = olddphysts.phy_speed_100mbs = 0;
232+
physts.phy_full_duplex = olddphysts.phy_full_duplex = 0;
233+
physts.phy_link_active = olddphysts.phy_link_active = 0;
234234
phyustate = 0;
235235

236236
/* Only first read and write are checked for failure */

0 commit comments

Comments
 (0)