From 319223ac16dd40cc1ec75111da4b107ef6ac68b4 Mon Sep 17 00:00:00 2001 From: Laurent Meunier Date: Fri, 9 Aug 2019 09:51:39 +0200 Subject: [PATCH] __cplusplus guard fixed pwmout_device.h for STM32 families This bug prevented using this header in cpp code directly. --- targets/TARGET_STM/TARGET_STM32F0/pwmout_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32F1/pwmout_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32F2/pwmout_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32F3/pwmout_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32F7/pwmout_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32H7/pwmout_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32L0/pwmout_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32L1/pwmout_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32L4/pwmout_device.h | 4 ++++ targets/TARGET_STM/TARGET_STM32WB/pwmout_device.h | 4 ++++ 10 files changed, 40 insertions(+) diff --git a/targets/TARGET_STM/TARGET_STM32F0/pwmout_device.h b/targets/TARGET_STM/TARGET_STM32F0/pwmout_device.h index 702285b81d..db4ff24054 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/pwmout_device.h +++ b/targets/TARGET_STM/TARGET_STM32F0/pwmout_device.h @@ -56,4 +56,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[]; #endif // DEVICE_PWMOUT +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32F1/pwmout_device.h b/targets/TARGET_STM/TARGET_STM32F1/pwmout_device.h index 070149e480..bc6f761f18 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/pwmout_device.h +++ b/targets/TARGET_STM/TARGET_STM32F1/pwmout_device.h @@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[]; #endif // DEVICE_PWMOUT +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32F2/pwmout_device.h b/targets/TARGET_STM/TARGET_STM32F2/pwmout_device.h index 070149e480..bc6f761f18 100644 --- a/targets/TARGET_STM/TARGET_STM32F2/pwmout_device.h +++ b/targets/TARGET_STM/TARGET_STM32F2/pwmout_device.h @@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[]; #endif // DEVICE_PWMOUT +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32F3/pwmout_device.h b/targets/TARGET_STM/TARGET_STM32F3/pwmout_device.h index 070149e480..bc6f761f18 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/pwmout_device.h +++ b/targets/TARGET_STM/TARGET_STM32F3/pwmout_device.h @@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[]; #endif // DEVICE_PWMOUT +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32F7/pwmout_device.h b/targets/TARGET_STM/TARGET_STM32F7/pwmout_device.h index 070149e480..bc6f761f18 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/pwmout_device.h +++ b/targets/TARGET_STM/TARGET_STM32F7/pwmout_device.h @@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[]; #endif // DEVICE_PWMOUT +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32H7/pwmout_device.h b/targets/TARGET_STM/TARGET_STM32H7/pwmout_device.h index 070149e480..bc6f761f18 100644 --- a/targets/TARGET_STM/TARGET_STM32H7/pwmout_device.h +++ b/targets/TARGET_STM/TARGET_STM32H7/pwmout_device.h @@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[]; #endif // DEVICE_PWMOUT +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32L0/pwmout_device.h b/targets/TARGET_STM/TARGET_STM32L0/pwmout_device.h index 3a27fc3f3d..9a85d834b2 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/pwmout_device.h +++ b/targets/TARGET_STM/TARGET_STM32L0/pwmout_device.h @@ -56,4 +56,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[]; #endif // DEVICE_PWMOUT +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32L1/pwmout_device.h b/targets/TARGET_STM/TARGET_STM32L1/pwmout_device.h index a3d22c6965..757628cfd4 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/pwmout_device.h +++ b/targets/TARGET_STM/TARGET_STM32L1/pwmout_device.h @@ -57,4 +57,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[]; #endif // DEVICE_PWMOUT +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32L4/pwmout_device.h b/targets/TARGET_STM/TARGET_STM32L4/pwmout_device.h index 070149e480..bc6f761f18 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/pwmout_device.h +++ b/targets/TARGET_STM/TARGET_STM32L4/pwmout_device.h @@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[]; #endif // DEVICE_PWMOUT +#ifdef __cplusplus +} +#endif + #endif diff --git a/targets/TARGET_STM/TARGET_STM32WB/pwmout_device.h b/targets/TARGET_STM/TARGET_STM32WB/pwmout_device.h index bf1775d344..20f6023844 100644 --- a/targets/TARGET_STM/TARGET_STM32WB/pwmout_device.h +++ b/targets/TARGET_STM/TARGET_STM32WB/pwmout_device.h @@ -56,4 +56,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[]; #endif // DEVICE_PWMOUT +#ifdef __cplusplus +} +#endif + #endif