Skip to content

Commit e7cfb05

Browse files
juliaazzizdleach02
authored andcommitted
drivers: adc: fix missing ref_internal in adc_sam0
The .ref_internal field in the adc_driver_api struct was previously unset. Now it's set to the proper value, 1 V. Signed-off-by: Julia Azziz <[email protected]>
1 parent fc75601 commit e7cfb05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/adc/adc_sam0.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ static int adc_sam0_read_async(const struct device *dev,
506506
static const struct adc_driver_api adc_sam0_api = {
507507
.channel_setup = adc_sam0_channel_setup,
508508
.read = adc_sam0_read,
509+
.ref_internal = 1000U, /* Fixed 1.0 V reference */
509510
#ifdef CONFIG_ADC_ASYNC
510511
.read_async = adc_sam0_read_async,
511512
#endif

0 commit comments

Comments
 (0)