News for hackers. Stuff that matters.
Re:A simple I2C master implementation on the MSP430 by _b8r0 on Sunday April 23, 2017 @09:07AM (#14178003)
It's amazing how (comparatively) convoluted I2C is on platforms without the Wire library support you see on Atmel platforms.

That's not to say that such platforms are bad (MSP430 has it's advantages and disadvantages depending on what you want to do with it), but more of a testament to the Wire library.

Re:A simple I2C master implementation on the MSP430 by ctz on Sunday April 23, 2017 @09:45AM (#14178130)
It's not too surprising that a high-level I2C abstraction looks less convoluted than a register-level I2C driver.

Here's the equivalent code for the Atmel peripheral: https://github.com/arduino/Arduino/blob/master/hardware/ardu...