modules: Fix bug in ADC resolution define

The 10-bit resolution define for the ADC SAR register
was incorrect.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
This commit is contained in:
Scott Worley 2020-03-02 14:34:59 -05:00 committed by franciscomunoz
parent a8a3b31822
commit 03c8819ac3
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@
#define MCHP_ADC_SAR_CTRL_RES_POS 1
#define MCHP_ADC_SAR_CTRL_RES_MASK0 0x03u
#define MCHP_ADC_SAR_CTRL_RES_MASK (0x03ul << 1)
#define MCHP_ADC_SAR_CTRL_RES_10_BITS (0x01ul << 1)
#define MCHP_ADC_SAR_CTRL_RES_10_BITS (0x02ul << 1)
#define MCHP_ADC_SAR_CTRL_RES_12_BITS (0x03ul << 1)
/* Shift data in reading register */
#define MCHP_ADC_SAR_CTRL_SHIFTD_POS 3