diff options
Diffstat (limited to 'board/board-fst-01.h')
-rw-r--r-- | board/board-fst-01.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/board-fst-01.h b/board/board-fst-01.h index c9ec367..fae1945 100644 --- a/board/board-fst-01.h +++ b/board/board-fst-01.h @@ -18,3 +18,11 @@ #define RCC_APB2ENR_IOP_EN (RCC_APB2ENR_IOPAEN | RCC_APB2ENR_IOPBEN) #define RCC_APB2RSTR_IOP_RST (RCC_APB2RSTR_IOPARST | RCC_APB2RSTR_IOPBRST) + +/* NeuG settings for ADC2. */ +#define NEUG_ADC_SETTING2_SMPR1 0 +#define NEUG_ADC_SETTING2_SMPR2 ADC_SMPR2_SMP_AN0(ADC_SAMPLE_1P5) \ + | ADC_SMPR2_SMP_AN9(ADC_SAMPLE_1P5) +#define NEUG_ADC_SETTING2_SQR3 ADC_SQR3_SQ1_N(ADC_CHANNEL_IN0) \ + | ADC_SQR3_SQ2_N(ADC_CHANNEL_IN9) +#define NEUG_ADC_SETTING2_NUM_CHANNELS 2 |