Author: eb
Date: 2007-10-31 15:10:45 -0600 (Wed, 31 Oct 2007)
New Revision: 6761

Modified:
   gnuradio/branches/developers/matt/u2f/firmware/eth_mac.c
Log:
work-in-progress

Modified: gnuradio/branches/developers/matt/u2f/firmware/eth_mac.c
===================================================================
--- gnuradio/branches/developers/matt/u2f/firmware/eth_mac.c    2007-10-31 
14:43:42 UTC (rev 6760)
+++ gnuradio/branches/developers/matt/u2f/firmware/eth_mac.c    2007-10-31 
21:10:45 UTC (rev 6761)
@@ -49,7 +49,7 @@
 eth_mac_miim_read(int addr)
 {
   int phy_addr = 0;
-  eth_mac->miiaddress = (addr & 0x1f) << 8 | phy_addr;
+  eth_mac->miiaddress = ((addr & 0x1f) << 8) | phy_addr;
   eth_mac->miicommand = MIIC_RSTAT;
 
   while((eth_mac->miistatus & MIIS_BUSY) != 0)
@@ -62,7 +62,7 @@
 eth_mac_miim_write(int addr, int value)
 {
   int phy_addr = 0;
-  eth_mac->miiaddress = (addr & 0x1f) << 8 | phy_addr;
+  eth_mac->miiaddress = ((addr & 0x1f) << 8) | phy_addr;
   eth_mac->miitx_data = value;
   eth_mac->miicommand = MIIC_WCTRLDATA;
 



_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio

Reply via email to