From: asterix Date: Fri, 16 Oct 2009 15:12:51 +0000 (+0000) Subject: Remove addr typedef. X-Git-Tag: 2.3.0~3 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=3d4ba0662613c7dcbaaaba7a26f84fe9b848d808;p=bertos.git Remove addr typedef. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3080 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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);