Some common pieces of code I use when writing for the MSP430.