Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,6 @@ extern "C"{
#ifdef __cplusplus
extern "C" {
#endif
/*
* \brief SAMD products have only one reference for ADC
*/
typedef enum _eAnalogReference
{
AR_DEFAULT,
AR_INTERNAL,
AR_EXTERNAL,
AR_INTERNAL1V0,
AR_INTERNAL1V65,
AR_INTERNAL2V23
} eAnalogReference ;

/*
* \brief Set the resolution of analogRead return values. Default is 10 bits (range from 0 to 1023).
Expand Down
2 changes: 1 addition & 1 deletion cores/arduino/wiring_analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static inline uint32_t mapResolution(uint32_t value, uint32_t from, uint32_t to)
*
* Warning : On Arduino Zero board the input/output voltage for SAMD21G18 is 3.3 volts maximum
*/
void analogReference(eAnalogReference mode)
void analogReference(AnalogReference mode)
{
syncADC();
switch (mode)
Expand Down