projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lm3s1968: improve the example with GUI enhancements, keypad driver and menu.
[bertos.git]
/
bertos
/
drv
/
lm75.c
diff --git
a/bertos/drv/lm75.c
b/bertos/drv/lm75.c
index 449a4dd2e1f541643be1bd7c0bc0c3a505704bce..db8f8a9420c04755668c35bb07eb988cb604e556 100644
(file)
--- a/
bertos/drv/lm75.c
+++ b/
bertos/drv/lm75.c
@@
-52,10
+52,11
@@
#include <cfg/log.h>
#include <drv/i2c.h>
#include <cfg/log.h>
#include <drv/i2c.h>
+#include <drv/ntc.h> // Macro and data type to manage celsius degree
#define SELECT_ADDRESS(addr) LM75_ADDRESS_BYTE | (addr << 1)
#define SELECT_ADDRESS(addr) LM75_ADDRESS_BYTE | (addr << 1)
-de
ci_celsius_t lm75_read(addr
_t sens_addr)
+de
g_t lm75_read(uint8
_t sens_addr)
{
uint8_t data[2];
int16_t degree;
{
uint8_t data[2];
int16_t degree;