Skip to content

Commit 0acd76c

Browse files
committed
STM32H7: implement empty analogReference
1 parent 0d1f2af commit 0acd76c

File tree

6 files changed

+15
-0
lines changed

6 files changed

+15
-0
lines changed

variants/NICLA_VISION/pinmode_arduino.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,7 @@ typedef enum {
7171
/* Redeclare Common.h functions with the updated PinMode */
7272
void pinMode(pin_size_t pinNumber, PinMode pinMode);
7373

74+
/* Redeclare analogReference with deprecated attribute */
75+
void __attribute__((warning("Unused in this architecture"))) analogReference(uint8_t mode);
76+
7477
#endif

variants/NICLA_VISION/variant.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
RTC_HandleTypeDef RTCHandle;
55

6+
void analogReference(uint8_t mode) {}
7+
68
AnalogPinDescription g_AAnalogPinDescription[] = {
79
{ PC_4, NULL }, // A0 ADC2_INP0
810
{ PF_13, NULL }, // A1 ADC2_INP1

variants/PORTENTA_H7_M4/pinmode_arduino.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,7 @@ typedef enum {
7171
/* Redeclare Common.h functions with the updated PinMode */
7272
void pinMode(pin_size_t pinNumber, PinMode pinMode);
7373

74+
/* Redeclare analogReference with deprecated attribute */
75+
void __attribute__((warning("Unused in this architecture"))) analogReference(uint8_t mode);
76+
7477
#endif

variants/PORTENTA_H7_M4/variant.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include "Arduino.h"
22
#include "pinDefinitions.h"
33

4+
void analogReference(uint8_t mode) {}
5+
46
AnalogPinDescription g_AAnalogPinDescription[] = {
57
{ PA_0C, NULL }, // A0 ADC2_INP0
68
{ PA_1C, NULL }, // A1 ADC2_INP1

variants/PORTENTA_H7_M7/pinmode_arduino.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,7 @@ typedef enum {
7171
/* Redeclare Common.h functions with the updated PinMode */
7272
void pinMode(pin_size_t pinNumber, PinMode pinMode);
7373

74+
/* Redeclare analogReference with deprecated attribute */
75+
void __attribute__((warning("Unused in this architecture"))) analogReference(uint8_t mode);
76+
7477
#endif

variants/PORTENTA_H7_M7/variant.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
RTC_HandleTypeDef RTCHandle;
55

6+
void analogReference(uint8_t mode) {}
7+
68
AnalogPinDescription g_AAnalogPinDescription[] = {
79
{ PA_0C, NULL }, // A0 ADC2_INP0
810
{ PA_1C, NULL }, // A1 ADC2_INP1

0 commit comments

Comments
 (0)