|
|
|
@ -95,9 +95,9 @@ multiple conversions in a row, with channels arranged in order according to
|
|
|
|
|
the `SQR` registers.
|
|
|
|
|
|
|
|
|
|
We are doing a single conversion of a single channel, channel one. So, we
|
|
|
|
|
write a `1` for the first sequence channel. By setting the register with an
|
|
|
|
|
`=` instead of just setting bits, we clear the L field of the register to zero
|
|
|
|
|
which sets a sequence length of one.
|
|
|
|
|
write a `1` for the first sequence channel. By setting the whole register with
|
|
|
|
|
`=`, we clear the L field of the register to zero; this sets the sequence length
|
|
|
|
|
to one.
|
|
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
|
ADC1->SQR1 = 1 << ADC_SQR1_SQ1_Pos;
|
|
|
|
|