From 4712f9d62efb3e8b54a3ef50e1e5b40afb88d0ac Mon Sep 17 00:00:00 2001 From: Chun-Chieh Li Date: Fri, 15 Mar 2024 10:10:52 +0800 Subject: [PATCH] NUVOTON: EMAC: Fix undeclared function mbed_error_printf ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- .../drivers/emac/TARGET_NUVOTON_EMAC/TARGET_M460/m460_eth.c | 1 + .../drivers/emac/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c | 1 + .../drivers/emac/TARGET_NUVOTON_EMAC/TARGET_NUC472/nuc472_eth.c | 1 + 3 files changed, 3 insertions(+) diff --git a/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_M460/m460_eth.c b/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_M460/m460_eth.c index 591de2204f..275a3af904 100644 --- a/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_M460/m460_eth.c +++ b/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_M460/m460_eth.c @@ -20,6 +20,7 @@ //#include #include "m460_eth.h" #include "mbed_toolchain.h" +#include "mbed_interface.h" //#define NU_TRACE #include "numaker_eth_hal.h" diff --git a/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c b/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c index 6543beac6f..30de209f81 100644 --- a/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c +++ b/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c @@ -20,6 +20,7 @@ #include #include "m480_eth.h" #include "mbed_toolchain.h" +#include "mbed_interface.h" //#define NU_TRACE #include "numaker_eth_hal.h" diff --git a/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_NUC472/nuc472_eth.c b/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_NUC472/nuc472_eth.c index 209fb02472..d9dbb51d77 100644 --- a/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_NUC472/nuc472_eth.c +++ b/connectivity/drivers/emac/TARGET_NUVOTON_EMAC/TARGET_NUC472/nuc472_eth.c @@ -20,6 +20,7 @@ #include #include "nuc472_eth.h" #include "mbed_toolchain.h" +#include "mbed_interface.h" //#define NU_TRACE #include "numaker_eth_hal.h"