File tree Expand file tree Collapse file tree 7 files changed +23
-1
lines changed
Expand file tree Collapse file tree 7 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 2525
2626#include <Arduino.h>
2727#include <PinNames.h>
28- #include <platform/FileHandle.h>
2928
3029// this is needed for backwards compatibility
3130#define digitalPinToInterrupt (P ) (P)
3837
3938#endif
4039
40+ #ifdef __cplusplus
41+ #include <platform/FileHandle.h>
42+
4143#define REDIRECT_STDOUT_TO (stream ) namespace mbed { \
4244 FileHandle *mbed_override_console(int fd) { \
4345 return static_cast<mbed::FileHandle*>(stream); \
4648 return static_cast<mbed::FileHandle*>(stream); \
4749 } \
4850 }
51+
52+ #endif //__cplusplus
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ typedef enum {
4444 INPUT_PULLDOWN = TempINPUT_PULLDOWN
4545} PinMode ;
4646
47+ #if defined(__cplusplus )
48+
4749/* Redeclare Common.h functions with the updated PinMode */
4850void pinMode (pin_size_t pinNumber , PinMode pinMode );
4951
52+ #endif
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ typedef enum {
4444 INPUT_PULLDOWN = TempINPUT_PULLDOWN
4545} PinMode ;
4646
47+ #if defined(__cplusplus )
48+
4749/* Redeclare Common.h functions with the updated PinMode */
4850void pinMode (pin_size_t pinNumber , PinMode pinMode );
4951
52+ #endif
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ typedef enum {
6666 INPUT_PULLDOWN = TempINPUT_PULLDOWN
6767} PinMode ;
6868
69+ #if defined(__cplusplus )
70+
6971/* Redeclare Common.h functions with the updated PinMode */
7072void pinMode (pin_size_t pinNumber , PinMode pinMode );
7173
74+ #endif
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ typedef enum {
6666 INPUT_PULLDOWN = TempINPUT_PULLDOWN
6767} PinMode ;
6868
69+ #if defined(__cplusplus )
70+
6971/* Redeclare Common.h functions with the updated PinMode */
7072void pinMode (pin_size_t pinNumber , PinMode pinMode );
7173
74+ #endif
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ typedef enum {
6666 INPUT_PULLDOWN = TempINPUT_PULLDOWN
6767} PinMode ;
6868
69+ #if defined(__cplusplus )
70+
6971/* Redeclare Common.h functions with the updated PinMode */
7072void pinMode (pin_size_t pinNumber , PinMode pinMode );
7173
74+ #endif
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ typedef enum {
6666 INPUT_PULLDOWN = TempINPUT_PULLDOWN
6767} PinMode ;
6868
69+ #if defined(__cplusplus )
70+
6971/* Redeclare Common.h functions with the updated PinMode */
7072void pinMode (pin_size_t pinNumber , PinMode pinMode );
7173
74+ #endif
You can’t perform that action at this time.
0 commit comments