Skip to content

Commit

Permalink
Remove includes to wiring_constants.h + declare missing analog functi…
Browse files Browse the repository at this point in the history
…ons in Arduino.h
  • Loading branch information
giulcioffi committed Oct 15, 2020
1 parent 9ba10f2 commit d462862
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
23 changes: 23 additions & 0 deletions cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ extern "C"{
#ifndef ARDUINO_ARCH_SAMD
#define ARDUINO_ARCH_SAMD
#endif

#ifdef __cplusplus
extern "C" {
#endif
/*
* \brief SAMD products have only one reference for ADC
*/
Expand All @@ -78,6 +82,25 @@ typedef enum _eAnalogReference
AR_INTERNAL2V23
} eAnalogReference ;

/*
* \brief Set the resolution of analogRead return values. Default is 10 bits (range from 0 to 1023).
*
* \param res
*/
extern void analogReadResolution(int res);

/*
* \brief Set the resolution of analogWrite parameters. Default is 8 bits (range from 0 to 255).
*
* \param res
*/
extern void analogWriteResolution(int res);

extern void analogOutputInit( void ) ;

#ifdef __cplusplus
}
#endif

// USB Device
#include "USB/USBDesc.h"
Expand Down
1 change: 0 additions & 1 deletion libraries/USBHost/examples/USB_desc/USB_desc.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "Arduino.h"
#include <usbhub.h>
#include "wiring_constants.h"
#include "pgmstrings.h"
// Satisfy IDE, which only needs to see the include statment in the ino.
#ifdef dobogusinclude
Expand Down

0 comments on commit d462862

Please sign in to comment.