projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add brief. Add example callout functions. Use tokenToInt to compute date time stamp...
[bertos.git]
/
bertos
/
drv
/
tmp123.c
diff --git
a/bertos/drv/tmp123.c
b/bertos/drv/tmp123.c
index 9fcc9165c16efe9f924a308b5dfd53e952bed436..4c90a0e7ddbc6aab9ea04a89fb967ac7ecaaa73b 100644
(file)
--- a/
bertos/drv/tmp123.c
+++ b/
bertos/drv/tmp123.c
@@
-46,10
+46,12
@@
#include <kern/kfile.h>
+#include <drv/ntc.h> // Macro and data type to manage celsius degree
+
/**
* Read temperature from TMP123 chip.
*/
-de
ci_celsius
_t tmp123_read(KFile *fd)
+de
g
_t tmp123_read(KFile *fd)
{
int16_t tmp;