projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo.
[bertos.git]
/
bertos
/
drv
/
pcf8574.c
diff --git
a/bertos/drv/pcf8574.c
b/bertos/drv/pcf8574.c
index 908d3a0eb584d931a0807acab0958aec6280f8fe..a94b2b7d432015cd8163d1faa6b1f95a269f021c 100644
(file)
--- a/
bertos/drv/pcf8574.c
+++ b/
bertos/drv/pcf8574.c
@@
-45,10
+45,13
@@
#include "pcf8574.h"
#include "pcf8574.h"
+#include "cfg/cfg_i2c.h"
+
#include <cfg/module.h>
#include <drv/i2c.h>
#include <cfg/module.h>
#include <drv/i2c.h>
+#if !CONFIG_I2C_DISABLE_OLD_API
INLINE int pcf8574_get_priv(Pcf8574 *pcf)
{
INLINE int pcf8574_get_priv(Pcf8574 *pcf)
{
@@
-65,7
+68,6
@@
INLINE int pcf8574_get_priv(Pcf8574 *pcf)
return data;
}
return data;
}
-
/**
* Read PCF8574 \a pcf bit status.
* \return the pins status or EOF on errors.
/**
* Read PCF8574 \a pcf bit status.
* \return the pins status or EOF on errors.
@@
-96,7
+98,7
@@
bool pcf8574_init_2(Pcf8574 *pcf, pcf8574_addr addr)
pcf->addr = addr;
return pcf8574_get_priv(pcf) != EOF;
}
pcf->addr = addr;
return pcf8574_get_priv(pcf) != EOF;
}
-
+#endif /* !CONFIG_I2C_DISABLE_OLD_API */
/*
/*