summaryrefslogtreecommitdiff
path: root/ports/stm32/adc.c
diff options
context:
space:
mode:
authorTim Gates <tim.gates@iress.com>2022-07-17 08:43:33 +1000
committerDamien George <damien@micropython.org>2022-07-23 23:24:24 +1000
commitf736afb577f91cee2a53a22ea17b61755e3f44fc (patch)
treee20a7d86cb5719d3282b2daa4319b73a0f0c9042 /ports/stm32/adc.c
parent924e55aca18978215209a2ed81a49b0a6bdcaaa7 (diff)
drivers,ports: Fix a few typos in comments.
Fixes: - Should read `definitions` rather than `defintions`. - Should read `resolution` rather than `resoultion`. - Should read `inefficient` rather than `inefficent`. - Should read `closed` rather than `closded`. Signed-off-by: Tim Gates <tim.gates@iress.com>
Diffstat (limited to 'ports/stm32/adc.c')
-rw-r--r--ports/stm32/adc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/stm32/adc.c b/ports/stm32/adc.c
index fcc7d51e4..9b7788e59 100644
--- a/ports/stm32/adc.c
+++ b/ports/stm32/adc.c
@@ -50,7 +50,7 @@
/// val = adc.read_core_vbat() # read MCU VBAT
/// val = adc.read_core_vref() # read MCU VREF
-/* ADC defintions */
+/* ADC definitions */
#define ADCx (ADC1)
#define PIN_ADC_MASK PIN_ADC1
#define pin_adc_table pin_adc1
@@ -171,8 +171,8 @@
#define EOC_TIMEOUT (10)
/* Core temperature sensor definitions */
-#define CORE_TEMP_V25 (943) /* (0.76v/3.3v)*(2^ADC resoultion) */
-#define CORE_TEMP_AVG_SLOPE (3) /* (2.5mv/3.3v)*(2^ADC resoultion) */
+#define CORE_TEMP_V25 (943) /* (0.76v/3.3v)*(2^ADC resolution) */
+#define CORE_TEMP_AVG_SLOPE (3) /* (2.5mv/3.3v)*(2^ADC resolution) */
// scale and calibration values for VBAT and VREF
#define ADC_SCALE (ADC_SCALE_V / ((1 << ADC_CAL_BITS) - 1))