Created
March 17, 2010 22:16
-
-
Save floere/335797 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I don’t care if | |
IOPIN0 & (1<<23); | |
// means anything to you. it doesn’t mean anything to me. | |
// So let’s move it to a method, which, when called, will | |
// make everything clear for everybody. | |
int isUSBConnected(void) { | |
return IOPIN0 & (1<<23); | |
} | |
// Label your functionality semantically! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment