mirror of
https://github.com/SMFSW/cI2C
synced 2024-12-22 04:49:59 +01:00
v1.3: Delay between retries set to 1ms
This commit is contained in:
parent
b9babcdde0
commit
e6d3d2a8ae
14
Clean.bat
14
Clean.bat
@ -1,14 +0,0 @@
|
||||
@ECHO off
|
||||
ECHO #***************************************************************
|
||||
ECHO # File : clean.bat
|
||||
ECHO #
|
||||
ECHO # Command lines script: Clearing output, temporary and log files
|
||||
ECHO #***************************************************************
|
||||
|
||||
|
||||
@ECHO on
|
||||
|
||||
::del *.o /s
|
||||
del cI2C.chm
|
||||
del /f /q /s workdir\
|
||||
rmdir workdir
|
2
Doxyfile
2
Doxyfile
@ -770,7 +770,7 @@ WARN_FORMAT = "$file:$line: $text"
|
||||
# messages should be written. If left blank the output is written to standard
|
||||
# error (stderr).
|
||||
|
||||
WARN_LOGFILE = doxy.log
|
||||
WARN_LOGFILE = workdir/doxy.log
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the input files
|
||||
|
@ -15,7 +15,8 @@ Feel free to share your thoughts @ xgarmanboziax@gmail.com about:
|
||||
------------
|
||||
|
||||
** Actual:
|
||||
v1.3 3 May 2018:
|
||||
v1.3 13 May 2018:
|
||||
- Delay between retries is now 1ms
|
||||
- Adding support for unit tests and doxygen documentation generation with Travis CI
|
||||
- Updated README.md
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*!\file ci2c.c
|
||||
** \author SMFSW
|
||||
** \copyright MIT SMFSW (2017)
|
||||
** \copyright MIT SMFSW (2017-2018)
|
||||
** \brief arduino master i2c in plain c code
|
||||
** \warning Don't access (r/w) last 16b internal address byte alone right after init, this would lead to hazardous result (in such case, make a dummy read of addr 0 before)
|
||||
**/
|
||||
@ -232,7 +232,7 @@ static I2C_STATUS I2C_comm(I2C_SLAVE * slave, const uint16_t reg_addr, uint8_t *
|
||||
ack = fc(slave, reg_addr, data, bytes);
|
||||
while ((!ack) && (retry != 0)) // If com not successful, retry some more times
|
||||
{
|
||||
delay(5);
|
||||
delay(1);
|
||||
ack = fc(slave, reg_addr, data, bytes);
|
||||
retry--;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*!\file ci2c.h
|
||||
** \author SMFSW
|
||||
** \copyright MIT SMFSW (2017)
|
||||
** \copyright MIT SMFSW (2017-2018)
|
||||
** \brief arduino i2c in plain c declarations
|
||||
** \warning Don't access (r/w) last 16b internal address byte alone right after init, this would lead to hazardous result (in such case, make a dummy read of addr 0 before)
|
||||
**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user