Skip to content

Commit 03c8819

Browse files
scottwcpgfranciscomunoz
authored andcommitted
modules: Fix bug in ADC resolution define
The 10-bit resolution define for the ADC SAR register was incorrect. Signed-off-by: Scott Worley <[email protected]>
1 parent a8a3b31 commit 03c8819

File tree

1 file changed

+1
-1
lines changed
  • mec/mec1501/component

1 file changed

+1
-1
lines changed

mec/mec1501/component/adc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
#define MCHP_ADC_SAR_CTRL_RES_POS 1
146146
#define MCHP_ADC_SAR_CTRL_RES_MASK0 0x03u
147147
#define MCHP_ADC_SAR_CTRL_RES_MASK (0x03ul << 1)
148-
#define MCHP_ADC_SAR_CTRL_RES_10_BITS (0x01ul << 1)
148+
#define MCHP_ADC_SAR_CTRL_RES_10_BITS (0x02ul << 1)
149149
#define MCHP_ADC_SAR_CTRL_RES_12_BITS (0x03ul << 1)
150150
/* Shift data in reading register */
151151
#define MCHP_ADC_SAR_CTRL_SHIFTD_POS 3

0 commit comments

Comments
 (0)