Skip to content

Commit 9e0a247

Browse files
facchinmsoburi
authored andcommitted
cores: arduino: Define analogReference as weak function
Change analogReference declaration as a weak function. This is to accommodate the module configuration in the Arduino repository, but it does not have any adverse effects and is a way to coexist with the Zephyr repository, so we will include it. c8e82c1 Co-Authored-by: Martino Facchin <m.facchin@arduino.cc> Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent abd7065 commit 9e0a247

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cores/arduino/zephyrCommon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ void analogWrite(enum dacPins dacName, int value) {
425425

426426
#ifdef CONFIG_ADC
427427

428-
void analogReference(uint8_t mode) {
428+
void __attribute__((weak)) analogReference(uint8_t mode) {
429429
/*
430430
* The Arduino API not clearly defined what means of
431431
* the mode argument of analogReference().

0 commit comments

Comments
 (0)