From 073c82e56824d84af2dadba3aa16063998aa4576 Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Thu, 20 May 2021 11:04:36 +0200 Subject: [PATCH] STM32: correct __cplusplus brackets in can_device.h --- targets/TARGET_STM/TARGET_STM32F0/can_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32F1/can_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32F2/can_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32F3/can_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32F4/can_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32F7/can_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32L4/can_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32L5/can_device.h | 4 ++++ 8 files changed, 32 insertions(+) diff --git a/targets/TARGET_STM/TARGET_STM32F0/can_device.h b/targets/TARGET_STM/TARGET_STM32F0/can_device.h index cd8bee00b9..86ab3fb643 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/can_device.h +++ b/targets/TARGET_STM/TARGET_STM32F0/can_device.h @@ -40,4 +40,8 @@ extern "C" { #endif // DEVICE_CAN +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32F1/can_device.h b/targets/TARGET_STM/TARGET_STM32F1/can_device.h index f47f7bd644..77323a22b9 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/can_device.h +++ b/targets/TARGET_STM/TARGET_STM32F1/can_device.h @@ -41,4 +41,8 @@ extern "C" { #endif // DEVICE_CAN +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32F2/can_device.h b/targets/TARGET_STM/TARGET_STM32F2/can_device.h index 8e7730e0d8..aad22f4ba6 100644 --- a/targets/TARGET_STM/TARGET_STM32F2/can_device.h +++ b/targets/TARGET_STM/TARGET_STM32F2/can_device.h @@ -52,4 +52,8 @@ extern "C" { #endif // DEVICE_CAN +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32F3/can_device.h b/targets/TARGET_STM/TARGET_STM32F3/can_device.h index 846e081cf1..1abc4f88db 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/can_device.h +++ b/targets/TARGET_STM/TARGET_STM32F3/can_device.h @@ -41,4 +41,8 @@ extern "C" { #endif // DEVICE_CAN +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32F4/can_device.h b/targets/TARGET_STM/TARGET_STM32F4/can_device.h index 1a12fec282..ece0a52017 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/can_device.h +++ b/targets/TARGET_STM/TARGET_STM32F4/can_device.h @@ -70,4 +70,8 @@ extern "C" { #endif // DEVICE_CAN +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32F7/can_device.h b/targets/TARGET_STM/TARGET_STM32F7/can_device.h index 006bd78074..31a4811684 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/can_device.h +++ b/targets/TARGET_STM/TARGET_STM32F7/can_device.h @@ -71,4 +71,8 @@ extern "C" { #endif // DEVICE_CAN +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32L4/can_device.h b/targets/TARGET_STM/TARGET_STM32L4/can_device.h index 3a21300705..9759d2ac21 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/can_device.h +++ b/targets/TARGET_STM/TARGET_STM32L4/can_device.h @@ -42,4 +42,8 @@ extern "C" { #endif // DEVICE_CAN +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32L5/can_device.h b/targets/TARGET_STM/TARGET_STM32L5/can_device.h index 357b6ec561..17f055456f 100644 --- a/targets/TARGET_STM/TARGET_STM32L5/can_device.h +++ b/targets/TARGET_STM/TARGET_STM32L5/can_device.h @@ -39,4 +39,8 @@ extern "C" { #endif // DEVICE_CAN +#ifdef __cplusplus +} +#endif + #endif