Remove addr typedef.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 16 Oct 2009 15:12:51 +0000 (15:12 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 16 Oct 2009 15:12:51 +0000 (15:12 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3080 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/lm75.c
bertos/drv/lm75.h

index 3a30aadddb8e93af7c8d417ec074182cbf232193..db8f8a9420c04755668c35bb07eb988cb604e556 100644 (file)
@@ -56,7 +56,7 @@
 
 #define SELECT_ADDRESS(addr)   LM75_ADDRESS_BYTE | (addr << 1)
 
-deg_t lm75_read(addr_t sens_addr)
+deg_t lm75_read(uint8_t sens_addr)
 {
        uint8_t data[2];
        int16_t degree;
index f1d9bf7cf3e1ce102a01b357612e4d56c8324174..62e25c7be9cb30f8ed9e92f975908b4cfcb5f9b7 100644 (file)
@@ -50,9 +50,7 @@
 #define LM75_ADDRESS_BYTE    0x91
 #define LM75_PAD_BYTE        0x0
 
-typedef uint8_t addr_t;
-
-deg_t lm75_read(addr_t sens_addr);
+deg_t lm75_read(uint8_t sens_addr);
 
 void lm75_init(void);