projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
stm32-p103: align the interrupt vector table to 1K boundary.
[bertos.git]
/
bertos
/
drv
/
tmp123.c
diff --git
a/bertos/drv/tmp123.c
b/bertos/drv/tmp123.c
index 4c90a0e7ddbc6aab9ea04a89fb967ac7ecaaa73b..cce2696a2daf8e4c0943f8336e24922590db6e26 100644
(file)
--- a/
bertos/drv/tmp123.c
+++ b/
bertos/drv/tmp123.c
@@
-55,10
+55,10
@@
deg_t tmp123_read(KFile *fd)
{
int16_t tmp;
-
CS_ENABLE
();
+
TMP123_HW_CS_EN
();
kfile_read(fd, &tmp, sizeof(tmp));
tmp = be16_to_cpu(tmp);
-
CS_DISABLE
();
+
TMP123_HW_CS_DIS
();
tmp >>= 3;
return DIV_ROUND((tmp * 10), 16);