Skip to content

Commit 7852a2c

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 7377d9d commit 7852a2c

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

458458
#ifdef CONFIG_ADC
459459

460-
void analogReference(uint8_t mode) {
460+
void __attribute__((weak)) analogReference(uint8_t mode) {
461461
/*
462462
* The Arduino API not clearly defined what means of
463463
* the mode argument of analogReference().

0 commit comments

Comments
 (0)