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 2024/10/17 01:08:09 UTC
(nuttx) 01/02: arch/arm/samv7: fix preprocessor logic for ethernet
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/nuttx.git
commit beda2abe3b0e5071eb1acafa7fd897ba316ed883
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Tue Oct 8 22:19:19 2024 +0200
arch/arm/samv7: fix preprocessor logic for ethernet
Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
arch/arm/src/samv7/sam_ethernet.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/src/samv7/sam_ethernet.h b/arch/arm/src/samv7/sam_ethernet.h
index 829e5b04aa..dce7a998ea 100644
--- a/arch/arm/src/samv7/sam_ethernet.h
+++ b/arch/arm/src/samv7/sam_ethernet.h
@@ -243,7 +243,7 @@ int sam_emac_setmacaddr(int intf, uint8_t mac[6]);
*
****************************************************************************/
-#if defined(CONFIG_SAMV7_EMAC0_PHYINIT) | defined(CONFIG_SAMV7_EMAC1_PHYINIT)
+#if defined(CONFIG_SAMV7_EMAC0_PHYINIT) || defined(CONFIG_SAMV7_EMAC1_PHYINIT)
int sam_phy_boardinitialize(int intf);
#endif