diff --git a/variants/NICLA_VISION/pinmode_arduino.h b/variants/NICLA_VISION/pinmode_arduino.h index 9b3cb2c43..97eafb56c 100644 --- a/variants/NICLA_VISION/pinmode_arduino.h +++ b/variants/NICLA_VISION/pinmode_arduino.h @@ -71,4 +71,7 @@ typedef enum { /* Redeclare Common.h functions with the updated PinMode */ void pinMode(pin_size_t pinNumber, PinMode pinMode); +/* Redeclare analogReference with deprecated attribute */ +void __attribute__((warning("Unused in this architecture"))) analogReference(uint8_t mode); + #endif \ No newline at end of file diff --git a/variants/NICLA_VISION/variant.cpp b/variants/NICLA_VISION/variant.cpp index a63351afc..8e62e2498 100644 --- a/variants/NICLA_VISION/variant.cpp +++ b/variants/NICLA_VISION/variant.cpp @@ -3,6 +3,8 @@ RTC_HandleTypeDef RTCHandle; +void analogReference(uint8_t mode) {} + AnalogPinDescription g_AAnalogPinDescription[] = { { PC_4, NULL }, // A0 ADC2_INP0 { PF_13, NULL }, // A1 ADC2_INP1 diff --git a/variants/PORTENTA_H7_M4/pinmode_arduino.h b/variants/PORTENTA_H7_M4/pinmode_arduino.h index 9b3cb2c43..97eafb56c 100644 --- a/variants/PORTENTA_H7_M4/pinmode_arduino.h +++ b/variants/PORTENTA_H7_M4/pinmode_arduino.h @@ -71,4 +71,7 @@ typedef enum { /* Redeclare Common.h functions with the updated PinMode */ void pinMode(pin_size_t pinNumber, PinMode pinMode); +/* Redeclare analogReference with deprecated attribute */ +void __attribute__((warning("Unused in this architecture"))) analogReference(uint8_t mode); + #endif \ No newline at end of file diff --git a/variants/PORTENTA_H7_M4/variant.cpp b/variants/PORTENTA_H7_M4/variant.cpp index 3abd36f55..4239f0fd2 100644 --- a/variants/PORTENTA_H7_M4/variant.cpp +++ b/variants/PORTENTA_H7_M4/variant.cpp @@ -1,6 +1,8 @@ #include "Arduino.h" #include "pinDefinitions.h" +void analogReference(uint8_t mode) {} + AnalogPinDescription g_AAnalogPinDescription[] = { { PA_0C, NULL }, // A0 ADC2_INP0 { PA_1C, NULL }, // A1 ADC2_INP1 diff --git a/variants/PORTENTA_H7_M7/pinmode_arduino.h b/variants/PORTENTA_H7_M7/pinmode_arduino.h index 9b3cb2c43..97eafb56c 100644 --- a/variants/PORTENTA_H7_M7/pinmode_arduino.h +++ b/variants/PORTENTA_H7_M7/pinmode_arduino.h @@ -71,4 +71,7 @@ typedef enum { /* Redeclare Common.h functions with the updated PinMode */ void pinMode(pin_size_t pinNumber, PinMode pinMode); +/* Redeclare analogReference with deprecated attribute */ +void __attribute__((warning("Unused in this architecture"))) analogReference(uint8_t mode); + #endif \ No newline at end of file diff --git a/variants/PORTENTA_H7_M7/variant.cpp b/variants/PORTENTA_H7_M7/variant.cpp index 52cf947e2..fb66eef7e 100644 --- a/variants/PORTENTA_H7_M7/variant.cpp +++ b/variants/PORTENTA_H7_M7/variant.cpp @@ -3,6 +3,8 @@ RTC_HandleTypeDef RTCHandle; +void analogReference(uint8_t mode) {} + AnalogPinDescription g_AAnalogPinDescription[] = { { PA_0C, NULL }, // A0 ADC2_INP0 { PA_1C, NULL }, // A1 ADC2_INP1