Skip to content

Commit 8490908

Browse files
authored
Merge pull request #139 from KurtE/pure_analog_cpp_only
Fix .c file compile that include <Arduino.h>
2 parents 3225af7 + 99efc3e commit 8490908

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

variants/arduino_giga_r1_stm32h747xx_m7/pure_analog_pins.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#ifndef _PURE_ANALOG_PINS_
22
#define _PURE_ANALOG_PINS_
3+
#ifdef __cplusplus
34

45
/******************************************************************************
56
* INCLUDE
@@ -54,4 +55,6 @@ void PURE_ANALOG_AS_DIGITAL_ATTRIBUTE analogWrite (PureAnalogPin pin, int v
5455

5556
#undef PURE_ANALOG_AS_DIGITAL_ATTRIBUTE
5657

58+
#endif /* __cplusplus */
59+
5760
#endif /* _PURE_ANALOG_PINS_ */

variants/arduino_portenta_h7_stm32h747xx_m7/pure_analog_pins.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
#ifndef _PURE_ANALOG_PINS_
77
#define _PURE_ANALOG_PINS_
8+
#ifdef __cplusplus
89

910
/******************************************************************************
1011
* INCLUDE
@@ -59,4 +60,6 @@ void PURE_ANALOG_AS_DIGITAL_ATTRIBUTE analogWrite (PureAnalogPin pin, int v
5960

6061
#undef PURE_ANALOG_AS_DIGITAL_ATTRIBUTE
6162

63+
#endif /* __cplusplus */
64+
6265
#endif /* _PURE_ANALOG_PINS_ */

0 commit comments

Comments
 (0)