Skip to content

Commit 98820ee

Browse files
facchinmsoburi
authored andcommitted
cores: arduino: zephyrCommon: make analogReference as weak func
Make analogReference as weak to allow override by each board implimentations. Co-Authored-by: Martino Facchin <m.facchin@arduino.cc> Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent 4f12abb commit 98820ee

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
@@ -493,7 +493,7 @@ void analogWrite(enum dacPins dacName, int value) {
493493

494494
#ifdef CONFIG_ADC
495495

496-
void analogReference(uint8_t mode) {
496+
void __attribute__((weak)) analogReference(uint8_t mode) {
497497
/*
498498
* The Arduino API not clearly defined what means of
499499
* the mode argument of analogReference().

0 commit comments

Comments
 (0)