summaryrefslogtreecommitdiff
path: root/drivers/avr/analog.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/avr/analog.h')
-rw-r--r--drivers/avr/analog.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/avr/analog.h b/drivers/avr/analog.h
index 32452a1ec2..1b773d82ce 100644
--- a/drivers/avr/analog.h
+++ b/drivers/avr/analog.h
@@ -19,9 +19,15 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
void analogReference(uint8_t mode);
int16_t analogRead(uint8_t pin);
int16_t adc_read(uint8_t mux);
+#ifdef __cplusplus
+}
+#endif
#define ADC_REF_POWER (1 << REFS0)
#define ADC_REF_INTERNAL ((1 << REFS1) | (1 << REFS0))