Skip to content

Commit 932329d

Browse files
committedNov 25, 2020
Remove includes to wiring_constants.h + declare missing analog functions in Arduino.h
1 parent 9e5e8fc commit 932329d

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
 

‎cores/arduino/Arduino.h

+23
Original file line numberDiff line numberDiff 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"

‎libraries/USBHost/examples/USB_desc/USB_desc.ino

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
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

0 commit comments

Comments
 (0)