Skip to content

Commit ddbadbf

Browse files
committed
Fixed SystemClock_Config declaration
Signed-off-by: Frederic Pillon <[email protected]>
1 parent f50acbd commit ddbadbf

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

cores/arduino/stm32/stm32_def.h

+6
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@
7878
#define CAN1 CAN
7979
#endif
8080

81+
#ifdef __cplusplus
82+
extern "C"{
83+
#endif // __cplusplus
8184
// weaked functions declaration
8285
void SystemClock_Config(void);
86+
#ifdef __cplusplus
87+
} // extern "C"
88+
#endif // __cplusplus
8389

8490
#endif //_STM32_DEF_

cores/arduino/wiring.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@
2929
#include "binary.h"
3030
#include "itoa.h"
3131

32-
#ifdef __cplusplus
33-
extern "C"{
34-
#endif // __cplusplus
35-
#include <board.h>
36-
#ifdef __cplusplus
37-
}
38-
#endif
39-
4032
#include "wiring_analog.h"
4133
#include "wiring_constants.h"
4234
#include "wiring_digital.h"
@@ -45,6 +37,14 @@ extern "C"{
4537
#include "wiring_time.h"
4638
#include "WInterrupts.h"
4739

40+
#ifdef __cplusplus
41+
extern "C"{
42+
#endif // __cplusplus
43+
#include <board.h>
44+
#ifdef __cplusplus
45+
}
46+
#endif
47+
4848
#ifdef __cplusplus
4949
#include "HardwareSerial.h"
5050
#include "Tone.h"

0 commit comments

Comments
 (0)