Skip to content

Commit bd097e4

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 39faf90 commit bd097e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/zephyrCommon.cpp

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

435435
#ifdef CONFIG_ADC
436436

437-
void analogReference(uint8_t mode) {
437+
void __attribute__((weak)) analogReference(uint8_t mode) {
438438
/*
439439
* The Arduino API not clearly defined what means of
440440
* the mode argument of analogReference().

0 commit comments

Comments
 (0)