File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
libraries/USBHost/examples/USB_desc Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ extern "C"{
6565#ifndef ARDUINO_ARCH_SAMD
6666#define ARDUINO_ARCH_SAMD
6767#endif
68+
69+ #ifdef __cplusplus
70+ extern "C" {
71+ #endif
6872/*
6973 * \brief SAMD products have only one reference for ADC
7074 */
@@ -78,6 +82,25 @@ typedef enum _eAnalogReference
7882 AR_INTERNAL2V23
7983} eAnalogReference ;
8084
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
81104
82105// USB Device
83106#include "USB/USBDesc.h"
Original file line number Diff line number Diff line change 22
33#include " Arduino.h"
44#include < usbhub.h>
5- #include " wiring_constants.h"
65#include " pgmstrings.h"
76// Satisfy IDE, which only needs to see the include statment in the ino.
87#ifdef dobogusinclude
You can’t perform that action at this time.
0 commit comments