From 282c354ba733d80307fe9ecfde50320dec31bd7e Mon Sep 17 00:00:00 2001 From: Adam Green Date: Tue, 13 Aug 2013 22:38:48 -0700 Subject: [PATCH] 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. --- libraries/net/eth/lwip-eth/arch/lpc_phy_dp83848.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/net/eth/lwip-eth/arch/lpc_phy_dp83848.c b/libraries/net/eth/lwip-eth/arch/lpc_phy_dp83848.c index 76ffc0cf9a..eca6d97338 100644 --- a/libraries/net/eth/lwip-eth/arch/lpc_phy_dp83848.c +++ b/libraries/net/eth/lwip-eth/arch/lpc_phy_dp83848.c @@ -228,9 +228,9 @@ err_t lpc_phy_init(struct netif *netif, int rmii) u32_t tmp; s32_t i; - physts.phy_speed_100mbs = olddphysts.phy_speed_100mbs = 2; - physts.phy_full_duplex = olddphysts.phy_full_duplex = 2; - physts.phy_link_active = olddphysts.phy_link_active = 2; + physts.phy_speed_100mbs = olddphysts.phy_speed_100mbs = 0; + physts.phy_full_duplex = olddphysts.phy_full_duplex = 0; + physts.phy_link_active = olddphysts.phy_link_active = 0; phyustate = 0; /* Only first read and write are checked for failure */