News for hackers. Stuff that matters.
Re:A simple I2C master implementation on the MSP430 by jimmyswimmy on Sunday April 23, 2017 @09:28AM (#14178071)
It may be so, but it doesn't implement an interrupt solution, which is a really bad way to program a microcontroller.

Also I found these types particularly amusing. None of that code can be copy pasted without editing:

  while ((err == 0) && (nbytes > 0))
But since it doesn't support interrupts, I think not being able to copy paste this code is generally a good thing.
Re:A simple I2C master implementation on the MSP430 by throwanem on Sunday April 23, 2017 @10:06AM (#14178197)
I'd tend to agree! But for those of us totally unfamiliar with how I2C works, and barely familiar with embedded dev at all, a somewhat gentler introduction to the relevant concepts, that requires close experience with fewer priors than TI's reference example, is no bad thing to have.