Skip to content

Commit 874ad38

Browse files
committed
STM32: correct __cplusplus brackets
1 parent 14e5d30 commit 874ad38

File tree

23 files changed

+71
-20
lines changed

23 files changed

+71
-20
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,8 @@ static inline uint32_t get_i2c_timing(int hz)
6969

7070
#endif // DEVICE_I2C
7171

72+
#ifdef __cplusplus
73+
}
74+
#endif
75+
7276
#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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ static inline uint32_t get_i2c_timing(int hz)
9393
return tim;
9494
}
9595

96+
#endif // DEVICE_I2C
97+
9698
#ifdef __cplusplus
9799
}
98100
#endif
99101

100-
#endif // DEVICE_I2C
101-
102102
#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)