]> git.llucax.com Git - z.facultad/66.09/etherled.git/commitdiff
Ooops! Bugfix.
authorLeandro Lucarella <llucax@gmail.com>
Mon, 5 Dec 2005 21:06:51 +0000 (21:06 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Mon, 5 Dec 2005 21:06:51 +0000 (21:06 +0000)
pruebas/keil/red_test_anda/etherdev.c

index d3b1a5a2a29addc95d2542ce78436bb7e9757925..44c305b643ee1881234eb4448d2b9b62a50baccf 100644 (file)
@@ -189,12 +189,12 @@ bit etherdev_init(void)
     etherdev_reg_write(CURR, ETH_RX_PAGE_START + 1);
 
     // Set physical address
-    etherdev_reg_write(PAR0, uip_buf[0]);
-    etherdev_reg_write(PAR1, uip_buf[0]);
-    etherdev_reg_write(PAR2, uip_buf[0]);
-    etherdev_reg_write(PAR3, uip_buf[0]);
-    etherdev_reg_write(PAR4, uip_buf[0]);
-    etherdev_reg_write(PAR5, uip_buf[0]);
+    etherdev_reg_write(PAR0, uip_buf[6]);
+    etherdev_reg_write(PAR1, uip_buf[7]);
+    etherdev_reg_write(PAR2, uip_buf[8]);
+    etherdev_reg_write(PAR3, uip_buf[9]);
+    etherdev_reg_write(PAR4, uip_buf[10]);
+    etherdev_reg_write(PAR5, uip_buf[11]);
 
     // Select RTL8019AS register page 0 and abort DMA operation.
     etherdev_reg_write(CR, RD2 | STP);