You need to implement the __read() and __write() functions to reflect the hardware that you are using. The details can be found in the “Standard streams for input and output” section of the “MSP430 C/C++ Compiler Reference Guide” which is located under the Help menu.