Use types and conversion macro from ntc.h.
[bertos.git] / bertos / drv / lm75.h
index 8c7ee4e35b1cd18ba999323ad23ae66206958b70..f1d9bf7cf3e1ce102a01b357612e4d56c8324174 100644 (file)
 
 #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
 
-typedef int16_t deci_celsius_t;
 typedef uint8_t addr_t;
 
-deci_celsius_t lm75_read(addr_t sens_addr);
+deg_t lm75_read(addr_t sens_addr);
 
 void lm75_init(void);