From 0a7da39b31f2be3d63b43a489047de806da8e696 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 5 Dec 2005 21:06:51 +0000 Subject: [PATCH] Ooops! Bugfix. --- pruebas/keil/red_test_anda/etherdev.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pruebas/keil/red_test_anda/etherdev.c b/pruebas/keil/red_test_anda/etherdev.c index d3b1a5a..44c305b 100644 --- a/pruebas/keil/red_test_anda/etherdev.c +++ b/pruebas/keil/red_test_anda/etherdev.c @@ -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); -- 2.43.0