Skip to content

Commit

Permalink
Remove eAnalogReference from ArduinoCore-samd
Browse files Browse the repository at this point in the history
Moved to ArduinoCore-API and renamed to AnalogReference
  • Loading branch information
rubenstar committed Jun 14, 2024
1 parent 993398c commit fa7c8b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
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

0 comments on commit fa7c8b2

Please sign in to comment.