File tree 7 files changed +23
-1
lines changed
7 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 25
25
26
26
#include <Arduino.h>
27
27
#include <PinNames.h>
28
- #include <platform/FileHandle.h>
29
28
30
29
// this is needed for backwards compatibility
31
30
#define digitalPinToInterrupt (P ) (P)
38
37
39
38
#endif
40
39
40
+ #ifdef __cplusplus
41
+ #include <platform/FileHandle.h>
42
+
41
43
#define REDIRECT_STDOUT_TO (stream ) namespace mbed { \
42
44
FileHandle *mbed_override_console(int fd) { \
43
45
return static_cast<mbed::FileHandle*>(stream); \
46
48
return static_cast<mbed::FileHandle*>(stream); \
47
49
} \
48
50
}
51
+
52
+ #endif //__cplusplus
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ typedef enum {
44
44
INPUT_PULLDOWN = TempINPUT_PULLDOWN
45
45
} PinMode ;
46
46
47
+ #if defined(__cplusplus )
48
+
47
49
/* Redeclare Common.h functions with the updated PinMode */
48
50
void pinMode (pin_size_t pinNumber , PinMode pinMode );
49
51
52
+ #endif
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ typedef enum {
44
44
INPUT_PULLDOWN = TempINPUT_PULLDOWN
45
45
} PinMode ;
46
46
47
+ #if defined(__cplusplus )
48
+
47
49
/* Redeclare Common.h functions with the updated PinMode */
48
50
void pinMode (pin_size_t pinNumber , PinMode pinMode );
49
51
52
+ #endif
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ typedef enum {
66
66
INPUT_PULLDOWN = TempINPUT_PULLDOWN
67
67
} PinMode ;
68
68
69
+ #if defined(__cplusplus )
70
+
69
71
/* Redeclare Common.h functions with the updated PinMode */
70
72
void pinMode (pin_size_t pinNumber , PinMode pinMode );
71
73
74
+ #endif
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ typedef enum {
66
66
INPUT_PULLDOWN = TempINPUT_PULLDOWN
67
67
} PinMode ;
68
68
69
+ #if defined(__cplusplus )
70
+
69
71
/* Redeclare Common.h functions with the updated PinMode */
70
72
void pinMode (pin_size_t pinNumber , PinMode pinMode );
71
73
74
+ #endif
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ typedef enum {
66
66
INPUT_PULLDOWN = TempINPUT_PULLDOWN
67
67
} PinMode ;
68
68
69
+ #if defined(__cplusplus )
70
+
69
71
/* Redeclare Common.h functions with the updated PinMode */
70
72
void pinMode (pin_size_t pinNumber , PinMode pinMode );
71
73
74
+ #endif
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ typedef enum {
66
66
INPUT_PULLDOWN = TempINPUT_PULLDOWN
67
67
} PinMode ;
68
68
69
+ #if defined(__cplusplus )
70
+
69
71
/* Redeclare Common.h functions with the updated PinMode */
70
72
void pinMode (pin_size_t pinNumber , PinMode pinMode );
71
73
74
+ #endif
You can’t perform that action at this time.
0 commit comments