Skip to content

msp430: some cleanup to i2c code - #582

Open
alfh wants to merge 4 commits into
energia:masterfrom
alfh:feature_i2c_cleanup
Open

msp430: some cleanup to i2c code#582
alfh wants to merge 4 commits into
energia:masterfrom
alfh:feature_i2c_cleanup

Conversation

@alfh

@alfh alfh commented Mar 27, 2015

Copy link
Copy Markdown

Some code cleanup of the msp430 i2c code, in preparation of more work for adding support for choosing which USCB port to use, and also to be able to use more than one USCB port.

I am a bit unsure if my changes from ifdef to if defined is something you like, please comment if you do not like it.

alfh added 4 commits March 27, 2015 11:12
Replace #ifdef with #if defined, to consistently use
if defined in the twi.c file.
Likewise, replace ifndef with if !defined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants