Skip to content

Commit de84004

Browse files
authored
Merge pull request #11189 from LMESTM/pwmout_cpp_guard
__cplusplus guard fixed pwmout_device.h for STM32 families
2 parents 80556a0 + 319223a commit de84004

File tree

10 files changed

+40
-0
lines changed

10 files changed

+40
-0
lines changed

targets/TARGET_STM/TARGET_STM32F0/pwmout_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[];
5656

5757
#endif // DEVICE_PWMOUT
5858

59+
#ifdef __cplusplus
60+
}
61+
#endif
62+
5963
#endif

targets/TARGET_STM/TARGET_STM32F1/pwmout_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[];
5454

5555
#endif // DEVICE_PWMOUT
5656

57+
#ifdef __cplusplus
58+
}
59+
#endif
60+
5761
#endif

targets/TARGET_STM/TARGET_STM32F2/pwmout_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[];
5454

5555
#endif // DEVICE_PWMOUT
5656

57+
#ifdef __cplusplus
58+
}
59+
#endif
60+
5761
#endif

targets/TARGET_STM/TARGET_STM32F3/pwmout_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[];
5454

5555
#endif // DEVICE_PWMOUT
5656

57+
#ifdef __cplusplus
58+
}
59+
#endif
60+
5761
#endif

targets/TARGET_STM/TARGET_STM32F7/pwmout_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[];
5454

5555
#endif // DEVICE_PWMOUT
5656

57+
#ifdef __cplusplus
58+
}
59+
#endif
60+
5761
#endif

targets/TARGET_STM/TARGET_STM32H7/pwmout_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[];
5454

5555
#endif // DEVICE_PWMOUT
5656

57+
#ifdef __cplusplus
58+
}
59+
#endif
60+
5761
#endif

targets/TARGET_STM/TARGET_STM32L0/pwmout_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[];
5656

5757
#endif // DEVICE_PWMOUT
5858

59+
#ifdef __cplusplus
60+
}
61+
#endif
62+
5963
#endif

targets/TARGET_STM/TARGET_STM32L1/pwmout_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[];
5757

5858
#endif // DEVICE_PWMOUT
5959

60+
#ifdef __cplusplus
61+
}
62+
#endif
63+
6064
#endif

targets/TARGET_STM/TARGET_STM32L4/pwmout_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[];
5454

5555
#endif // DEVICE_PWMOUT
5656

57+
#ifdef __cplusplus
58+
}
59+
#endif
60+
5761
#endif

targets/TARGET_STM/TARGET_STM32WB/pwmout_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,8 @@ extern const pwm_apb_map_t pwm_apb_map_table[];
5656

5757
#endif // DEVICE_PWMOUT
5858

59+
#ifdef __cplusplus
60+
}
61+
#endif
62+
5963
#endif

0 commit comments

Comments
 (0)