Support IN8 config for ADC.
This commit is contained in:
committed by
NIIBE Yutaka
parent
8dabbe6e1c
commit
c0a84627b6
@@ -1,3 +1,7 @@
|
||||
2018-01-09 Anthony Romano <romanoanthony061@gmail.com>
|
||||
|
||||
* contrib/adc-stm32f103.c: Support IN8 config.
|
||||
|
||||
2017-12-19 NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
* VERSION: 1.7.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user