X-Git-Url: https://git.llucax.com/z.facultad/66.09/etherled.git/blobdiff_plain/3be9796df73e200ae3778316a3ac696370731289..0a7da39b31f2be3d63b43a489047de806da8e696:/pruebas/keil/red_test_anda/etherdev.c 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);