You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/02/17 10:32:25 UTC

[incubator-nuttx] 05/06: eZ80: fix typos in emac driver

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit bf7bd51a62a550f7e10ac527f02328357d01e99b
Author: Byron Ellacott <co...@bje.id.au>
AuthorDate: Wed Feb 17 17:45:38 2021 +1000

    eZ80: fix typos in emac driver
---
 arch/z80/src/ez80/ez80_emac.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/z80/src/ez80/ez80_emac.c b/arch/z80/src/ez80/ez80_emac.c
index 6632215..dd3841e 100644
--- a/arch/z80/src/ez80/ez80_emac.c
+++ b/arch/z80/src/ez80/ez80_emac.c
@@ -89,8 +89,8 @@
  * into that region.
  */
 
-extern uintptr_t __RAM_ADDR_U_INIT_PARAM;
-#define ETH_RAMADDR ((uintptr_t)&__RAM_ADDR_U_INIT_PARAM << 16) + 0x00c000
+extern uintptr_t _RAM_ADDR_U_INIT_PARAM;
+#define ETH_RAMADDR ((uintptr_t)&_RAM_ADDR_U_INIT_PARAM << 16) + 0x00c000
 
 #if CONFIG_NET_ETH_PKTSIZE > 1518
 #  error "MAXF size too big for this device"
@@ -930,7 +930,7 @@ static int ez80emac_miiconfigure(FAR struct ez80emac_driver_s *priv)
   ninfo("  MII_ADVERTISE: %04x\n", ez80emac_miiread(priv, MII_ADVERTISE));
   ninfo("  MII_LPA:       %04x\n", ez80emac_miiread(priv, MII_LPA));
   ninfo("  MII_EXPANSION: %04x\n", ez80emac_miiread(priv, MII_EXPANSION));
-  ninfo("EMAC CFG1:         %02x\n", inp(EZ80_EMAC_CFG11));
+  ninfo("EMAC CFG1:         %02x\n", inp(EZ80_EMAC_CFG1));
   return OK;
 }
 #endif