projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use types and conversion macro from ntc.h.
[bertos.git]
/
bertos
/
drv
/
lm75.h
diff --git
a/bertos/drv/lm75.h
b/bertos/drv/lm75.h
index 8c7ee4e35b1cd18ba999323ad23ae66206958b70..f1d9bf7cf3e1ce102a01b357612e4d56c8324174 100644
(file)
--- a/
bertos/drv/lm75.h
+++ b/
bertos/drv/lm75.h
@@
-45,13
+45,14
@@
#include <cpu/types.h>
#include <cpu/types.h>
+#include <drv/ntc.h> // Macro and data type to manage celsius degree
+
#define LM75_ADDRESS_BYTE 0x91
#define LM75_PAD_BYTE 0x0
#define LM75_ADDRESS_BYTE 0x91
#define LM75_PAD_BYTE 0x0
-typedef int16_t deci_celsius_t;
typedef uint8_t addr_t;
typedef uint8_t addr_t;
-de
ci_celsius
_t lm75_read(addr_t sens_addr);
+de
g
_t lm75_read(addr_t sens_addr);
void lm75_init(void);
void lm75_init(void);