Skip to content
Open
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
3 changes: 3 additions & 0 deletions variants/NICLA_VISION/pinmode_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions variants/NICLA_VISION/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions variants/PORTENTA_H7_M4/pinmode_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions variants/PORTENTA_H7_M4/variant.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions variants/PORTENTA_H7_M7/pinmode_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions variants/PORTENTA_H7_M7/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down