Description
This is Issue 440 moved from a Google Code project.
Added by 2010-12-29T15:49:04.000Z by dmel...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Medium, Component-Core
Original description
From Christopher K. Johnson:
"The attached patch to 0022rc1 is a subset of formerly submitted patches, and accomplishes one minor functional change, one minor structural change, and improves some comments.
The functional change is to use F_CPU and add a function to set the i2c bus speed.
The structural change is to not have multiple places in code obliterate whatever the previous contents of TWCR were without allowing for the possibility that we may wish to change some of those bits. I did not add a function to alter those bits in twi_twcr_base, but initialized it to the same default as previously was forced at multiple locations in the code. It also uses ISR instead of the deprecated SIGNAL for TWI_vect.
The comment changes help document some things better, and in some cases correct errors.
I do not have a platform and hardware available today to verify the patched code, so it needs good testing. However the patched code from which it was extracted was previously tested, so at most there may be an error of omission. This patch should be easier to evaluate for adoption as a first improvement to Wire."