You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adc: add support for channels 16 and 17 in ADC1 (#67)
* adc: add support for channels 16 and 17 in ADC1
Add methods to read from ADC1 special channels:
- channel 16: temperature sensor
- channel 17: internal reference voltage
Note that these methods should be implemented only for ADC1 block
since in ADC2 and ADC3 those channels are connected to Vss.
Signed-off-by: Sergey Matyukevich <[email protected]>
* fixup: sampling time for temperature sensor
Recommended ADC sampling time for temperature sensor is 17.1 usec.
So use approximate sampling time settings to support the
whole range of possible ADC frequencies.
Signed-off-by: Sergey Matyukevich <[email protected]>
* adc: examples
Update existing ADC example according to ADC API changes.
Add new ADC example to read ambient temperature using ADC1 CH16.
Signed-off-by: Sergey Matyukevich <[email protected]>
* fixup: remove redundant interrupt handlers
Signed-off-by: Sergey Matyukevich <[email protected]>
* fixup: remove extra use_hse examples from comments
Signed-off-by: Sergey Matyukevich <[email protected]>
0 commit comments