1
0
mirror of https://github.com/SMFSW/cI2C synced 2024-11-22 01:44:21 +01:00

v1.3: Delay between retries set to 1ms

This commit is contained in:
SMFSW 2018-05-27 15:57:06 +02:00
parent b9babcdde0
commit e6d3d2a8ae
5 changed files with 6 additions and 19 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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--;
}

View File

@ -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)
**/