From 11d99971c88dc5cdedf599c7a67b5e7cf8606932 Mon Sep 17 00:00:00 2001 From: Chun-Chieh Li Date: Fri, 15 Mar 2024 16:12:14 +0800 Subject: [PATCH] NUVOTON: Serial: Fix undeclared function gpio_set ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- targets/TARGET_NUVOTON/TARGET_M251/serial_api.c | 1 + targets/TARGET_NUVOTON/TARGET_M261/serial_api.c | 1 + targets/TARGET_NUVOTON/TARGET_M451/serial_api.c | 1 + targets/TARGET_NUVOTON/TARGET_NANO100/serial_api.c | 1 + targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c | 1 + 5 files changed, 5 insertions(+) diff --git a/targets/TARGET_NUVOTON/TARGET_M251/serial_api.c b/targets/TARGET_NUVOTON/TARGET_M251/serial_api.c index aefd9673197..7b63fcf226f 100644 --- a/targets/TARGET_NUVOTON/TARGET_M251/serial_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M251/serial_api.c @@ -24,6 +24,7 @@ #include "mbed_error.h" #include "mbed_assert.h" #include "PeripheralPins.h" +#include "gpio_api.h" #include "nu_modutil.h" #include "nu_bitutil.h" #include diff --git a/targets/TARGET_NUVOTON/TARGET_M261/serial_api.c b/targets/TARGET_NUVOTON/TARGET_M261/serial_api.c index a57c20204d4..5fad8f8b97b 100644 --- a/targets/TARGET_NUVOTON/TARGET_M261/serial_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M261/serial_api.c @@ -23,6 +23,7 @@ #include "mbed_error.h" #include "mbed_assert.h" #include "PeripheralPins.h" +#include "gpio_api.h" #include "nu_modutil.h" #include "nu_bitutil.h" #include diff --git a/targets/TARGET_NUVOTON/TARGET_M451/serial_api.c b/targets/TARGET_NUVOTON/TARGET_M451/serial_api.c index 7d7bce7e7a9..7a6b9f5d152 100644 --- a/targets/TARGET_NUVOTON/TARGET_M451/serial_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M451/serial_api.c @@ -22,6 +22,7 @@ #include "mbed_error.h" #include "mbed_assert.h" #include "PeripheralPins.h" +#include "gpio_api.h" #include "nu_modutil.h" #include "nu_bitutil.h" #include diff --git a/targets/TARGET_NUVOTON/TARGET_NANO100/serial_api.c b/targets/TARGET_NUVOTON/TARGET_NANO100/serial_api.c index 2da2c9d3606..2742a938f79 100644 --- a/targets/TARGET_NUVOTON/TARGET_NANO100/serial_api.c +++ b/targets/TARGET_NUVOTON/TARGET_NANO100/serial_api.c @@ -22,6 +22,7 @@ #include "mbed_error.h" #include "mbed_assert.h" #include "PeripheralPins.h" +#include "gpio_api.h" #include "nu_modutil.h" #include "nu_bitutil.h" #include diff --git a/targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c index 6c1f8889b0c..029b944dde9 100644 --- a/targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c +++ b/targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c @@ -22,6 +22,7 @@ #include "mbed_error.h" #include "mbed_assert.h" #include "PeripheralPins.h" +#include "gpio_api.h" #include "nu_modutil.h" #include "nu_bitutil.h" #include