This data was the same in four different files, so I put it in one and included that in them.
* Removed references to the glitch filter * Changed the callback invocation * Got rid of the i2c.h macros; too intransparent (and would break in loops) * Replaced 'UNUSED' dummy read with a void cast, inspection of the generated assembly verifies that it does the right thing * Created enum for read/write, clearer that way * Invoke callback after everything else is done * Removed a debug statement that I missed * Little bit more code deduplication * Misc style changes
The previous linkdep cache code worked only because of the mere coincidence that toolchain/cache and examples/* both have a ../../ distance to the repository root. Fix this by adding a rule for linkdep cache object files. This allows building out-of-tree projects. Noticed-by: Roy Smeding