projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: coding style fixes (structure naming)
[bertos.git]
/
bertos
/
drv
/
tmp123.c
diff --git
a/bertos/drv/tmp123.c
b/bertos/drv/tmp123.c
index 4c90a0e7ddbc6aab9ea04a89fb967ac7ecaaa73b..7f8b4f09cd802c1af7d25b29e754772207bd51cb 100644
(file)
--- a/
bertos/drv/tmp123.c
+++ b/
bertos/drv/tmp123.c
@@
-44,7
+44,7
@@
#include <cpu/byteorder.h>
#include <cpu/byteorder.h>
-#include <
kern
/kfile.h>
+#include <
io
/kfile.h>
#include <drv/ntc.h> // Macro and data type to manage celsius degree
#include <drv/ntc.h> // Macro and data type to manage celsius degree
@@
-55,10
+55,10
@@
deg_t tmp123_read(KFile *fd)
{
int16_t tmp;
{
int16_t tmp;
-
CS_ENABLE
();
+
TMP123_HW_CS_EN
();
kfile_read(fd, &tmp, sizeof(tmp));
tmp = be16_to_cpu(tmp);
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);
tmp >>= 3;
return DIV_ROUND((tmp * 10), 16);