From: asterix Date: Fri, 30 Jul 2010 15:04:03 +0000 (+0000) Subject: Silent warning. X-Git-Tag: 2.6.0~283 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=c28e83e32cf419cf20a680724c97dd0253696883;p=bertos.git Silent warning. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4107 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/pcf8574.c b/bertos/drv/pcf8574.c index 3c9ba4d2..908d3a0e 100644 --- a/bertos/drv/pcf8574.c +++ b/bertos/drv/pcf8574.c @@ -49,11 +49,8 @@ #include -/** - * Read PCF8574 \a pcf bit status. - * \return the pins status or EOF on errors. - */ -int pcf8574_get_1(Pcf8574 *pcf) + +INLINE int pcf8574_get_priv(Pcf8574 *pcf) { if (!i2c_start_r(PCF8574ID | ((pcf->addr << 1) & 0xF7))) return EOF; @@ -68,6 +65,16 @@ int pcf8574_get_1(Pcf8574 *pcf) return data; } + +/** + * Read PCF8574 \a pcf bit status. + * \return the pins status or EOF on errors. + */ +int pcf8574_get_1(Pcf8574 *pcf) +{ + return pcf8574_get_priv(pcf); +} + /** * Write to PCF8574 \a pcf port \a data. * \return true if ok, false on errors. @@ -87,7 +94,7 @@ bool pcf8574_init_2(Pcf8574 *pcf, pcf8574_addr addr) { MOD_CHECK(i2c); pcf->addr = addr; - return pcf8574_get(pcf) != EOF; + return pcf8574_get_priv(pcf) != EOF; }