Skip to content
Commit 2f6371c1 authored by Andrei Emeltchenko's avatar Andrei Emeltchenko Committed by Maureen Helm
Browse files

drivers: adc: adc_mchp_xec: Fix incorrect channel mask check



Value MCHP_ADC_MAX_CHAN_MASK defined in microchip hal as
0x07u which is different method for mask calculation then used in Zephyr
API for 8 channels (MCHP_ADC_MAX_CHAN = 8).

Calculate bitmask ourselves using BIT_MASK().

Signed-off-by: default avatarAndrei Emeltchenko <andrei.emeltchenko@intel.com>
parent ad0c6688
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment