Am 27.05.2010 23:04, schrieb Hao Wang:
> Does MSPGCC have support for printf()

yes

> which automatically send data through USART0?

no. it just calls "putchar" which you have to implement yourself to do
what you want.

something like that:

int putchar(int character) {
    while (!(UTCTL0 & TXEPT)) {}   // wait util tx buffer is free
    TXBUF0 = character;            // send character
    return 1;
}

> Source?

http://mspgcc.cvs.sourceforge.net/viewvc/mspgcc/msp430-libc/src/stdlib/

chris

Reply via email to