Skip to content

Commit 0711e48

Browse files
authored
Merge pull request #14686 from jeromecoutant/PR_CPP
STM32: correct __cplusplus brackets
2 parents d3ba2e1 + 81dc8f8 commit 0711e48

File tree

23 files changed

+81
-11
lines changed

23 files changed

+81
-11
lines changed

targets/TARGET_STM/TARGET_STM32F0/can_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,8 @@ extern "C" {
4040

4141
#endif // DEVICE_CAN
4242

43+
#ifdef __cplusplus
44+
}
45+
#endif
46+
4347
#endif

targets/TARGET_STM/TARGET_STM32F0/i2c_device.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ uint32_t i2c_get_timing(I2CName i2c, int hz);
5353
void i2c_compute_presc_scldel_sdadel(uint32_t clock_src_freq, uint32_t I2C_speed);
5454
uint32_t i2c_compute_scll_sclh(uint32_t clock_src_freq, uint32_t I2C_speed);
5555

56+
#endif // DEVICE_I2C
57+
5658
#ifdef __cplusplus
5759
}
5860
#endif
59-
#endif // DEVICE_I2C
61+
6062
#endif

targets/TARGET_STM/TARGET_STM32F1/can_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@ extern "C" {
4141

4242
#endif // DEVICE_CAN
4343

44+
#ifdef __cplusplus
45+
}
46+
#endif
47+
4448
#endif

targets/TARGET_STM/TARGET_STM32F1/i2c_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@ extern "C" {
4545

4646
#endif // DEVICE_I2C
4747

48+
#ifdef __cplusplus
49+
}
50+
#endif
51+
4852
#endif

targets/TARGET_STM/TARGET_STM32F2/can_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,8 @@ extern "C" {
5252

5353
#endif // DEVICE_CAN
5454

55+
#ifdef __cplusplus
56+
}
57+
#endif
58+
5559
#endif

targets/TARGET_STM/TARGET_STM32F2/i2c_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,8 @@ extern "C" {
4444

4545
#endif // DEVICE_I2C
4646

47+
#ifdef __cplusplus
48+
}
49+
#endif
50+
4751
#endif

targets/TARGET_STM/TARGET_STM32F3/can_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@ extern "C" {
4141

4242
#endif // DEVICE_CAN
4343

44+
#ifdef __cplusplus
45+
}
46+
#endif
47+
4448
#endif

targets/TARGET_STM/TARGET_STM32F3/i2c_device.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ uint32_t i2c_get_timing(I2CName i2c, int hz);
6767
void i2c_compute_presc_scldel_sdadel(uint32_t clock_src_freq, uint32_t I2C_speed);
6868
uint32_t i2c_compute_scll_sclh(uint32_t clock_src_freq, uint32_t I2C_speed);
6969

70+
#endif // DEVICE_I2C
71+
7072
#ifdef __cplusplus
7173
}
7274
#endif
73-
#endif // DEVICE_I2C
75+
7476
#endif

targets/TARGET_STM/TARGET_STM32F4/can_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,8 @@ extern "C" {
7070

7171
#endif // DEVICE_CAN
7272

73+
#ifdef __cplusplus
74+
}
75+
#endif
76+
7377
#endif

targets/TARGET_STM/TARGET_STM32F4/i2c_device.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@ extern "C" {
3131

3232
#endif // DEVICE_I2C
3333

34+
#ifdef __cplusplus
35+
}
36+
#endif
37+
3438
#endif

0 commit comments

Comments
 (0)