From 4366b6811dfd123d665d793524b6b71cdbffaf0c Mon Sep 17 00:00:00 2001 From: Chun-Chieh Li Date: Fri, 15 Mar 2024 13:37:10 +0800 Subject: [PATCH] NUVOTON: SPI: Fix undeclared function gpio_set ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- targets/TARGET_NUVOTON/TARGET_M251/spi_api.c | 1 + targets/TARGET_NUVOTON/TARGET_M261/spi_api.c | 1 + targets/TARGET_NUVOTON/TARGET_M451/spi_api.c | 1 + targets/TARGET_NUVOTON/TARGET_NANO100/spi_api.c | 1 + targets/TARGET_NUVOTON/TARGET_NUC472/spi_api.c | 1 + 5 files changed, 5 insertions(+) diff --git a/targets/TARGET_NUVOTON/TARGET_M251/spi_api.c b/targets/TARGET_NUVOTON/TARGET_M251/spi_api.c index d8e9d378aca..ce879d13b74 100644 --- a/targets/TARGET_NUVOTON/TARGET_M251/spi_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M251/spi_api.c @@ -23,6 +23,7 @@ #include "cmsis.h" #include "pinmap.h" #include "PeripheralPins.h" +#include "gpio_api.h" #include "nu_modutil.h" #include "nu_miscutil.h" #include "nu_bitutil.h" diff --git a/targets/TARGET_NUVOTON/TARGET_M261/spi_api.c b/targets/TARGET_NUVOTON/TARGET_M261/spi_api.c index ebf7da50f25..265ac7f43d8 100644 --- a/targets/TARGET_NUVOTON/TARGET_M261/spi_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M261/spi_api.c @@ -23,6 +23,7 @@ #include "mbed_error.h" #include "pinmap.h" #include "PeripheralPins.h" +#include "gpio_api.h" #include "nu_modutil.h" #include "nu_miscutil.h" #include "nu_bitutil.h" diff --git a/targets/TARGET_NUVOTON/TARGET_M451/spi_api.c b/targets/TARGET_NUVOTON/TARGET_M451/spi_api.c index 8b2de0ed2e4..ef0101e8fa5 100644 --- a/targets/TARGET_NUVOTON/TARGET_M451/spi_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M451/spi_api.c @@ -21,6 +21,7 @@ #include "cmsis.h" #include "pinmap.h" #include "PeripheralPins.h" +#include "gpio_api.h" #include "nu_modutil.h" #include "nu_miscutil.h" #include "nu_bitutil.h" diff --git a/targets/TARGET_NUVOTON/TARGET_NANO100/spi_api.c b/targets/TARGET_NUVOTON/TARGET_NANO100/spi_api.c index 3862edf5162..d77e0864ca0 100644 --- a/targets/TARGET_NUVOTON/TARGET_NANO100/spi_api.c +++ b/targets/TARGET_NUVOTON/TARGET_NANO100/spi_api.c @@ -21,6 +21,7 @@ #include "cmsis.h" #include "pinmap.h" #include "PeripheralPins.h" +#include "gpio_api.h" #include "nu_modutil.h" #include "nu_miscutil.h" #include "nu_bitutil.h" diff --git a/targets/TARGET_NUVOTON/TARGET_NUC472/spi_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/spi_api.c index ddcf800de57..38c4ed2e241 100644 --- a/targets/TARGET_NUVOTON/TARGET_NUC472/spi_api.c +++ b/targets/TARGET_NUVOTON/TARGET_NUC472/spi_api.c @@ -21,6 +21,7 @@ #include "cmsis.h" #include "pinmap.h" #include "PeripheralPins.h" +#include "gpio_api.h" #include "nu_modutil.h" #include "nu_miscutil.h" #include "nu_bitutil.h"