File tree 2 files changed +23
-1
lines changed
libraries/USBHost/examples/USB_desc
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ extern "C"{
65
65
#ifndef ARDUINO_ARCH_SAMD
66
66
#define ARDUINO_ARCH_SAMD
67
67
#endif
68
+
69
+ #ifdef __cplusplus
70
+ extern "C" {
71
+ #endif
68
72
/*
69
73
* \brief SAMD products have only one reference for ADC
70
74
*/
@@ -78,6 +82,25 @@ typedef enum _eAnalogReference
78
82
AR_INTERNAL2V23
79
83
} eAnalogReference ;
80
84
85
+ /*
86
+ * \brief Set the resolution of analogRead return values. Default is 10 bits (range from 0 to 1023).
87
+ *
88
+ * \param res
89
+ */
90
+ extern void analogReadResolution (int res );
91
+
92
+ /*
93
+ * \brief Set the resolution of analogWrite parameters. Default is 8 bits (range from 0 to 255).
94
+ *
95
+ * \param res
96
+ */
97
+ extern void analogWriteResolution (int res );
98
+
99
+ extern void analogOutputInit ( void ) ;
100
+
101
+ #ifdef __cplusplus
102
+ }
103
+ #endif
81
104
82
105
// USB Device
83
106
#include "USB/USBDesc.h"
Original file line number Diff line number Diff line change 2
2
3
3
#include " Arduino.h"
4
4
#include < usbhub.h>
5
- #include " wiring_constants.h"
6
5
#include " pgmstrings.h"
7
6
// Satisfy IDE, which only needs to see the include statment in the ino.
8
7
#ifdef dobogusinclude
You can’t perform that action at this time.
0 commit comments