From 3d4ba0662613c7dcbaaaba7a26f84fe9b848d808 Mon Sep 17 00:00:00 2001 From: asterix Date: Fri, 16 Oct 2009 15:12:51 +0000 Subject: [PATCH] Remove addr typedef. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3080 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/lm75.c | 2 +- bertos/drv/lm75.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bertos/drv/lm75.c b/bertos/drv/lm75.c index 3a30aadd..db8f8a94 100644 --- a/bertos/drv/lm75.c +++ b/bertos/drv/lm75.c @@ -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; diff --git a/bertos/drv/lm75.h b/bertos/drv/lm75.h index f1d9bf7c..62e25c7b 100644 --- a/bertos/drv/lm75.h +++ b/bertos/drv/lm75.h @@ -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); -- 2.25.1