projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Release version 2.6.1.
[bertos.git]
/
boards
/
stm32-p103
/
hw
/
hw_adc.h
diff --git
a/boards/stm32-p103/hw/hw_adc.h
b/boards/stm32-p103/hw/hw_adc.h
index 0313b2fc47a68939ceea41a1279460e78c26ca9b..8e0f0deecc9b448362207baf047bf2650ae96426 100644
(file)
--- a/
boards/stm32-p103/hw/hw_adc.h
+++ b/
boards/stm32-p103/hw/hw_adc.h
@@
-61,4
+61,9
@@
INLINE uint16_t hw_readIntTemp(void)
return (temp / 10);
}
+INLINE uint16_t hw_readRawTemp(void)
+{
+ return (uint16_t)ADC_RANGECONV(adc_read(ADC_TEMP_CH), 0, 3300);
+}
+
#endif /* HW_ADC_H */