Support IN8 config for ADC.

This commit is contained in:
Anthony Romano
2018-01-09 09:26:44 +09:00
committed by NIIBE Yutaka
parent 8dabbe6e1c
commit c0a84627b6
2 changed files with 6 additions and 0 deletions

View File

@@ -47,6 +47,7 @@
#define ADC_SMPR2_SMP_AN0(n) ((n) << 0)
#define ADC_SMPR2_SMP_AN1(n) ((n) << 3)
#define ADC_SMPR2_SMP_AN2(n) ((n) << 6)
#define ADC_SMPR2_SMP_AN8(n) ((n) << 24)
#define ADC_SMPR2_SMP_AN9(n) ((n) << 27)
#define ADC_SQR1_NUM_CH(n) (((n) - 1) << 20)
@@ -61,6 +62,7 @@
#define ADC_CHANNEL_IN0 0
#define ADC_CHANNEL_IN1 1
#define ADC_CHANNEL_IN2 2
#define ADC_CHANNEL_IN8 8
#define ADC_CHANNEL_IN9 9
#define ADC_CHANNEL_IN10 10
#define ADC_CHANNEL_IN11 11