From 1be9ff0b5e1e9096978d9c18013eb34e3b19ac0b Mon Sep 17 00:00:00 2001 From: Chun-Chieh Li Date: Fri, 15 Mar 2024 13:26:03 +0800 Subject: [PATCH] NUVOTON: CAN: Fix undeclared function gpio_set ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- targets/TARGET_NUVOTON/TARGET_M261/can_api.c | 1 + targets/TARGET_NUVOTON/TARGET_M451/can_api.c | 1 + targets/TARGET_NUVOTON/TARGET_NUC472/can_api.c | 1 + 3 files changed, 3 insertions(+) diff --git a/targets/TARGET_NUVOTON/TARGET_M261/can_api.c b/targets/TARGET_NUVOTON/TARGET_M261/can_api.c index fa04232ee4..dce5a76c50 100644 --- a/targets/TARGET_NUVOTON/TARGET_M261/can_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M261/can_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_M451/can_api.c b/targets/TARGET_NUVOTON/TARGET_M451/can_api.c index fa2e7c2e21..83ed089036 100644 --- a/targets/TARGET_NUVOTON/TARGET_M451/can_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M451/can_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_NUC472/can_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/can_api.c index 7ea08e771e..5570b91636 100644 --- a/targets/TARGET_NUVOTON/TARGET_NUC472/can_api.c +++ b/targets/TARGET_NUVOTON/TARGET_NUC472/can_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"