blmorris 97f14606f5 stmhal/adc.c: Fix calculation of read_core_vref()
There was a stray factor of 2 (VBAT_DIV) that looks like it was copied incorrectly from the read_core_vbat() function.
The factor exists in read_core_vbat() because VBAT is measured through a 2:1 voltage divider.
read_core_vref now returns values around 1.21V (assuming that external reference voltage is 3.3V) which is in line with the datasheet values.
See comment at http://forum.micropython.org/viewtopic.php?f=6&t=533&p=2991#p2991
2015-02-06 13:56:27 -05:00
..
2014-03-11 23:55:41 -07:00
2014-05-02 23:03:23 +01:00
2014-10-02 17:32:02 +01:00
2014-03-12 18:15:55 -07:00
2014-06-15 00:41:47 +01:00
2014-06-15 22:48:05 -07:00