Skip to content

Commit fa7c8b2

Browse files
committed
Remove eAnalogReference from ArduinoCore-samd
Moved to ArduinoCore-API and renamed to AnalogReference
1 parent 993398c commit fa7c8b2

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

cores/arduino/Arduino.h

-12
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,6 @@ extern "C"{
7373
#ifdef __cplusplus
7474
extern "C" {
7575
#endif
76-
/*
77-
* \brief SAMD products have only one reference for ADC
78-
*/
79-
typedef enum _eAnalogReference
80-
{
81-
AR_DEFAULT,
82-
AR_INTERNAL,
83-
AR_EXTERNAL,
84-
AR_INTERNAL1V0,
85-
AR_INTERNAL1V65,
86-
AR_INTERNAL2V23
87-
} eAnalogReference ;
8876

8977
/*
9078
* \brief Set the resolution of analogRead return values. Default is 10 bits (range from 0 to 1023).

cores/arduino/wiring_analog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static inline uint32_t mapResolution(uint32_t value, uint32_t from, uint32_t to)
9191
*
9292
* Warning : On Arduino Zero board the input/output voltage for SAMD21G18 is 3.3 volts maximum
9393
*/
94-
void analogReference(eAnalogReference mode)
94+
void analogReference(AnalogReference mode)
9595
{
9696
syncADC();
9797
switch (mode)

0 commit comments

Comments
 (0)